• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 634
  • Last Modified:

CentOS Delete Users

How do i see a list of all user id's on a centOS box?  Also, how do i delete them?
0
deklinm
Asked:
deklinm
1 Solution
 
farzanjCommented:
To see all the local users, you have to see /etc/passwd file.  So as root run this

cut -f1 -d: /etc/passwd

Open in new window



To delete a user use command
userdel USERID

Make sure the user has no important files.  Once you are sure, you can also delete the home directory by using -r option

See detail
man userdel
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now