Open main menu

CDOT Wiki β

Changes

OPS235 Lab 4 - CentOS7 - SSD

873 bytes added, 13:26, 13 June 2016
no edit summary
#Remain in your '''centos1''' VM for this section.
#Switch to '''ops235_1's''' user account by issuing the following command: <b><code><span style="color:#3366CC;font-size:1.2em;">login ops235_1</span></code></b>
#Create a file called '''information.txt''' in home directory of that user.
#Issue the following command: <b><code><span style="color:#3366CC;font-size:1.2em;">ls -l information.txt</span></code></b>. Who owns that file? What primary group does that file belong to?
#Issue the command <b><code><span style="color:#3366CC;font-size:1.2em;">exit</span></code></b> to return to your root account.
#Issue the following command to create a group called '''welcome''': <b><code><span style="color:#3366CC;font-size:1.2em;">groupadd welcome</span></code></b>
#Issue the command: <b><code><span style="color:#3366CC;font-size:1.2em;">grep welcome /etc/group</span></code></b> file to confirm that group was created.
 
 
 
# Read the man page for the <b><code><span style="color:#3366CC;font-size:1.2em;">groupadd</span></code></b> and <b><code><span style="color:#3366CC;font-size:1.2em;">groupdel</span></code></b> commands.
# Note which option allows you to set the Group ID number ('''GID''') when you create a new group.
13,420
edits