The purpose of this assignment is to learn (or review) some of the standard
system administration functions on a Linux system, including account
administration, process control, and periodic processes. Use the script
command to capture the output of all commands in R2.log
, for submission at
the end of the recitation.
                
sudo -s
groupadd
to define presidents, governors, mayors, and senators groups.
groupmod
to change the GID for senators.
groupmod
to restore the GID for senators.
groupdel
to delete the senators group.
/etc/group
for group names and GIDs.
useradd
to add users with the following attributes:
User Name | Home Directory | Password | Shell | Primary Group | Secondary Group |
---|---|---|---|---|---|
taft | /home/taft | william | /bin/bash | users | presidents |
wilson | /home/wilson | woodrow | /bin/bash | users | presidents |
lincoln | /home/lincoln | abe | /bin/bash | users | presidents |
adams | /home/adams | john | /bin/sh | users | presidents |
grant | /home/grant | ulysses | /bin/sh | users | presidents |
usermod
to change the shell to /bin/tcsh
for lincoln.
/bin/tcsh
.
sudo
and passwd to change the password for grant.
userdel
to delete the grant account.
ps
with the -e
, -f
options.
ps
only—no grep
or other filtering commands.
top
.
top
with half-second between screen updates.
top
only with your processes.
ps
and the -C
option.
gedit
session using the kill command with the SIGKILL signal.
crontab
:
-e
to edit, -l
to list, -r
to remove.
-print
from your home directory into R2.cron
.
grep -i cron /var/log/syslog
R2.script
that executes ls -l
in your home directory.
R2.cron
in your home directory.
R2.cron
.
R2.script
and R2.cron
into R2.log
.
script
command with control-D.
Modified: 2017-09-28T09:19                  User: Guest                  Check: HTML CSSEdit History Source |
Apply to CSU |
Contact CSU |
Disclaimer |
Equal Opportunity Colorado State University, Fort Collins, CO 80523 USA © 2015 Colorado State University |