Linux Administration
** Linux Administration
` Creating a User
` Add new user Account Using Terminal
- sudo adduser username
` Deleting, disabling account
1. Remove Password Information : sudo passwd -l username
2. Delete Account : sudo userdel -r username
` Adding users to the usergroups
- sudo usermod -a -G GROUPNAME USERNAME
- Adding group mail : sudo usermod -a -G mail USERNAME
- groupmod + Tab Key Twice : all group print
` Removing a user from Usergroup
- sudo deluser USER GROUPNAME
- sudo apt-get install gnome-system-tools
`` Recap
- You can use both GUI or Terminal for User Administration.
- You can create, disable and remove user accounts.
- You can add/delete a user to a usergroup.
- sudo adduser
- sudo passwd -l 'username' : Disable a user
- sudo userdel -r 'username' : Delete a user
- sudo usermod -a -G GROUPNAME USERNAME : Add user a to a usergroup
- sudo deluser USER GROUPNAME : Remove user from a user group
- finger : Gives information on all logged users
- finger username : Gives information of a particular user