0% found this document useful (0 votes)
31 views4 pages

LINUX - Accounts Management

This document discusses Linux account management. It explains that the "sudo" command must be used before commands related to accounts to grant root permissions. User and group accounts are created to control access to files and directories. The key commands covered are: adding and deleting users and groups with "adduser", "deluser", and "addgroup", "delgroup"; changing passwords with "passwd"; locking and unlocking accounts with "passwd -l"; and adding users to groups with "adduser username groupname".
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views4 pages

LINUX - Accounts Management

This document discusses Linux account management. It explains that the "sudo" command must be used before commands related to accounts to grant root permissions. User and group accounts are created to control access to files and directories. The key commands covered are: adding and deleting users and groups with "adduser", "deluser", and "addgroup", "delgroup"; changing passwords with "passwd"; locking and unlocking accounts with "passwd -l"; and adding users to groups with "adduser username groupname".
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 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