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



Allen Kistler <ackistler@xxxxxxxxx>:
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.

Yes, and the OP's answer is:

chown -R foouser /home/foouser

acting on the dir and children, whatever they may be. "." is special
in *nix shell, as are many other characters. Learning the bash shell
from O'Reilly is a smooth intro, and your distro may offer some
already installed (bash-doc and abs-guide in Debian).


--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://blinkynet.net/comp/uip5.html Linux Counter #80292
- - http://www.faqs.org/rfcs/rfc1855.html Please, don't Cc: me.
.



Relevant Pages

  • Re: Read Only Users
    ... > No, Dan, you're not missing anything. ... > MS will change the design. ... When they try to save it brings up a windows logon box asking ...
    (microsoft.public.sharepoint.portalserver)
  • Re: Problem with locked files - solved (inheritable handles)
    ... Sorry, Don, but you are missing the most important point, which in my view is how one might solve Dylan's specific ... also look back at the original post, Dylan states, "The secondary process does need to inherit some handles (because I ... still think that my suggested change to the crt would accomodate Dylan's design. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: unable to find platform.bib
    ... just copy the file from the BSP. ... this occurs early in the creation of your OS design. ... prevent it's pre-processing and results in a missing output file. ... (l'indirizzo di reply di questo messaggio non è ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Norvig on Lisp vs Python revised
    ... > be similarly missing things for Python but not knowing the language I ... design and evolution of a programming language. ... various versions of the HOPL-2 paper (well over a dozen reviews) was ...
    (comp.lang.lisp)
  • Re: confusing behaviour of the * wildcard when handling "dot" files and dirs.
    ... It seems to change the ownership recursively for all dirs and files under ... Is this behaviour of the * wildcard by design or am I just missing something here? ... It keeps you from changing the current directory, the parent directory, and all the children of the parent directory. ...
    (comp.os.linux.misc)