'chown' and hidden directories
Ben Duncan
bns
Wed Feb 23 10:18:46 PST 2005
Michael Hipp wrote:
> Ken Moffat wrote:
>
<SNIP>
>
> I believe the one above is the simplest. I didn't have the courage to
> try some of the others :-)
>
> Even worse, I found out that chown does not behave as (I) expected:
>
> chown -R michael: *
>
> behaves differently than
>
> chown -R michael: /path/to/target
>
> The latter processes dot-hidden directories, the first does not. Perhaps
> this is intentional, but it looks like a bug to me.
>
Not a bug. By specifiying /pathto/target, where target is a directory, the authors'
intenet was to have any thing below said directory set (with the -R) to the specified
owner/group or if chmod, permissions ...
This is done without regards of being a dot file or not.
So in summary <chown/chmod> -R (options) <thisdirectory> says :
This directory and ANYTHING below it, gets changed.
> Thoughts?
>
> Michael
> _______________________________________________
> Linux-users mailing list
> Linux-users at linux-sxs.org
> http://mail.linux-sxs.org/cgi-bin/mailman/listinfo/linux-users
>
> Need to chat further on this subject? Check out #linux-users on
> irc.linux-sxs.org !
>
> .
>
--
Ben Duncan - VersAccounting Software LLC 336 Elton Road Jackson MS, 39212
"Never attribute to malice, that which can be adequately explained by stupidity"
- Hanlon's Razor
More information about the Linux-users
mailing list