Comment 19 for bug 432964

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

2009/10/10 Milan Bouchet-Valat <email address hidden>

> We need to track down the program that has left those locks when
> crashing. Is it gdm-guest-session itself, or is it using a program to
> change /etc/passwd (possibly usermod itself)?
>

As of now, guest-session doesn't leave any locks behind.between the
commands, I launched guest-session.

tta@dv5:~$ ls -l /etc/{passwd,shadow}*
-rw-r--r-- 1 root root 1685 2009-10-10 08:12 /etc/passwd
-rw------- 1 root root 1743 2009-10-10 08:12 /etc/passwd-
-rw-r----- 1 root shadow 1042 2009-10-10 08:12 /etc/shadow
-rw------- 1 root root 1069 2009-09-08 21:50 /etc/shadow-
tta@dv5:~$ ls -l /etc/{passwd,shadow}*
-rw-r--r-- 1 root root 1685 2009-10-10 15:43 /etc/passwd
-rw------- 1 root root 1743 2009-10-10 15:41 /etc/passwd-
-rw-r----- 1 root shadow 1042 2009-10-10 15:43 /etc/shadow
-rw------- 1 root root 1069 2009-10-10 15:41 /etc/shadow-