ok I think I have pinpointed a bit more precisely the issue ,

on the kernel with the bug , if from the container I do

localedef -i fr_FR -c -f UTF-8 -A /usr/share/locale/locale.alias fr_FR.UTF-8
stat /usr/lib/locale/locale-archive

I got

  File: /usr/lib/locale/locale-archive
  Size: 1679760         Blocks: 3144       IO Block: 4096   regular file
Device: 10301h/66305d   Inode: 521785      Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2019-09-03 08:57:16.661569167 +0000
Modify: 2019-09-03 08:57:16.661569167 +0000
Change: 2019-09-03 08:57:16.661569167 +0000


if i switch to the non admin user and I do head, I can't read it (but I can 
list /stat it)

now if I do

chmod o+r /usr/lib/locale/locale-archive
stat /usr/lib/locale/locale-archive

I got exactly the same thing

  File: /usr/lib/locale/locale-archive
  Size: 1679760         Blocks: 3144       IO Block: 4096   regular file
Device: 10301h/66305d   Inode: 521785      Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2019-09-03 08:57:16.661569167 +0000
Modify: 2019-09-03 08:57:16.661569167 +0000
Change: 2019-09-03 09:00:39.418079016 +0000

(except the change date that has changed)

but now if i go as an admin again and i do head.... it works !


so in the first stat, the permission reported were wrong ahd somewhat, redoing 
chmod o+r corrected it.....

Note that if as root I touch a file, I don't have this issue, so the
file created by localedef is created a bit differently that what "touch"
does

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1842364

Title:
  sudo localedef from docker does not work anymore after upgrade from
  4.4.0-1088-aws to  4.4.0-1090-aws

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-aws/+bug/1842364/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to