00:00 -16.1: Intruction
Will be using: groupadd, groupmod, useradd, passwd, usermod, command.
00:43 -16.2: Creating Groups
*Basic information.
Need to be in root to do these changes, use su command.
Use the groupadd command to make new groups.
NOTE: -r command to overwrite into reserved range.
Use the groupmod command to change parts of the group.
Use the -n to change the name and -g to change the GID. Use group del to delete either of the groups.
03:25 -16.2.3: getent and grep command
Use the getent command to get information about a group. Syntax: getent group [group name].
Use the grep command to search information inside of a group. Syntax: grep [group name] [directory].
04:29 -16.2.5: groupmod command
Make modifications to a group. General Syntax: groupmod [option] [...] [...].
Use the -n option to change the name. Syntax: groupmod [-n] [new name] [old name].
Use the -g option to change the GID. Syntax: groupmod [-g] [new ID number] [group name].
Use the grep command to verify the information has been changed.
Use the groupdel command to delete a group. Syntax: groupdel [group name].
NOTE: If we change the GID or delete a group all files owned by that group will be orphaned.
06:54 -16.3: User Configuration
Use the useradd -D to display new user settings.
Use the -k to change a skeleton directory.
Use the -f and a number to change the inactive parameter. This is the amount of days after a user's password expires that they can still log in. Syntax: useradd -D -f [number of days].
Use nano to modify the CREATE_MAIL_SPOOL.
10:15 -16.3.6 Adding a user to a group with comments and their own home directory.
Creating a new student. Syntax: useradd -G [group name] -c ' [comments] ' -m [username].
Using grep to check directories and ensure we did this correctly.
11:50 -16.3.7: Using usermod command
Adding a user to a group. Syntax: usermod -aG [group] [user's username].
Use the getent command to get information about a group. Syntax: getent group [group name].
13:20 -16.3.9: Setting a user's password
Syntax: passwd [user's username].
14:16 -16.3.10: To see when a user last logged in and locking accounts
Syntax: last. This lists all the last logins.
Syntax: last [username]. Lists the last login of this specified user.
Use the lastb command to see all bad/ failed logins.
Use the usermod -L command to lock a user's account. Syntax: usermod -L [user's username].
Use the usermod -U command to unlock a user's account. Syntax: usermod -U [user's username].
15:10 -16.3.11: Deleting a user's account
Basic Syntax: userdel [user's username].
To delete the user and their home directory and mail use: Syntax: userdel -r [user's username].
NOTES: https://docs.google.com/document/d/1G...
Auf dieser Seite können Sie das Online-Video Intro to Linux | Cisco Lab16 | Creating Users and Groups mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Computer Engineering life 18 Juli 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 448 Mal angesehen und es wurde von 10 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!