VIPW:
[Email protected] www.linuxidc.com:/home# VIPW
Find the user you created before, delete the line with DD (Remember to save: Wq or:x). After.
[Email protected] www.linuxidc.com:/home# vipw-s
Find the user belongs to the group, also DD Kill can (remember to save: Wq or:x)
Why do you want to vipw-s? There is only one reason why data consistency must be ensured, or it may cause system crashes or some inexplicable problems
Command pee:
[Email protected] www.linuxidc.com:/home# vipw–help
Usage: VIPW [options]
Options:
-g,–group Editing a group database
-H,–HELP displays this help information and launches
-P,–PASSWD Editing the passwd database
-q,–quiet Quiet mode
-r,–root Chroot_dir CHROOT to the directory
-s,–shadow Editing a shadow or Gshadow database
Two. View current system login User: W
Query the currently logged-on user with the "who" command first
Then use the "Ps-u user name" command to view the user's PID
Then use the "Kill pid" command to kill his sshd or shell process.
/var/spool/mail/
rm-rf/var/spool/mail/User Name
You can re-create the same user name as before
Delete Linux Users