Re: confusing behaviour of the * wildcard when handling "dot" files and dirs.



Rahul wrote:
I tried going to /home/foouser/ and then doing a 'chown -R foouser *'

It seems to change the ownership recursively for all dirs and files under /home/foouser/ except those starting with a . (dot)

Is this behaviour of the * wildcard by design or am I just missing something here? I'm confused!

You're not missing anything.
That's the design.
It keeps you from changing the current directory, the parent directory, and (in the case of -R) all the children of the parent directory.
.



Relevant Pages