[users-admin] Users and groups-tool failed to create home folder after deleting user and adding a new user in the same operation

Bug #18632 reported by Marcus Edvardsen
14
Affects Status Importance Assigned to Milestone
system-tools-backends
Fix Released
Medium
gnome-system-tools (Ubuntu)
Fix Released
Medium
Ubuntu Desktop Bugs

Bug Description

Users and groups-tool(I find the tool under the system/administration-menu on
desktop) failed to create home folder after deleting user and then adding 1 new
user in the same operation(ie. without hit the OK-button between deletion and
creation of new account) . When i delete an account and confirm, starting up the
program again and create a new account it works fine.

Opened the useradministration-program(the one presented above)
had the user: test150 in the list(among others). deleted 'test150'-user and
added the new account test-new. Pushed the [OK] button.

Result: no new folder created in the /home folder

next:

Now I opened the program again and deleted the account test-new and pushed the
[OK] button
Opened the program again and added user test-brandnew and hit [OK]

Result: test-brandnew folder successfully created in the /home directory
__________________________________________________________________________________________________________

I also add parts of my /var/log/auth.log -file.
I think maybe you can start checking from about timestamp 17:10. But I am not
the one who make the analyze so I added some loginfo before the actual timestamp
in case you need it.

Parts of my log:
Jul 3 16:56:58 localhost usermod[9206]: change user `gdm' shell from
`/bin/false' to `/bin/false'
Jul 3 16:56:58 localhost usermod[9206]: change user `gdm' password
Jul 3 16:56:58 localhost usermod[9208]: change user `surfe' GID from `1010' to
`1010'
Jul 3 16:56:58 localhost usermod[9208]: change user `surfe' shell from
`/bin/bash' to `/bin/bash'
Jul 3 16:56:58 localhost usermod[9208]: change user `surfe' password
Jul 3 16:56:58 localhost usermod[9210]: change user name `test100' to `test101'
Jul 3 16:56:58 localhost usermod[9210]: change user `test101' GID from `1011'
to `1012'
Jul 3 16:56:58 localhost usermod[9210]: change user `test101' home from
`/home/test100' to `/home/test101'
Jul 3 16:56:58 localhost usermod[9210]: change user `test101' shell from
`/bin/bash' to `/bin/bash'
Jul 3 16:56:58 localhost usermod[9210]: change user `test101' password
Jul 3 17:04:11 localhost sudo: foto : TTY=unknown ; PWD=/home/foto ;
USER=root ; COMMAND=/usr/bin/users-admin
Jul 3 17:04:12 localhost sudo: foto : TTY=pts/0 ; PWD=/home/foto ;
USER=root ; COMMAND=/bin/sh -c env LANG="no_NO.UTF-8"
LANGUAGE="nb_NO:nb:no_NO:no:nn_NO:nn:da:sv:en_GB:en"
/usr/share/setup-tool-backends/scripts/users-conf --report
Jul 3 17:04:54 localhost groupadd[9322]: new group: name=test150, gid=1013
Jul 3 17:04:54 localhost usermod[9324]: change user `root' GID from `0' to `0'
Jul 3 17:04:54 localhost usermod[9324]: change user `root' shell from
`/bin/bash' to `/bin/bash'
Jul 3 17:04:54 localhost usermod[9324]: change user `root' password
Jul 3 17:04:54 localhost usermod[9326]: change user `daemon' GID from `1' to `1'
Jul 3 17:04:54 localhost usermod[9326]: change user `daemon' shell from
`/bin/sh' to `/bin/sh'
Jul 3 17:04:54 localhost usermod[9326]: change user `daemon' password
Jul 3 17:04:54 localhost usermod[9328]: change user `bin' GID from `2' to `2'
Jul 3 17:04:54 localhost usermod[9328]: change user `bin' shell from `/bin/sh'
to `/bin/sh'
Jul 3 17:04:54 localhost usermod[9328]: change user `bin' password
Jul 3 17:04:54 localhost usermod[9330]: change user `sys' GID from `3' to `3'
Jul 3 17:04:54 localhost usermod[9330]: change user `sys' shell from `/bin/sh'
to `/bin/sh'
Jul 3 17:04:54 localhost usermod[9330]: change user `sys' password
Jul 3 17:04:54 localhost usermod[9332]: change user `sync' GID from `65534' to
`65534'
Jul 3 17:04:54 localhost usermod[9332]: change user `sync' shell from
`/bin/sync' to `/bin/sync'
Jul 3 17:04:54 localhost usermod[9332]: change user `sync' password
Jul 3 17:04:54 localhost usermod[9334]: change user `games' GID from `60' to `60'
Jul 3 17:04:54 localhost usermod[9334]: change user `games' shell from
`/bin/sh' to `/bin/sh'
Jul 3 17:04:54 localhost usermod[9334]: change user `games' password
Jul 3 17:04:54 localhost usermod[9336]: change user `man' GID from `12' to `12'
Jul 3 17:04:54 localhost usermod[9336]: change user `man' shell from `/bin/sh'
to `/bin/sh'
Jul 3 17:04:54 localhost usermod[9336]: change user `man' password
Jul 3 17:04:54 localhost usermod[9338]: change user `lp' GID from `7' to `7'
Jul 3 17:04:54 localhost usermod[9338]: change user `lp' shell from `/bin/sh'
to `/bin/sh'
Jul 3 17:04:54 localhost usermod[9338]: change user `lp' password
Jul 3 17:04:54 localhost usermod[9340]: change user `mail' GID from `8' to `8'
Jul 3 17:04:54 localhost usermod[9340]: change user `mail' shell from `/bin/sh'
to `/bin/sh'
Jul 3 17:04:54 localhost usermod[9340]: change user `mail' password
Jul 3 17:04:54 localhost usermod[9342]: change user `news' GID from `9' to `9'
Jul 3 17:04:54 localhost usermod[9342]: change user `news' shell from `/bin/sh'
to `/bin/sh'
Jul 3 17:04:54 localhost usermod[9342]: change user `news' password
Jul 3 17:04:54 localhost usermod[9344]: change user `uucp' GID from `10' to `10'
Jul 3 17:04:54 localhost usermod[9344]: change user `uucp' shell from `/bin/sh'
to `/bin/sh'
Jul 3 17:04:54 localhost usermod[9344]: change user `uucp' password
Jul 3 17:04:54 localhost usermod[9346]: change user `proxy' GID from `13' to `13'
Jul 3 17:04:54 localhost usermod[9346]: change user `proxy' shell from
`/bin/sh' to `/bin/sh'
Jul 3 17:04:54 localhost usermod[9346]: change user `proxy' password
Jul 3 17:04:54 localhost usermod[9348]: change user `www-data' GID from `33' to
`33'
Jul 3 17:04:54 localhost usermod[9348]: change user `www-data' shell from
`/bin/sh' to `/bin/sh'
Jul 3 17:04:54 localhost usermod[9348]: change user `www-data' password
Jul 3 17:04:54 localhost usermod[9350]: change user `backup' GID from `34' to `34'
Jul 3 17:04:54 localhost usermod[9350]: change user `backup' shell from
`/bin/sh' to `/bin/sh'
Jul 3 17:04:54 localhost usermod[9350]: change user `backup' password
Jul 3 17:04:54 localhost usermod[9352]: change user `list' GID from `38' to `38'
Jul 3 17:04:54 localhost usermod[9352]: change user `list' shell from `/bin/sh'
to `/bin/sh'
Jul 3 17:04:54 localhost usermod[9352]: change user `list' password
Jul 3 17:04:54 localhost usermod[9354]: change user `irc' GID from `39' to `39'
Jul 3 17:04:54 localhost usermod[9354]: change user `irc' shell from `/bin/sh'
to `/bin/sh'
Jul 3 17:04:54 localhost usermod[9354]: change user `irc' password
Jul 3 17:04:54 localhost usermod[9356]: change user `gnats' GID from `41' to `41'
Jul 3 17:04:54 localhost usermod[9356]: change user `gnats' shell from
`/bin/sh' to `/bin/sh'
Jul 3 17:04:54 localhost usermod[9356]: change user `gnats' password
Jul 3 17:04:54 localhost usermod[9358]: change user `nobody' GID from `65534'
to `65534'
Jul 3 17:04:54 localhost usermod[9358]: change user `nobody' shell from
`/bin/sh' to `/bin/sh'
Jul 3 17:04:54 localhost usermod[9358]: change user `nobody' password
Jul 3 17:04:55 localhost usermod[9360]: change user `postfix' GID from `103' to
`103'
Jul 3 17:04:55 localhost usermod[9360]: change user `postfix' shell from
`/bin/false' to `/bin/false'
Jul 3 17:04:55 localhost usermod[9360]: change user `postfix' password
Jul 3 17:04:55 localhost usermod[9362]: change user `syslog' GID from `105' to
`105'
Jul 3 17:04:55 localhost usermod[9362]: change user `syslog' shell from
`/bin/false' to `/bin/false'
Jul 3 17:04:55 localhost usermod[9362]: change user `syslog' password
Jul 3 17:04:55 localhost usermod[9364]: change user `klog' GID from `106' to `106'
Jul 3 17:04:55 localhost usermod[9364]: change user `klog' shell from
`/bin/false' to `/bin/false'
Jul 3 17:04:55 localhost usermod[9364]: change user `klog' password
Jul 3 17:04:55 localhost usermod[9366]: change user `foto' GID from `1000' to
`1000'
Jul 3 17:04:55 localhost usermod[9366]: change user `foto' shell from
`/bin/bash' to `/bin/bash'
Jul 3 17:04:55 localhost usermod[9366]: change user `foto' password
Jul 3 17:04:55 localhost usermod[9368]: change user `messagebus' GID from `110'
to `110'
Jul 3 17:04:55 localhost usermod[9368]: change user `messagebus' shell from
`/bin/false' to `/bin/false'
Jul 3 17:04:55 localhost usermod[9368]: change user `messagebus' password
Jul 3 17:04:55 localhost usermod[9370]: change user `cupsys' GID from `107' to
`107'
Jul 3 17:04:55 localhost usermod[9370]: change user `cupsys' shell from
`/bin/false' to `/bin/false'
Jul 3 17:04:55 localhost usermod[9370]: change user `cupsys' password
Jul 3 17:04:55 localhost usermod[9372]: change user `fetchmail' GID from
`65534' to `65534'
Jul 3 17:04:55 localhost usermod[9372]: change user `fetchmail' shell from
`/bin/sh' to `/bin/sh'
Jul 3 17:04:55 localhost usermod[9372]: change user `fetchmail' password
Jul 3 17:04:55 localhost usermod[9374]: change user `hal' GID from `111' to `111'
Jul 3 17:04:55 localhost usermod[9374]: change user `hal' shell from
`/bin/false' to `/bin/false'
Jul 3 17:04:55 localhost usermod[9374]: change user `hal' password
Jul 3 17:04:55 localhost usermod[9376]: change user `saned' GID from `113' to `113'
Jul 3 17:04:55 localhost usermod[9376]: change user `saned' shell from
`/bin/false' to `/bin/false'
Jul 3 17:04:55 localhost usermod[9376]: change user `saned' password
Jul 3 17:04:55 localhost usermod[9378]: change user `gdm' GID from `114' to `114'
Jul 3 17:04:55 localhost usermod[9378]: change user `gdm' shell from
`/bin/false' to `/bin/false'
Jul 3 17:04:55 localhost usermod[9378]: change user `gdm' password
Jul 3 17:04:55 localhost usermod[9380]: change user `surfe' GID from `1010' to
`1010'
Jul 3 17:04:55 localhost usermod[9380]: change user `surfe' shell from
`/bin/bash' to `/bin/bash'
Jul 3 17:04:55 localhost usermod[9380]: change user `surfe' password
Jul 3 17:04:55 localhost usermod[9382]: change user name `test101' to `test150'
Jul 3 17:04:55 localhost usermod[9382]: change user `test150' GID from `1012'
to `1013'
Jul 3 17:04:55 localhost usermod[9382]: change user `test150' home from
`/home/test101' to `/home/test150'
Jul 3 17:04:55 localhost usermod[9382]: change user `test150' shell from
`/bin/bash' to `/bin/bash'
Jul 3 17:04:55 localhost usermod[9382]: change user `test150' password
Jul 3 17:10:06 localhost sudo: foto : TTY=unknown ; PWD=/home/foto ;
USER=root ; COMMAND=/usr/bin/users-admin
Jul 3 17:10:07 localhost sudo: foto : TTY=pts/0 ; PWD=/home/foto ;
USER=root ; COMMAND=/bin/sh -c env LANG="no_NO.UTF-8"
LANGUAGE="nb_NO:nb:no_NO:no:nn_NO:nn:da:sv:en_GB:en"
/usr/share/setup-tool-backends/scripts/users-conf --report
Jul 3 17:11:11 localhost groupadd[9489]: new group: name=test-new, gid=1014
Jul 3 17:11:11 localhost usermod[9491]: change user `root' GID from `0' to `0'
Jul 3 17:11:11 localhost usermod[9491]: change user `root' shell from
`/bin/bash' to `/bin/bash'
Jul 3 17:11:11 localhost usermod[9491]: change user `root' password
Jul 3 17:11:11 localhost usermod[9493]: change user `daemon' GID from `1' to `1'
Jul 3 17:11:11 localhost usermod[9493]: change user `daemon' shell from
`/bin/sh' to `/bin/sh'
Jul 3 17:11:11 localhost usermod[9493]: change user `daemon' password
Jul 3 17:11:11 localhost usermod[9495]: change user `bin' GID from `2' to `2'
Jul 3 17:11:11 localhost usermod[9495]: change user `bin' shell from `/bin/sh'
to `/bin/sh'
Jul 3 17:11:11 localhost usermod[9495]: change user `bin' password
Jul 3 17:11:11 localhost usermod[9497]: change user `sys' GID from `3' to `3'
Jul 3 17:11:11 localhost usermod[9497]: change user `sys' shell from `/bin/sh'
to `/bin/sh'
Jul 3 17:11:11 localhost usermod[9497]: change user `sys' password
Jul 3 17:11:11 localhost usermod[9499]: change user `sync' GID from `65534' to
`65534'
Jul 3 17:11:11 localhost usermod[9499]: change user `sync' shell from
`/bin/sync' to `/bin/sync'
Jul 3 17:11:11 localhost usermod[9499]: change user `sync' password
Jul 3 17:11:11 localhost usermod[9501]: change user `games' GID from `60' to `60'
Jul 3 17:11:11 localhost usermod[9501]: change user `games' shell from
`/bin/sh' to `/bin/sh'
Jul 3 17:11:11 localhost usermod[9501]: change user `games' password
Jul 3 17:11:11 localhost usermod[9503]: change user `man' GID from `12' to `12'
Jul 3 17:11:11 localhost usermod[9503]: change user `man' shell from `/bin/sh'
to `/bin/sh'
Jul 3 17:11:11 localhost usermod[9503]: change user `man' password
Jul 3 17:11:11 localhost usermod[9505]: change user `lp' GID from `7' to `7'
Jul 3 17:11:11 localhost usermod[9505]: change user `lp' shell from `/bin/sh'
to `/bin/sh'
Jul 3 17:11:11 localhost usermod[9505]: change user `lp' password
Jul 3 17:11:11 localhost usermod[9507]: change user `mail' GID from `8' to `8'
Jul 3 17:11:11 localhost usermod[9507]: change user `mail' shell from `/bin/sh'
to `/bin/sh'
Jul 3 17:11:11 localhost usermod[9507]: change user `mail' password
Jul 3 17:11:11 localhost usermod[9509]: change user `news' GID from `9' to `9'
Jul 3 17:11:11 localhost usermod[9509]: change user `news' shell from `/bin/sh'
to `/bin/sh'
Jul 3 17:11:11 localhost usermod[9509]: change user `news' password
Jul 3 17:11:11 localhost usermod[9511]: change user `uucp' GID from `10' to `10'
Jul 3 17:11:11 localhost usermod[9511]: change user `uucp' shell from `/bin/sh'
to `/bin/sh'
Jul 3 17:11:11 localhost usermod[9511]: change user `uucp' password
Jul 3 17:11:11 localhost usermod[9513]: change user `proxy' GID from `13' to `13'
Jul 3 17:11:11 localhost usermod[9513]: change user `proxy' shell from
`/bin/sh' to `/bin/sh'
Jul 3 17:11:11 localhost usermod[9513]: change user `proxy' password
Jul 3 17:11:11 localhost usermod[9515]: change user `www-data' GID from `33' to
`33'
Jul 3 17:11:11 localhost usermod[9515]: change user `www-data' shell from
`/bin/sh' to `/bin/sh'
Jul 3 17:11:11 localhost usermod[9515]: change user `www-data' password
Jul 3 17:11:11 localhost usermod[9517]: change user `backup' GID from `34' to `34'
Jul 3 17:11:11 localhost usermod[9517]: change user `backup' shell from
`/bin/sh' to `/bin/sh'
Jul 3 17:11:11 localhost usermod[9517]: change user `backup' password
Jul 3 17:11:11 localhost usermod[9519]: change user `list' GID from `38' to `38'
Jul 3 17:11:11 localhost usermod[9519]: change user `list' shell from `/bin/sh'
to `/bin/sh'
Jul 3 17:11:11 localhost usermod[9519]: change user `list' password
Jul 3 17:11:11 localhost usermod[9521]: change user `irc' GID from `39' to `39'
Jul 3 17:11:11 localhost usermod[9521]: change user `irc' shell from `/bin/sh'
to `/bin/sh'
Jul 3 17:11:11 localhost usermod[9521]: change user `irc' password
Jul 3 17:11:11 localhost usermod[9523]: change user `gnats' GID from `41' to `41'
Jul 3 17:11:11 localhost usermod[9523]: change user `gnats' shell from
`/bin/sh' to `/bin/sh'
Jul 3 17:11:11 localhost usermod[9523]: change user `gnats' password
Jul 3 17:11:11 localhost usermod[9525]: change user `nobody' GID from `65534'
to `65534'
Jul 3 17:11:11 localhost usermod[9525]: change user `nobody' shell from
`/bin/sh' to `/bin/sh'
Jul 3 17:11:11 localhost usermod[9525]: change user `nobody' password
Jul 3 17:11:11 localhost usermod[9527]: change user `postfix' GID from `103' to
`103'
Jul 3 17:11:11 localhost usermod[9527]: change user `postfix' shell from
`/bin/false' to `/bin/false'
Jul 3 17:11:11 localhost usermod[9527]: change user `postfix' password
Jul 3 17:11:11 localhost usermod[9529]: change user `syslog' GID from `105' to
`105'
Jul 3 17:11:11 localhost usermod[9529]: change user `syslog' shell from
`/bin/false' to `/bin/false'
Jul 3 17:11:11 localhost usermod[9529]: change user `syslog' password
Jul 3 17:11:11 localhost usermod[9531]: change user `klog' GID from `106' to `106'
Jul 3 17:11:11 localhost usermod[9531]: change user `klog' shell from
`/bin/false' to `/bin/false'
Jul 3 17:11:11 localhost usermod[9531]: change user `klog' password
Jul 3 17:11:11 localhost usermod[9533]: change user `foto' GID from `1000' to
`1000'
Jul 3 17:11:11 localhost usermod[9533]: change user `foto' shell from
`/bin/bash' to `/bin/bash'
Jul 3 17:11:11 localhost usermod[9533]: change user `foto' password
Jul 3 17:11:11 localhost usermod[9535]: change user `messagebus' GID from `110'
to `110'
Jul 3 17:11:11 localhost usermod[9535]: change user `messagebus' shell from
`/bin/false' to `/bin/false'
Jul 3 17:11:11 localhost usermod[9535]: change user `messagebus' password
Jul 3 17:11:11 localhost usermod[9537]: change user `cupsys' GID from `107' to
`107'
Jul 3 17:11:11 localhost usermod[9537]: change user `cupsys' shell from
`/bin/false' to `/bin/false'
Jul 3 17:11:11 localhost usermod[9537]: change user `cupsys' password
Jul 3 17:11:11 localhost usermod[9539]: change user `fetchmail' GID from
`65534' to `65534'
Jul 3 17:11:11 localhost usermod[9539]: change user `fetchmail' shell from
`/bin/sh' to `/bin/sh'
Jul 3 17:11:11 localhost usermod[9539]: change user `fetchmail' password
Jul 3 17:11:11 localhost usermod[9541]: change user `hal' GID from `111' to `111'
Jul 3 17:11:11 localhost usermod[9541]: change user `hal' shell from
`/bin/false' to `/bin/false'
Jul 3 17:11:11 localhost usermod[9541]: change user `hal' password
Jul 3 17:11:12 localhost usermod[9543]: change user `saned' GID from `113' to `113'
Jul 3 17:11:12 localhost usermod[9543]: change user `saned' shell from
`/bin/false' to `/bin/false'
Jul 3 17:11:12 localhost usermod[9543]: change user `saned' password
Jul 3 17:11:12 localhost usermod[9545]: change user `gdm' GID from `114' to `114'
Jul 3 17:11:12 localhost usermod[9545]: change user `gdm' shell from
`/bin/false' to `/bin/false'
Jul 3 17:11:12 localhost usermod[9545]: change user `gdm' password
Jul 3 17:11:12 localhost usermod[9547]: change user `surfe' GID from `1010' to
`1010'
Jul 3 17:11:12 localhost usermod[9547]: change user `surfe' shell from
`/bin/bash' to `/bin/bash'
Jul 3 17:11:12 localhost usermod[9547]: change user `surfe' password
Jul 3 17:11:12 localhost usermod[9549]: change user name `test150' to `test-new'
Jul 3 17:11:12 localhost usermod[9549]: change user `test-new' GID from `1013'
to `1014'
Jul 3 17:11:12 localhost usermod[9549]: change user `test-new' home from
`/home/test150' to `/home/test-new'
Jul 3 17:11:12 localhost usermod[9549]: change user `test-new' shell from
`/bin/bash' to `/bin/bash'
Jul 3 17:11:12 localhost usermod[9549]: change user `test-new' password
Jul 3 17:16:22 localhost sudo: foto : TTY=unknown ; PWD=/home/foto ;
USER=root ; COMMAND=/usr/bin/users-admin
Jul 3 17:16:23 localhost sudo: foto : TTY=pts/0 ; PWD=/home/foto ;
USER=root ; COMMAND=/bin/sh -c env LANG="no_NO.UTF-8"
LANGUAGE="nb_NO:nb:no_NO:no:nn_NO:nn:da:sv:en_GB:en"
/usr/share/setup-tool-backends/scripts/users-conf --report
Jul 3 17:17:02 localhost CRON[9634]: (pam_unix) session opened for user root by
(uid=0)
Jul 3 17:17:02 localhost CRON[9634]: (pam_unix) session closed for user root
Jul 3 17:17:05 localhost userdel[9637]: delete user `test-new'
Jul 3 17:17:05 localhost userdel[9637]: removed group `test-new' owned by
`test-new'
Jul 3 17:17:05 localhost usermod[9639]: change user `root' GID from `0' to `0'
Jul 3 17:17:05 localhost usermod[9639]: change user `root' shell from
`/bin/bash' to `/bin/bash'
Jul 3 17:17:05 localhost usermod[9639]: change user `root' password
Jul 3 17:17:05 localhost usermod[9641]: change user `daemon' GID from `1' to `1'
Jul 3 17:17:05 localhost usermod[9641]: change user `daemon' shell from
`/bin/sh' to `/bin/sh'
Jul 3 17:17:05 localhost usermod[9641]: change user `daemon' password
Jul 3 17:17:05 localhost usermod[9643]: change user `bin' GID from `2' to `2'
Jul 3 17:17:05 localhost usermod[9643]: change user `bin' shell from `/bin/sh'
to `/bin/sh'
Jul 3 17:17:05 localhost usermod[9643]: change user `bin' password
Jul 3 17:17:05 localhost usermod[9645]: change user `sys' GID from `3' to `3'
Jul 3 17:17:05 localhost usermod[9645]: change user `sys' shell from `/bin/sh'
to `/bin/sh'
Jul 3 17:17:05 localhost usermod[9645]: change user `sys' password
Jul 3 17:17:05 localhost usermod[9647]: change user `sync' GID from `65534' to
`65534'
Jul 3 17:17:05 localhost usermod[9647]: change user `sync' shell from
`/bin/sync' to `/bin/sync'
Jul 3 17:17:05 localhost usermod[9647]: change user `sync' password
Jul 3 17:17:05 localhost usermod[9649]: change user `games' GID from `60' to `60'
Jul 3 17:17:06 localhost usermod[9649]: change user `games' shell from
`/bin/sh' to `/bin/sh'
Jul 3 17:17:06 localhost usermod[9649]: change user `games' password
Jul 3 17:17:06 localhost usermod[9651]: change user `man' GID from `12' to `12'
Jul 3 17:17:06 localhost usermod[9651]: change user `man' shell from `/bin/sh'
to `/bin/sh'
Jul 3 17:17:06 localhost usermod[9651]: change user `man' password
Jul 3 17:17:06 localhost usermod[9653]: change user `lp' GID from `7' to `7'
Jul 3 17:17:06 localhost usermod[9653]: change user `lp' shell from `/bin/sh'
to `/bin/sh'
Jul 3 17:17:06 localhost usermod[9653]: change user `lp' password
Jul 3 17:17:06 localhost usermod[9655]: change user `mail' GID from `8' to `8'
Jul 3 17:17:06 localhost usermod[9655]: change user `mail' shell from `/bin/sh'
to `/bin/sh'
Jul 3 17:17:06 localhost usermod[9655]: change user `mail' password
Jul 3 17:17:06 localhost usermod[9657]: change user `news' GID from `9' to `9'
Jul 3 17:17:06 localhost usermod[9657]: change user `news' shell from `/bin/sh'
to `/bin/sh'
Jul 3 17:17:06 localhost usermod[9657]: change user `news' password
Jul 3 17:17:06 localhost usermod[9659]: change user `uucp' GID from `10' to `10'
Jul 3 17:17:06 localhost usermod[9659]: change user `uucp' shell from `/bin/sh'
to `/bin/sh'
Jul 3 17:17:06 localhost usermod[9659]: change user `uucp' password
Jul 3 17:17:06 localhost usermod[9661]: change user `proxy' GID from `13' to `13'
Jul 3 17:17:06 localhost usermod[9661]: change user `proxy' shell from
`/bin/sh' to `/bin/sh'
Jul 3 17:17:06 localhost usermod[9661]: change user `proxy' password
Jul 3 17:17:06 localhost usermod[9663]: change user `www-data' GID from `33' to
`33'
Jul 3 17:17:06 localhost usermod[9663]: change user `www-data' shell from
`/bin/sh' to `/bin/sh'
Jul 3 17:17:06 localhost usermod[9663]: change user `www-data' password
Jul 3 17:17:06 localhost usermod[9665]: change user `backup' GID from `34' to `34'
Jul 3 17:17:06 localhost usermod[9665]: change user `backup' shell from
`/bin/sh' to `/bin/sh'
Jul 3 17:17:06 localhost usermod[9665]: change user `backup' password
Jul 3 17:17:06 localhost usermod[9667]: change user `list' GID from `38' to `38'
Jul 3 17:17:06 localhost usermod[9667]: change user `list' shell from `/bin/sh'
to `/bin/sh'
Jul 3 17:17:06 localhost usermod[9667]: change user `list' password
Jul 3 17:17:06 localhost usermod[9669]: change user `irc' GID from `39' to `39'
Jul 3 17:17:06 localhost usermod[9669]: change user `irc' shell from `/bin/sh'
to `/bin/sh'
Jul 3 17:17:06 localhost usermod[9669]: change user `irc' password
Jul 3 17:17:06 localhost usermod[9671]: change user `gnats' GID from `41' to `41'
Jul 3 17:17:06 localhost usermod[9671]: change user `gnats' shell from
`/bin/sh' to `/bin/sh'
Jul 3 17:17:06 localhost usermod[9671]: change user `gnats' password
Jul 3 17:17:06 localhost usermod[9673]: change user `nobody' GID from `65534'
to `65534'
Jul 3 17:17:06 localhost usermod[9673]: change user `nobody' shell from
`/bin/sh' to `/bin/sh'
Jul 3 17:17:06 localhost usermod[9673]: change user `nobody' password
Jul 3 17:17:06 localhost usermod[9675]: change user `postfix' GID from `103' to
`103'
Jul 3 17:17:06 localhost usermod[9675]: change user `postfix' shell from
`/bin/false' to `/bin/false'
Jul 3 17:17:06 localhost usermod[9675]: change user `postfix' password
Jul 3 17:17:06 localhost usermod[9677]: change user `syslog' GID from `105' to
`105'
Jul 3 17:17:06 localhost usermod[9677]: change user `syslog' shell from
`/bin/false' to `/bin/false'
Jul 3 17:17:06 localhost usermod[9677]: change user `syslog' password
Jul 3 17:17:06 localhost usermod[9679]: change user `klog' GID from `106' to `106'
Jul 3 17:17:06 localhost usermod[9679]: change user `klog' shell from
`/bin/false' to `/bin/false'
Jul 3 17:17:06 localhost usermod[9679]: change user `klog' password
Jul 3 17:17:06 localhost usermod[9681]: change user `foto' GID from `1000' to
`1000'
Jul 3 17:17:06 localhost usermod[9681]: change user `foto' shell from
`/bin/bash' to `/bin/bash'
Jul 3 17:17:06 localhost usermod[9681]: change user `foto' password
Jul 3 17:17:06 localhost usermod[9683]: change user `messagebus' GID from `110'
to `110'
Jul 3 17:17:06 localhost usermod[9683]: change user `messagebus' shell from
`/bin/false' to `/bin/false'
Jul 3 17:17:06 localhost usermod[9683]: change user `messagebus' password
Jul 3 17:17:06 localhost usermod[9685]: change user `cupsys' GID from `107' to
`107'
Jul 3 17:17:06 localhost usermod[9685]: change user `cupsys' shell from
`/bin/false' to `/bin/false'
Jul 3 17:17:06 localhost usermod[9685]: change user `cupsys' password
Jul 3 17:17:06 localhost usermod[9687]: change user `fetchmail' GID from
`65534' to `65534'
Jul 3 17:17:06 localhost usermod[9687]: change user `fetchmail' shell from
`/bin/sh' to `/bin/sh'
Jul 3 17:17:06 localhost usermod[9687]: change user `fetchmail' password
Jul 3 17:17:06 localhost usermod[9689]: change user `hal' GID from `111' to `111'
Jul 3 17:17:06 localhost usermod[9689]: change user `hal' shell from
`/bin/false' to `/bin/false'
Jul 3 17:17:06 localhost usermod[9689]: change user `hal' password
Jul 3 17:17:06 localhost usermod[9691]: change user `saned' GID from `113' to `113'
Jul 3 17:17:06 localhost usermod[9691]: change user `saned' shell from
`/bin/false' to `/bin/false'
Jul 3 17:17:06 localhost usermod[9691]: change user `saned' password
Jul 3 17:17:06 localhost usermod[9693]: change user `gdm' GID from `114' to `114'
Jul 3 17:17:06 localhost usermod[9693]: change user `gdm' shell from
`/bin/false' to `/bin/false'
Jul 3 17:17:06 localhost usermod[9693]: change user `gdm' password
Jul 3 17:17:06 localhost usermod[9695]: change user `surfe' GID from `1010' to
`1010'
Jul 3 17:17:06 localhost usermod[9695]: change user `surfe' shell from
`/bin/bash' to `/bin/bash'
Jul 3 17:17:06 localhost usermod[9695]: change user `surfe' password
Jul 3 17:18:52 localhost sudo: foto : TTY=unknown ; PWD=/home/foto ;
USER=root ; COMMAND=/usr/bin/users-admin
Jul 3 17:18:53 localhost sudo: foto : TTY=pts/0 ; PWD=/home/foto ;
USER=root ; COMMAND=/bin/sh -c env LANG="no_NO.UTF-8"
LANGUAGE="nb_NO:nb:no_NO:no:nn_NO:nn:da:sv:en_GB:en"
/usr/share/setup-tool-backends/scripts/users-conf --report
Jul 3 17:19:21 localhost groupadd[9732]: new group: name=test-brandnew, gid=1014
Jul 3 17:19:21 localhost useradd[9736]: new user: name=test-brandnew, uid=1002,
gid=1014, home=/home/test-brandnew, shell=/bin/bash
Jul 3 17:19:21 localhost usermod[9738]: change user `root' GID from `0' to `0'
Jul 3 17:19:21 localhost usermod[9738]: change user `root' shell from
`/bin/bash' to `/bin/bash'
Jul 3 17:19:21 localhost usermod[9738]: change user `root' password
Jul 3 17:19:21 localhost usermod[9740]: change user `daemon' GID from `1' to `1'
Jul 3 17:19:21 localhost usermod[9740]: change user `daemon' shell from
`/bin/sh' to `/bin/sh'
Jul 3 17:19:22 localhost usermod[9740]: change user `daemon' password
Jul 3 17:19:22 localhost usermod[9742]: change user `bin' GID from `2' to `2'
Jul 3 17:19:22 localhost usermod[9742]: change user `bin' shell from `/bin/sh'
to `/bin/sh'
Jul 3 17:19:22 localhost usermod[9742]: change user `bin' password
Jul 3 17:19:22 localhost usermod[9744]: change user `sys' GID from `3' to `3'
Jul 3 17:19:22 localhost usermod[9744]: change user `sys' shell from `/bin/sh'
to `/bin/sh'
Jul 3 17:19:22 localhost usermod[9744]: change user `sys' password
Jul 3 17:19:22 localhost usermod[9746]: change user `sync' GID from `65534' to
`65534'
Jul 3 17:19:22 localhost usermod[9746]: change user `sync' shell from
`/bin/sync' to `/bin/sync'
Jul 3 17:19:22 localhost usermod[9746]: change user `sync' password
Jul 3 17:19:22 localhost usermod[9748]: change user `games' GID from `60' to `60'
Jul 3 17:19:22 localhost usermod[9748]: change user `games' shell from
`/bin/sh' to `/bin/sh'
Jul 3 17:19:22 localhost usermod[9748]: change user `games' password
Jul 3 17:19:22 localhost usermod[9750]: change user `man' GID from `12' to `12'
Jul 3 17:19:22 localhost usermod[9750]: change user `man' shell from `/bin/sh'
to `/bin/sh'
Jul 3 17:19:22 localhost usermod[9750]: change user `man' password
Jul 3 17:19:22 localhost usermod[9752]: change user `lp' GID from `7' to `7'
Jul 3 17:19:22 localhost usermod[9752]: change user `lp' shell from `/bin/sh'
to `/bin/sh'
Jul 3 17:19:22 localhost usermod[9752]: change user `lp' password
Jul 3 17:19:22 localhost usermod[9754]: change user `mail' GID from `8' to `8'
Jul 3 17:19:22 localhost usermod[9754]: change user `mail' shell from `/bin/sh'
to `/bin/sh'
Jul 3 17:19:22 localhost usermod[9754]: change user `mail' password
Jul 3 17:19:22 localhost usermod[9756]: change user `news' GID from `9' to `9'
Jul 3 17:19:22 localhost usermod[9756]: change user `news' shell from `/bin/sh'
to `/bin/sh'
Jul 3 17:19:22 localhost usermod[9756]: change user `news' password
Jul 3 17:19:22 localhost usermod[9758]: change user `uucp' GID from `10' to `10'
Jul 3 17:19:22 localhost usermod[9758]: change user `uucp' shell from `/bin/sh'
to `/bin/sh'
Jul 3 17:19:22 localhost usermod[9758]: change user `uucp' password
Jul 3 17:19:22 localhost usermod[9760]: change user `proxy' GID from `13' to `13'
Jul 3 17:19:22 localhost usermod[9760]: change user `proxy' shell from
`/bin/sh' to `/bin/sh'
Jul 3 17:19:22 localhost usermod[9760]: change user `proxy' password
Jul 3 17:19:22 localhost usermod[9762]: change user `www-data' GID from `33' to
`33'
Jul 3 17:19:22 localhost usermod[9762]: change user `www-data' shell from
`/bin/sh' to `/bin/sh'
Jul 3 17:19:22 localhost usermod[9762]: change user `www-data' password
Jul 3 17:19:22 localhost usermod[9764]: change user `backup' GID from `34' to `34'
Jul 3 17:19:22 localhost usermod[9764]: change user `backup' shell from
`/bin/sh' to `/bin/sh'
Jul 3 17:19:22 localhost usermod[9764]: change user `backup' password
Jul 3 17:19:22 localhost usermod[9766]: change user `list' GID from `38' to `38'
Jul 3 17:19:22 localhost usermod[9766]: change user `list' shell from `/bin/sh'
to `/bin/sh'
Jul 3 17:19:22 localhost usermod[9766]: change user `list' password
Jul 3 17:19:22 localhost usermod[9768]: change user `irc' GID from `39' to `39'
Jul 3 17:19:22 localhost usermod[9768]: change user `irc' shell from `/bin/sh'
to `/bin/sh'
Jul 3 17:19:22 localhost usermod[9768]: change user `irc' password
Jul 3 17:19:22 localhost usermod[9770]: change user `gnats' GID from `41' to `41'
Jul 3 17:19:22 localhost usermod[9770]: change user `gnats' shell from
`/bin/sh' to `/bin/sh'
Jul 3 17:19:22 localhost usermod[9770]: change user `gnats' password
Jul 3 17:19:22 localhost usermod[9772]: change user `nobody' GID from `65534'
to `65534'
Jul 3 17:19:22 localhost usermod[9772]: change user `nobody' shell from
`/bin/sh' to `/bin/sh'
Jul 3 17:19:22 localhost usermod[9772]: change user `nobody' password
Jul 3 17:19:22 localhost usermod[9774]: change user `postfix' GID from `103' to
`103'
Jul 3 17:19:22 localhost usermod[9774]: change user `postfix' shell from
`/bin/false' to `/bin/false'
Jul 3 17:19:22 localhost usermod[9774]: change user `postfix' password
Jul 3 17:19:22 localhost usermod[9776]: change user `syslog' GID from `105' to
`105'
Jul 3 17:19:22 localhost usermod[9776]: change user `syslog' shell from
`/bin/false' to `/bin/false'
Jul 3 17:19:22 localhost usermod[9776]: change user `syslog' password
Jul 3 17:19:22 localhost usermod[9778]: change user `klog' GID from `106' to `106'
Jul 3 17:19:22 localhost usermod[9778]: change user `klog' shell from
`/bin/false' to `/bin/false'
Jul 3 17:19:22 localhost usermod[9778]: change user `klog' password
Jul 3 17:19:22 localhost usermod[9780]: change user `foto' GID from `1000' to
`1000'
Jul 3 17:19:22 localhost usermod[9780]: change user `foto' shell from
`/bin/bash' to `/bin/bash'
Jul 3 17:19:22 localhost usermod[9780]: change user `foto' password
Jul 3 17:19:22 localhost usermod[9782]: change user `messagebus' GID from `110'
to `110'
Jul 3 17:19:22 localhost usermod[9782]: change user `messagebus' shell from
`/bin/false' to `/bin/false'
Jul 3 17:19:22 localhost usermod[9782]: change user `messagebus' password
Jul 3 17:19:22 localhost usermod[9784]: change user `cupsys' GID from `107' to
`107'
Jul 3 17:19:22 localhost usermod[9784]: change user `cupsys' shell from
`/bin/false' to `/bin/false'
Jul 3 17:19:22 localhost usermod[9784]: change user `cupsys' password
Jul 3 17:19:22 localhost usermod[9786]: change user `fetchmail' GID from
`65534' to `65534'
Jul 3 17:19:22 localhost usermod[9786]: change user `fetchmail' shell from
`/bin/sh' to `/bin/sh'
Jul 3 17:19:22 localhost usermod[9786]: change user `fetchmail' password
Jul 3 17:19:22 localhost usermod[9788]: change user `hal' GID from `111' to `111'
Jul 3 17:19:22 localhost usermod[9788]: change user `hal' shell from
`/bin/false' to `/bin/false'
Jul 3 17:19:22 localhost usermod[9788]: change user `hal' password
Jul 3 17:19:22 localhost usermod[9790]: change user `saned' GID from `113' to `113'
Jul 3 17:19:22 localhost usermod[9790]: change user `saned' shell from
`/bin/false' to `/bin/false'
Jul 3 17:19:22 localhost usermod[9790]: change user `saned' password
Jul 3 17:19:22 localhost usermod[9792]: change user `gdm' GID from `114' to `114'
Jul 3 17:19:22 localhost usermod[9792]: change user `gdm' shell from
`/bin/false' to `/bin/false'
Jul 3 17:19:22 localhost usermod[9792]: change user `gdm' password
Jul 3 17:19:22 localhost usermod[9794]: change user `surfe' GID from `1010' to
`1010'
Jul 3 17:19:22 localhost usermod[9794]: change user `surfe' shell from
`/bin/bash' to `/bin/bash'
Jul 3 17:19:22 localhost usermod[9794]: change user `surfe' password
Jul 3 17:31:42 localhost sudo: foto : TTY=pts/0 ; PWD=/home/foto ;
USER=root ; COMMAND=/usr/bin/vim /var/log/auth.log
Jul 3 17:34:07 localhost sudo: foto : TTY=pts/0 ; PWD=/home/foto ;
USER=root ; COMMAND=/usr/bin/gedit /var/log/auth.log

Tags: users-admin
Revision history for this message
Niklas Lindblad (nlindblad) wrote :

I can confirm this using Ubuntu 5.10 with GNOME 2.12.1.

Revision history for this message
Phil Bull (philbull) wrote :

Thanks for the reports.

I can confirm this for gnome-system-tools 2.14.0-0ubuntu2.

Sivan Greenberg (sivan)
Changed in gnome-system-tools:
assignee: desktop-bugs → sivan
Revision history for this message
Sivan Greenberg (sivan) wrote :

I can also confirm this. I have investigated a bit and it seems the problem lies somewhere in backend , or I assume in the way it executes the command to add a user.

cat /etc/passwd | grep "$THE_USER_WITHOUT_HOME" , shows, that the relevant data was added to the users db on the host. users-conf reports this data as expected.

Going to check possible failure points for the users-conf backend tool.

Revision history for this message
Sivan Greenberg (sivan) wrote :

I've discussed this with upstream, and it appears the culprit lies in how the frontend is communicating with the backend. When a user is removed, and a new one is created in the same run without pressing okay as detailed in the reproduction scenario, the removed and new users data takes the last item (same place) in the xml that is dispatched to the backend to process. then the backend mistakengly thinks that this is a user modification, rather then a removed user , and a one that has been newly added. carlosg suggested adding an asserted mkdir call in the backend, which would be a very small and unobtrusive patch.

Revision history for this message
Sivan Greenberg (sivan) wrote :

okay, I patched it to check inside users-conf (s-t-b) if the home of the modified user does not exist. if it is indeed missing, then I am creating it there. However, now the bug is sovled, but since this is not done through adduser or usermod's user creation, the login defs for creating a new user's home are also not applied, resulting in a missing Examples (example content) symlink and probably other stuff.

Checking with usermod , I see that it has a -d flag to specify the home folder to create for the user - and the backend does use this flag. So it currently puzzles me why it didn't work the first place. Idea anyone? (I could hack it some more to add the missing symlink, but this is really ugly and will enralge the patch even more)

Revision history for this message
Sivan Greenberg (sivan) wrote :
Sivan Greenberg (sivan)
Changed in gnome-system-tools:
assignee: sivan → nobody
Changed in system-tools-backends:
status: Unconfirmed → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

fixed upstream

Changed in gnome-system-tools:
assignee: nobody → desktop-bugs
status: Confirmed → Fix Committed
Revision history for this message
Sebastien Bacher (seb128) wrote :

This upload fixes the issue:

" system-tools-backends (1.9.6-0ubuntu1) edgy; urgency=low
 .
   * New upstream version:
     - Do not repeat multiple SMB share entries when the name has a $ symbol
       (Ubuntu: #6142)
     - Avoid timeouts during file monitoring (Ubuntu: #61186)
     - Code improvements to BSD, RCng and SuSE services init code
     - Add an UID/GID independent ID number in UsersConfig and GroupsConfig
       to avoid confusions when adding/deleting groups (Ubuntu: #18632)
     - DBus struct improvements in ServicesConfig
     - Avoid "use lib" warning during s-t-b initialization
     - Fix a possible bug when saving modem interfaces configuration
     - Code cleanups"

Changed in gnome-system-tools:
status: Fix Committed → Fix Released
Changed in system-tools-backends:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.