GNOME Bugzilla – Bug 122389
users-admin freeze when adding user, and remove root
Last modified: 2004-12-22 21:47:04 UTC
Create a new user with the users-admin tool. When selecting Save, the application just freeze. Since it didn´t respond after many seconds, I close it by force. Then just realize that the files that hold the user/password/group info where altered by the utility. The new user is not only absent, but also my root user. It happened with either View Option (Fewer/More). I can include my normal and post usage files if you need them. Tried with 0.27 and cvs from 2003/09/15, same results BTW, thanks for your work
hi, sorry for the delay :-) I think I managed to fix in CVS, could you try it? thanks
The freeze is gone.... Thanks a lot, but still the user files are badly modified by the user-admin. The root (like before) is completely gone. Pre running /etc/group root::0:root bin::1:root,bin,daemon daemon::2:root,bin,daemon sys::3:root,bin,adm adm::4:root,adm,daemon tty::5:mariov disk::6:root,adm lp::7:lp mem::8: kmem::9: wheel::10:root,mariov floppy::11:root,mariov mail::12:mail news::13:news uucp::14:uucp,mariov man::15:man cron::16:cron console::17: audio::18:mariov cdrom::19:mariov dialout::20:root,mariov ftp::21: sshd::22: at::25:at tape::26:root video::27:root,mariov squid::31:squid gdm::32:gdm xfs::33:xfs games::35: named::40:named mysql:x:60: postgres::70: cdrw::80:mariov apache::81: nut::84: usb::85:mariov vpopmail:x:89: users::100:games,mariov nofiles:x:200: qmail:x:201: postfix:x:207: postdrop:x:208: smmsp:x:209:smmsp slocate::245: portage::250:portage,mariov utmp:x:406: proftpd:x:407: nogroup::65533: nobody::65534: Post running /etc/group root::0:ftp bin:!:1:daemon,ftp daemon::2:bin,daemon,ftp cdrw:x:80: usb:x:85: postdrop:x:208: slocate:x:245: utmp:x:406: nogroup:x:65533: sys:!:3:daemon,bin,adm,ftp adm:!:4:adm,daemon,ftp tty:!:5: disk:!:6:adm,ftp lp:!:7:uucp,lp mem:!:8: kmem:!:9: wheel:!:10:mariov,ftp floppy:!:11:ftp mail:!:12:mail news:!:13:news uucp:!:14:uucp man:!:15:man cron:!:16:cron console::17: audio:!:18:mariov cdrom:!:19:mariov dialout:!:20:mariov,ftp ftp::21: sshd:x:22: at:!:25: tape:!:26:ftp video:!:27:mariov squid:x:31: gdm:x:32: xfs:!:33: games::35: Need to fill it as an additional bug?
gosh, I have no clue :-/, the changes seem to be quite random, at first sight the root user is substituted by the ftp user, but your user is sometimes removed and sometimes not, there are also removed groups :-/ could you check the XML generated by the backend?, you can get it this way (if GST are installed in /usr): /usr/share/setup-tools-backends/scripts/users-conf --get > xml_file the manipulation that the frontend does to the XML is pretty simple, so I think that the bug must be in the backend the XML is pretty understandable, so if you see that it's correct, then try applying it in this way: /usr/share/setup-tools-backends/scripts/users-conf --set < xml_file I hope that this helps to identify the cause of this bug. Sorry, but it doesn't happen to me, and AFAIK to none of the gentoo users that I know of :-/ thanks for your help :-)
oh, and I've realized too that the ordering of the groups isn't the same, pretty strange, because the xml is supposed to be interpreted sequentially... :-/
Sorry for the delay, got cvs from 2003-10-27. Found the xml file generated with the command you gave me complete, all groups, and users were present. So I apply them with the user-conf --set option. After the GST: end of request message, I do a diff conparison of user/group related files between my /etc and my backup ones. They do not show any differene. Later I modify the xml file and remove my name from one of the groups I belong, apply the changes with the --set option, and when checking my user files, the change was done without any other harm. After restore my backup user files, try to perform the same action with the user-admin graphical tool. And after applying the changes, again my user was removed from the files. From the passwd file, only my user was removed. From the group file all groups where I belong were removed.
I will try later with the latest 0.30 version, but check if your gentoo friends installed gentoo prior to 1.4. My system is running unstable packages (usually updated twice weekly), and was installed fresh from a 1.4 CD, and using ck patches to kernel 2.4.22.
Try with lates 0.30 and got different results. All steps where performed with the gui, and applied at the moment, then make a comparison between modified files and backup ones. 1. Adding a user, with no additional modifications (using the defaults), work without problems. 2. Removing a secondary group from an existing user works also. I removed the wheel group from the user mariov without problems or additional changes. 3. The problem was when removing the previously created user and restoring the removed secondary group where the problem shows again. Some of the groups were removed, including the root. Got this from the diff between original group and newly modified group file. --- /download/etc/group 2003-12-16 15:47:40.000000000 -0400 +++ group 2003-12-16 15:56:45.000000000 -0400 @@ -1,51 +1,14 @@ root:x:0:root bin:x:1:root,bin,daemon daemon:x:2:root,bin,daemon -sys:x:3:root,bin,adm adm:x:4:root,adm,daemon -tty:x:5:mariov -disk:x:6:root,adm lp:x:7:lp -mem:x:8: -kmem:x:9: -wheel:x:10:root,mariov -floppy:x:11:root,mariov mail:x:12:mail news:x:13:news uucp:x:14:uucp,mariov man:x:15:man cron:x:16:cron -console:x:17: -audio:x:18:mariov -cdrom:x:19:mariov -dialout:x:20:root,mariov ftp:x:21: -sshd:x:22: at:x:25:at -tape:x:26:root -video:x:27:root,mariov squid:x:31:squid -gdm:x:32:gdm -xfs:x:33:xfs -games:x:35: -named:x:40:named -mysql:x:60: -postgres:x:70: -cdrw:x:80:mariov -apache:x:81: -nut:x:84: -usb:x:85:mariov -vpopmail:x:89: -users:x:100:games,mariov -nofiles:x:200: -qmail:x:201: -postfix:x:207: -postdrop:x:208: -smmsp:x:209:smmsp -slocate:x:245: -portage:x:250:portage,mariov -utmp:x:406: -proftpd:x:407: -nogroup:x:65533: -nobody:x:65534: -cvs:x:408: +users:x:100:mariov The other change in addition to the group modification to my user, I type a name for the user. Will verify the process without this. And thanks for your effors, and any other info you need you can request it.
Correction, adding a user work fine, but when removing it, most of the groups where removed. The user added/removed was mikene. I created it with defaults settings. File changes after adding the user: # diff -u /download/etc/passwd passwd --- /download/etc/passwd 2003-12-16 15:47:41.000000000 -0400 +++ passwd 2003-12-16 16:14:04.000000000 -0400 @@ -43,3 +43,4 @@ p2p:x:1002:100::/home/p2p:/bin/bash sshd:x:22:22:sshd:/var/empty:/dev/null cvs:x:1003:408:added by portage for cvs:/home/cvsroot:/bin/false +mikene:x:1004:100::/home/mikene:/bin/bash # diff -u /download/etc/group group File changes after removing the user: # diff -u /download/etc/group group --- /download/etc/group 2003-12-16 15:47:40.000000000 -0400 +++ group 2003-12-16 16:16:10.000000000 -0400 @@ -1,51 +1,14 @@ root:x:0:root bin:x:1:root,bin,daemon daemon:x:2:root,bin,daemon -sys:x:3:root,bin,adm adm:x:4:root,adm,daemon -tty:x:5:mariov -disk:x:6:root,adm lp:x:7:lp -mem:x:8: -kmem:x:9: -wheel:x:10:root,mariov -floppy:x:11:root,mariov mail:x:12:mail news:x:13:news uucp:x:14:uucp,mariov man:x:15:man cron:x:16:cron -console:x:17: -audio:x:18:mariov -cdrom:x:19:mariov -dialout:x:20:root,mariov ftp:x:21: -sshd:x:22: at:x:25:at -tape:x:26:root -video:x:27:root,mariov squid:x:31:squid -gdm:x:32:gdm -xfs:x:33:xfs -games:x:35: -named:x:40:named -mysql:x:60: -postgres:x:70: -cdrw:x:80:mariov -apache:x:81: -nut:x:84: -usb:x:85:mariov -vpopmail:x:89: -users:x:100:games,mariov -nofiles:x:200: -qmail:x:201: -postfix:x:207: -postdrop:x:208: -smmsp:x:209:smmsp -slocate:x:245: -portage:x:250:portage,mariov -utmp:x:406: -proftpd:x:407: -nogroup:x:65533: -nobody:x:65534: -cvs:x:408: +users:x:100:mariov # diff -u /download/etc/passwd passwd --- /download/etc/passwd 2003-12-16 15:47:41.000000000 -0400 +++ passwd 2003-12-16 16:16:11.000000000 -0400 @@ -15,31 +15,5 @@ cron:x:16:16:cron:/var/spool/cron:/bin/false ftp:x:21:21::/home/ftp:/bin/false at:x:25:25:at:/var/spool/cron/atjobs:/bin/false -squid:x:31:31:Squid:/var/cache/squid:/bin/false -gdm:x:32:32:GDM:/var/lib/gdm:/bin/false -xfs:x:33:33:X Font Server:/etc/X11/fs:/bin/false -games:x:35:35:games:/usr/games:/bin/false -named:x:40:40:bind:/var/bind:/bin/false -mysql:x:60:60:mysql:/var/lib/mysql:/bin/false -postgres:x:70:70::/var/lib/postgresql:/bin/bash -apache:x:81:81:apache:/home/httpd:/bin/false -nut:x:84:84:nut:/var/state/nut:/bin/false -cyrus:x:85:12::/usr/cyrus:/bin/false -vpopmail:x:89:89::/var/vpopmail:/bin/false -alias:x:200:200::/var/qmail/alias:/bin/false -qmaild:x:201:200::/var/qmail:/bin/false -qmaill:x:202:200::/var/qmail:/bin/false -qmailp:x:203:200::/var/qmail:/bin/false -qmailq:x:204:201::/var/qmail:/bin/false -qmailr:x:205:201::/var/qmail:/bin/false -qmails:x:206:201::/var/qmail:/bin/false -postfix:x:207:207:postfix:/var/spool/postfix:/bin/false -smmsp:x:209:209:smmsp:/var/spool/mqueue:/bin/false -portage:x:250:250:portage:/var/tmp/portage:/bin/false -guest:x:405:100:guest:/dev/null:/dev/null +squid:x:31:31:Squid:: mariov:x:1000:100::/home/mariov:/bin/bash -nobody:x:65534:65534:nobody:/:/bin/false -proftpd:x:1001:407::/home/ftp:/bin/false -p2p:x:1002:100::/home/p2p:/bin/bash -sshd:x:22:22:sshd:/var/empty:/dev/null -cvs:x:1003:408:added by portage for cvs:/home/cvsroot:/bin/false
closing this bug, since the original problem that was the freeze was fixed. Will submit a new bug for the erratic user remove behavior.