diff --git a/doc/gnu-linux-rm-user.md b/doc/gnu-linux-rm-user.md new file mode 100644 index 0000000..116dac7 --- /dev/null +++ b/doc/gnu-linux-rm-user.md @@ -0,0 +1,65 @@ +* list active users +``` +who +``` + +* list processes running by +``` +ps -u +top -U +``` + +* look at the entry of the password list +``` +sudo awk -F: '// {print $1,$2}' /etc/shadow +``` + +* lock the account +``` +sudo passwd -l +``` + +* validate lock +``` +sudo awk -F: '// {print $1,$2}' /etc/shadow +``` + +* kill processes +``` +sudo pkill -KILL -u +``` + +* validate process list +``` +who +``` + +* check scheduled cron jobs for +``` +sudo ls -lh /var/spool/cron/crontabs/ +``` + +* delete cron jobs of +``` +sudo crontab -r -u +``` + +* remove print jobs of +``` +lprm -U +``` + +* remove user +``` +sudo deluser --remove-home +``` + +* check that home dir is removed +``` +ls /home +``` + +* check group +``` +less /etc/group | grep +``` \ No newline at end of file diff --git a/readme.md b/readme.md index 80dd53d..8adf7bc 100644 --- a/readme.md +++ b/readme.md @@ -4,17 +4,19 @@ * [Create bootable USB Drive For OS Installation](doc/bootable-usb-drive.md) * [Cmake](doc/cmake.md) * [Cups](doc/cups.md) -* [Debian Installation](doc/debian-install.md) -* [Debian Configuration](doc/debian-config.md) -* [Debian Lid Switch Configuration](doc/debian-lid-switch-config.md) * [Docker](doc/docker.md) -* [Emacs](doc/emacs.md) * [Email Client](doc/email-client.md) * [Filezilla](doc/filezilla.md) * [Firewall](doc/firewall.md) * [Gimp](doc/gimp.md) * [Git](doc/git.md) * [GitHub Using SSH](doc/github-ssh.md) +* [GNU/Debian Installation](doc/debian-install.md) +* [GNU/Debian Configuration](doc/debian-config.md) +* [GNU/Debian Lid Switch Configuration](doc/debian-lid-switch-config.md) +* [GNU/Emacs](doc/emacs.md) +* [GNU/Linux create user](doc/gnu-linux-create-user.md) +* [GNU/Linux remove user](doc/gnu-linux-rm-user.md) * [Group and User](doc/grp-usr.md) * [Java](doc/java.md) * [Mastarm](doc/mastarm.md)