Bug 116536 (chown-period) - chown doesn't take user.group syntax
Summary: chown doesn't take user.group syntax
Alias: chown-period
Product: Fedora
Classification: Fedora
Component: coreutils
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Tim Waugh
QA Contact:
: 116571 116632 116690 116694 116695 116696 (view as bug list)
Depends On:
TreeView+ depends on / blocked
Reported: 2004-02-22 23:51 UTC by Chris Adams
Modified: 2007-11-30 22:10 UTC (History)
6 users (show)

Clone Of:
Last Closed: 2004-02-24 09:35:16 UTC

Attachments (Terms of Use)

Description Chris Adams 2004-02-22 23:51:28 UTC
"chown user.group file" doesn't work; only "user:group" (colon instead
of period) works.  I don't know if this change is intentional or if it
is there just because the upstream default changed.

If the change is permanent, then there should definately be something
in the the release notes about this.  There are numerous RPMs
(utempter and at to name a couple I noticed) that use "chown
user.group" syntax in scriptlets like %post.  Also, IIRC the reason
for not allowing "." in user/group names was because of chown, so if
the change is permanent, that restriction should be removed.

Filed against devel because I noticed it while updating FC2 test1 to
development tree (so I don't know if it was in test1).

Comment 1 Tim Waugh 2004-02-23 11:52:03 UTC
*** Bug 116571 has been marked as a duplicate of this bug. ***

Comment 2 Tim Waugh 2004-02-23 12:02:22 UTC
See the documentation:

Some older scripts may still use `.' in place of the `:' separator.
POSIX 1003.1-2001 (*note Standards conformance::) does not allow that,
but you may be able to work around the compatibility problems by setting
`_POSIX2_VERSION=199209' in your environment.  New scripts should avoid
the use of `.' because GNU `chown' may fail if OWNER contains `.'

The colon separator has been the recommended syntax for many releases.
 Time to fix instances of the old syntax so we can move on.

One reason for this, aside from POSIX, is the possibility of having
user account names containing '.', currently not allowed.  It would be
great to remove this restriction.

Yes, it needs to be mentioned in the release notes.

I'll keep this bug report open for a while, until the packages whose
scriptlets still use '.' as separator have been rebuilt.  I have fixed
as many as I could find in CVS.

Comment 3 Tim Waugh 2004-02-23 17:20:50 UTC
Update: it turns out that LSB requires chown to accept '.' still. :-(

Message sent to bug-coreutils to see if this behaviour is permanent.

Comment 4 Bill Nottingham 2004-02-23 23:51:17 UTC
*** Bug 116632 has been marked as a duplicate of this bug. ***

Comment 5 Tim Waugh 2004-02-24 09:09:21 UTC
Looks like this has been reverted in upstream coreutils.

Comment 6 Bill Nottingham 2004-02-24 17:17:18 UTC
*** Bug 116690 has been marked as a duplicate of this bug. ***

Comment 7 Bill Nottingham 2004-02-24 20:24:49 UTC
*** Bug 116694 has been marked as a duplicate of this bug. ***

Comment 8 Bill Nottingham 2004-02-24 20:24:55 UTC
*** Bug 116695 has been marked as a duplicate of this bug. ***

Comment 9 Bill Nottingham 2004-02-24 20:25:00 UTC
*** Bug 116696 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.