[Bug 1339594] [NEW] usermod don't update the ACL in /media, when a uid has changed

J N jordan.ninin at gmail.com
Wed Jul 9 08:54:11 UTC 2014


Public bug reported:

usermod don't update the ACL when the uid of a user have been change.

This bug happens when I has changed the uid of my login.
All permitions have been change correctly. 
But when I plug a USB key, it was impossible to read the key.
But when I check the permition, everything seems fine.
But when I check the ACL with getfacl, the permition is written with the old uid of my login

This is the command line :

>>$ id onelogin
uid=1000(onelogin)  .....etc.....

>>$ sudo usermod -u 5555 onelogin
>>$  id onelogin
uid=5555(onelogin)  .....etc.....

>>$ ls -l  /media/onelogin
drwx------  6 onelogin onelogin  4096 janv.  1  1970 MY_USB_KEY

>>$ getfacl  /media/onelogin
# file: media/onelogin/
# owner: root
# group: root
user::rwx
user:1000:r-x
group::---
mask::r-x
other::---


To correct it, I use this: 

>>$  sudo setfacl -m user:onelogin:rx /media/onelogin/
>>$  sudo setfacl -x user:1000 /media/onelogin/
>>$  getfacl  /media/onelogin
# file: media/onelogin/
# owner: root
# group: root
user::rwx
user:onelogin:r-x
group::---
mask::r-x
other::---


But pearhap there are some other place where I need to update manually the ACL permition.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: passwd 1:4.1.5.1-1ubuntu9
ProcVersionSignature: Ubuntu 3.13.0-30.55-generic 3.13.11.2
Uname: Linux 3.13.0-30-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: amd64
CurrentDesktop: Unity
Date: Wed Jul  9 10:55:11 2014
InstallationDate: Installed on 2014-07-07 (1 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
SourcePackage: shadow
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: shadow (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug trusty

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

Title:
  usermod don't update the ACL in /media, when a uid has changed

Status in “shadow” package in Ubuntu:
  New

Bug description:
  usermod don't update the ACL when the uid of a user have been change.

  This bug happens when I has changed the uid of my login.
  All permitions have been change correctly. 
  But when I plug a USB key, it was impossible to read the key.
  But when I check the permition, everything seems fine.
  But when I check the ACL with getfacl, the permition is written with the old uid of my login

  This is the command line :

  >>$ id onelogin
  uid=1000(onelogin)  .....etc.....

  >>$ sudo usermod -u 5555 onelogin
  >>$  id onelogin
  uid=5555(onelogin)  .....etc.....

  >>$ ls -l  /media/onelogin
  drwx------  6 onelogin onelogin  4096 janv.  1  1970 MY_USB_KEY

  >>$ getfacl  /media/onelogin
  # file: media/onelogin/
  # owner: root
  # group: root
  user::rwx
  user:1000:r-x
  group::---
  mask::r-x
  other::---

  
  To correct it, I use this: 

  >>$  sudo setfacl -m user:onelogin:rx /media/onelogin/
  >>$  sudo setfacl -x user:1000 /media/onelogin/
  >>$  getfacl  /media/onelogin
  # file: media/onelogin/
  # owner: root
  # group: root
  user::rwx
  user:onelogin:r-x
  group::---
  mask::r-x
  other::---

  
  But pearhap there are some other place where I need to update manually the ACL permition.

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: passwd 1:4.1.5.1-1ubuntu9
  ProcVersionSignature: Ubuntu 3.13.0-30.55-generic 3.13.11.2
  Uname: Linux 3.13.0-30-generic x86_64
  ApportVersion: 2.14.1-0ubuntu3.2
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Wed Jul  9 10:55:11 2014
  InstallationDate: Installed on 2014-07-07 (1 days ago)
  InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
  SourcePackage: shadow
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1339594/+subscriptions



More information about the foundations-bugs mailing list