Public bug reported:
Binary package hint: acl
When a user have various non-standard characters in usernames (such as
"é" or "\"), and there are ACL for that user, getfacl display the
unusual characters as octal.
While it may not be correct to have these characters in Unix username,
the backslash is often found in username when using the winbind NSS
backend for passwd. As such, it is a very common use case.
Moreover, ls and other tools from coreutils behave as expected and show
the non-standard characters correctly.
Example:
----------------------------------------------------------------------------------------------
[EMAIL PROTECTED]:~/test$ touch test1
[EMAIL PROTECTED]:~/test$ setfacl -m u:CANONICAL\\etienne:rwx test1
[EMAIL PROTECTED]:~/test$ getfacl test1
# file: test1
# owner: ubuntu
# group: ubuntu
user::rw-
user:lp:rwx
user:CANONICAL\134etienne:rwx
group::r-x
mask::rwx
other::r--
[EMAIL PROTECTED]:~/test$ sudo chown CANONICAL\\etienne test1
[EMAIL PROTECTED]:~/test$ ls -l test1
-rw-rwxr--+ 1 CANONICAL\etienne ubuntu 0 2008-02-26 00:17 test1
[EMAIL PROTECTED]:~/test$ touch test2
[EMAIL PROTECTED]:~/test$ setfacl -m u:testé:rwx test2
[EMAIL PROTECTED]:~/test$ getfacl test2
# file: test2
# owner: ubuntu
# group: ubuntu
user::rw-
user:lp:rwx
user:test\303\251:rwx
group::r-x
mask::rwx
other::r--
[EMAIL PROTECTED]:~/test$ sudo chown testé test2
[EMAIL PROTECTED]:~/test$ ls -l test2
-rw-rwxr--+ 1 testé ubuntu 0 2008-02-26 00:17 test2
---------------------------------------------------------------------------------------------------
Note that, in the above example, the backslash have to be escaped with
another backslash (ie, "\\") to prevent interpretation by the shell; the
username have a single backslash indeed.
** Affects: acl (Ubuntu)
Importance: Undecided
Status: New
--
getfacl display some characters as escaped octal in username
https://bugs.launchpad.net/bugs/195792
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs