Linus Batch Flashcards
1
Q
How do you create a user?
A
$ useradd <username></username>
2
Q
User password syntax
A
$ passwd <username></username>
3
Q
Create new group syntax
A
$ groupadd <groupname></groupname>
4
Q
Switch user group syntax
A
$ newgrp <groupname></groupname>
5
Q
Change files group owner syntax
A
$ chown <filename> <username></username></filename>
6
Q
View user group syntax
A
$ groups user
7
Q
Assign user to group syntax
A
$ usermod -a- g <groupname></groupname>
<username>/ $ gpassword -a
<username> <groupname>
</groupname></username></username>