This is the documented behaviour of changing a user's uid with the
usermod(8) tool:
The user's mailbox, and any files which the user owns and
which are located in the user's home directory will have
the file user ID changed automatically.
The ownership of files outside of the user's home
directory must be fixed manually.
(To be honest I'm surprised usermod allows changing userids; it isn't an
operation to be undertaken lightly.)
For external media, probably umounting, logging out, logging in, and re-
mounting should have modified the acls for you.
Thanks
** Changed in: shadow (Ubuntu)
Status: New => Won't Fix
--
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:
Won't Fix
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