You are on page 1of 4

LINUX ACCOUNTS MANAGMENT

This Work Proted To you By : Tariq Ahmed (TASS). Amro Salah (Amronzo). Umar Bello (Abiola).

# Important Key Points:~


Why

we Write sudo before any command that is related to an Account?


We Are Using sudo to give the root permission When dealing with something big, such as managing accounts, from adding, Locking , deleting & so on.

Why

Groups & Users Accounts within it?


To Control access to the System Files & the files , directories(Folders) &

peripherals that can be shared among different accounts.

# Users Account Management


*To Create(Add) a New User:

Type the Command : sudo adduser <username> For Example : sudo adduser Zain

*To

Change a User Password:


Type the Command : sudo passwd <username> For Example : sudo passwd Zain

*To Lock & Unlock a User Account:


Type the Command : sudo passwd -l <username> For Example : sudo passwd -l Zain

#Note: If it wasnt Locked it will Lock, & if it Locked before then it will Unlock it.

*To Remove(Delete) a User Account:


Type the Command : sudo deluser <username> For Example : sudo deluser Zain

# Groups Account Management


*To Create(Add) a New Group:

Type the Command : sudo addgroup <groupname> For Example : sudo addgroup Batch11

*To Add(Join) a User to a Group:


Type the Command : sudo adduser <username> <groupname> For Example : sudo adduser Zain Batch11

*To

Remove(Delete) a Group:

Type the Command : sudo delgroup <groupname> For Example : sudo delgroup Batch11

You might also like