ragnarokkrr
5/17/2016 - 5:26 PM

From http://www.infoworld.com/article/2718299/enterprise-software/add-or-remove-user-accounts-from-the-terminal-in-linux-mint-13.html

sudo userdel username

sudo rm -r /home/username/
/etc/hosts.deny is checked before /etc/hosts.allow, so you can go

* hosts.deny
ALL : ALL

first, we block everything from everyone,

* hosts.allow
ALL : localhost
sshd: 192.168.0.22
proftpd: 192.168.0.22
sudo mkhomedir_helper jpalma 0022 /etc/skel
usermod -a -G <groupname> username
usermod -a -G ftp,admins,othergroup <username>