Koozali.org: home of the SME Server

removing all users

Offline magwm

  • *
  • 159
  • +0/-0
  • SmeLover
    • Gadis Tourist Service Italia SRL
removing all users
« 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
MagWm

Offline jfarschman

  • *
  • 406
  • +0/-0
removing all users
« Reply #1 on: August 07, 2007, 04:34:33 PM »
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.
Jay Farschman
ICQ - 60448985
jay@hitechsavvy.com

Offline magwm

  • *
  • 159
  • +0/-0
  • SmeLover
    • Gadis Tourist Service Italia SRL
removing all users
« Reply #2 on: August 07, 2007, 04:52:28 PM »
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..
MagWm

Offline magwm

  • *
  • 159
  • +0/-0
  • SmeLover
    • Gadis Tourist Service Italia SRL
removing all users
« Reply #3 on: August 07, 2007, 04:57:15 PM »
see this post.. I think it resolves many things..


http://forums.contribs.org/index.php?topic=38086.0
MagWm