[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: chown should catch null owner:group

From: Eric Blake
Subject: Re: chown should catch null owner:group
Date: Mon, 18 Feb 2008 13:10:10 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20071031 Thunderbird/ Mnenhy/

Hash: SHA1

According to Linda Walsh on 2/18/2008 11:34 AM:

Please don't top-post - on this list, we prefer to see replies in context.

| What does it do?  You said it reset somebody's boss's access so he could
| not read some file.  Was this hyperbole?  When I just tried it on a
| local directory, "chown -R ." gave an error, while "chown -R : ."
| appeared to do nothing on linux, under cygwin, it did reset 'group' id's
| from "null" (uid=-1) to my default group, but didn't affect other groups.
| But I haven't found a linux case where it does something, yet... :-)

Hmm.  The info documentation states:

~     If a colon but no group name follows OWNER, that user is made the
~     owner of the files and the group of the files is changed to
~     OWNER's login group.

~     If only a colon is given, or if NEW-OWNER is empty, neither the
~     owner nor the group is changed.

But you claim that using just `:' (or it's obsolete synonym `.') resulted
in changing the group to the default login group, rather than being a
no-op.  I'm wondering whether this is a cygwin porting bug or an upstream
documentation bug.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


reply via email to

[Prev in Thread] Current Thread [Next in Thread]