Comment 14 for bug 432964

Revision history for this message
Tuomas Aavikko (taavikko) wrote : Re: [Bug 432964] Re: usermod fails: "cannot lock /etc/passwd"

2009/9/23 Milan Bouchet-Valat <email address hidden>

> Just an idea: do you happen to be using some strange file system on your
> root partition, or specific mount option? I don't know whether that
> could affect file locks, but...

Ext4 for all my partitions, /home encrypted, nothing else special.
tta@dv5:~$ mount
/dev/sda1 on / type ext4 (rw,errors=remount-ro)
none on /proc type proc (rw)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
/dev/sda2 on /home type ext4 (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc
(rw,noexec,nosuid,nodev)
/home/tta/.Private on /home/tta type ecryptfs
(ecryptfs_sig=xxxxxxxxxxxxx,ecryptfs_fnek_sig=xxxxxxxxxxxxx,ecryptfs_cipher=aes,ecryptfs_key_bytes=16)
gvfs-fuse-daemon on /home/tta/.gvfs type fuse.gvfs-fuse-daemon
(rw,nosuid,nodev,user=tta)

Tried to add new user:
tta@dv5:~$ sudo adduser test
[sudo] password for tta:
Adding user `test' ...
Adding new group `test' (1001) ...
Adding new user `test' (1001) with group `test' ...
useradd: cannot lock /etc/passwd; try again later.
adduser: `/usr/sbin/useradd -d /home/test -g test -s /bin/bash -u 1001 test'
returned error code 1. Exiting.
tta@dv5:~$