[Bug 195792] Re: getfacl display some characters as escaped octal in username
Logan Rosen
loganrosen at gmail.com
Sun Mar 8 21:40:28 UTC 2020
** Bug watch added: Debian Bug tracker #357141
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=357141
** Also affects: acl (Debian) via
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=357141
Importance: Unknown
Status: Unknown
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to acl in Ubuntu.
https://bugs.launchpad.net/bugs/195792
Title:
getfacl display some characters as escaped octal in username
Status in acl package in Ubuntu:
Confirmed
Status in acl package in Debian:
Unknown
Bug description:
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:
----------------------------------------------------------------------------------------------
ubuntu at test-eg:~/test$ touch test1
ubuntu at test-eg:~/test$ setfacl -m u:CANONICAL\\etienne:rwx test1
ubuntu at test-eg:~/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--
ubuntu at test-eg:~/test$ sudo chown CANONICAL\\etienne test1
ubuntu at test-eg:~/test$ ls -l test1
-rw-rwxr--+ 1 CANONICAL\etienne ubuntu 0 2008-02-26 00:17 test1
ubuntu at test-eg:~/test$ touch test2
ubuntu at test-eg:~/test$ setfacl -m u:testé:rwx test2
ubuntu at test-eg:~/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--
ubuntu at test-eg:~/test$ sudo chown testé test2
ubuntu at test-eg:~/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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/acl/+bug/195792/+subscriptions
More information about the foundations-bugs
mailing list