Open main menu

CDOT Wiki β

Changes

OPS245 Lab 4

124 bytes added, 18:42, 23 January 2021
m
Part 3: Managing Groups
#Now re-issue the command to create '''welcome''' group. This time, sudo should work.
#Issue the command: <b><code><span style="color:#3366CC;font-size:1.2em;">grep welcome /etc/group</span></code></b> file to confirm that the group '''welcome''' was created.
# Read the man page for the <b><code><span style="color:#3366CC;font-size:1.2em;">usermod</span></code></b> commandand <b><code><span style="color:#3366CC;font-size:1.2em;">groupmod</span></code></b> commands. Which command (and which option ) will allow you to set the Group ID number ('''GID''') when you create a new group? Which command (and options ) allow you to both append and assign users to an existing group name?
# Issue two separate '''usermod''' commands to add both '''ops245_1''' and '''ops245_2''' to the newly-created '''welcome''' group.
# Verify that both ops245_1 and ops245_2 now belong to the '''welcome''' group.
 
===Practical Example===
932
edits