Why are dots in username & groupname no longer allowed?

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



Quoting Robin Mordasiewicz <robin@xxxxxxxxxxx>:

> On Thu, 5 Jan 2006, Benjamin Smith wrote:
>
>> Try this one:
>>
>> chown -R c.smith.users /home/c.smith
>>
>> See the problem?
>>
> what about
> chown -R c.smith:users /home/c.smith

The ':' is not really an solution because it doesn't really address the 
problem.
The problem is that the first syntax (using dot) is valid.

Consider you have users "foo" and "foo.bar" and group "bar".  What will "chown
foo.bar file" do?  Change the owner of the file to user foo.bar or change the
owner to foo and group to bar?  Yes, you can use column instead of dot on
command line.  However, many scripts still use dot (and there is nothing wrong
with it, since using dot to separate username and group is perfectly valid).


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux