Add users
To add a user to Linux
$ sudo adduser username
List users
To list users in Linux
$ less /etc/passwd
To serch for users/a user
$ more /etc/passwd | grep username
List members in group
To list the members of a group in Linux
$ getent group groupname
Add user to group
To add a user to a group in Linux
$ sudo usermod -aG group usernamename
No comments:
Post a Comment