Help avoiding .* problems
Ben Duncan
bns
Mon May 17 11:44:11 PDT 2004
go to the directory *ABOVE* the one you want to change.
Lets say the directory is /home/jones.
cd /home
then do
chown -R jones jones/
or if needing to change the OWNER and Group
chown -R jones:newgroup jones/
Tom Condon wrote:
> Yup. Shot myself in the foot again.
>
> Some versions of *nix *do* and some versions *don't* allow
> access to '..' when you specify '.*' in a regular expression
> (say, chown).
>
> I'm running RedHat on a laptop (and may need to re-install
> now), but I'd like to avoid this in the future.
>
> Is there a way to set something so this *won't* happen? If I
> want to change ownership of all of a user's files (because I
> copied one user to another) but don't want it going ../../..
> on me (and thereby changing the entire filesystem). Is there
> a way to do that? Probably in root's setup files?
>
> First clue: chown takes a while
> Second clue: error message:
> chown: changing ownership of '../proc/526' : Operation not
> permitted
>
> Thanks for any suggestions you can give me (besides never log
> on as root).
>
>
> In Harmony's Way and In A Chord,
>
> Tom ;-})
>
> Tom. Condon
> Barbershop Bass Singer
> Registered Linux User #154358
> A Jester Unemployed
>
>
> _______________________________________________
> Linux-users mailing list
> Linux-users at linux-sxs.org
> Unsubscribe/Suspend/Etc -> http://www.linux-sxs.org/mailman/listinfo/linux-users
>
> .
>
--
Ben Duncan Phone (601)-355-2574 Fax (601)-355-2573 Cell
(601)-946-1220
Business Network Solutions
336 Elton Road Jackson MS, 39212
"Software is like Sex, it is better when it's free" - Linus Torvalds
More information about the Linux-users
mailing list