0% found this document useful (0 votes)
26 views1 page

Linus Commad

The document shows commands for adding and deleting users and groups on a Linux system. It demonstrates how to use sudo to add and remove users and groups, change passwords, and add users to groups. It also shows how to view existing groups and users.

Uploaded by

asdasd
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views1 page

Linus Commad

The document shows commands for adding and deleting users and groups on a Linux system. It demonstrates how to use sudo to add and remove users and groups, change passwords, and add users to groups. It also shows how to view existing groups and users.

Uploaded by

asdasd
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

User Add

$ sudo useradd X
$ sudo useradd Y

$ sudo deluser X
$ sudo userdel Y

$ sudo passwd X
$ sudo passwd Y

$ sudo addgroup readers // works with notification message (someting error msg
occurs that only root can make changes)
$ sudo groupadd writers // works without notification message (Working well)

$ sudo delgroup readers // works notification message


$ sudo grooupdel writers // works without notification message

$ less /etc/group ( to show the existed groups and user )

$ sudo usermod -a -G readers X


$ sudo usermod -a -G writers Y
********************************************************************

View all users


$ cat /etc/passwd

You might also like