Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: magwm on August 07, 2007, 03:21:33 PM
-
Goodday!
I am seriously screwing up user and groups installation.. is there a way to clean up ALL USERS AND GROUPS ? without deleting the standard users necessary for the installed software (wikis, ibays, etc.. )
btw what are the linux commands to see the complete list of users and groups?
thanks, Michel
-
Geday Mag,
I'd recommend the Lazy Admin Tools or LAT. I believe you will need to load these on your system as they are not there by default, but once in place here is what you do.
lat-dump -d /root/
This will make a set of files including one with all your users in it. It will be named something like servername.Users
Then do a
lat-users -d /path/to/servername.Users
One by one it will remove the users and a clean fashion. Similar work can be done with the servername.Groups files.
Where do you get this wonderful tool. Check the contribs. It should be one of the most popular tools.
-
Yes, I think it was my poor knowledge of users and groups that made me screw up WITH LAT... so now I have bits pieces everywhere and hand-edited /etc/groups and /etc/passwd.. and a lot of "cannot delete user.. " in var/log/messages..
-
see this post.. I think it resolves many things..
http://forums.contribs.org/index.php?topic=38086.0