Question: CSCI 4 7 6 0 / 5 7 6 0 Assignment 1 Submission: Take screen shots ( using Windows Snipping Tools to cut and paste

CSCI 4760/5760 Assignment 1
Submission: Take screen shots (using Windows Snipping Tools to cut and paste into a Word
document) to show the commands and results clearly. DO NOT print the whole screen.
Name the document as YourLastName_Assign1. If not specified, each question is 10 pts.
Use tar and bzip2 to create a compressed archive of the /etc/sysconfig directory. Store the
archive under /tmp as etc.tar.bz2.
Search for all files in the entire directory structure that have been modified in the past 30
days and save the file listing in the ?vartmp? modfiles.txt file.
(20pts) Create user accounts called user10, user20, and user30. Set their passwords to
user10, user20, and user30(same as user name). Make accounts for user30 to expire on
December 31,2024.
Create user 40 with UID 1040(-u), home directory /usr/user 40(-d), and shell ?binsh(-s).
Create a group called group 10 and add users user 20 and user 30 as secondary members.
Perform a case-insensitive search for all lines in the /etc/passwd file that begin with the
pattern "user". Then search for the pattern "nologin" in the passwd file and exclude (-v)
the lines in the output that contain this pattern.
Create file lnfile1 under ?tmp and create one hard link ?tmplnfile2 and one soft link
/boot/file1. Edit lnfile1 using the links and confirm.
(20pts) Create a group called group 30 with GID 3000, and add user 30 and user 40 to this
group. Create a directory called /sdata, enable setgid bit on it, and add write permission
bit for the group. Set ownership and owning group to root and group30. Create a file
called file 1 under /sdata as user user30 and modify the file as user 40 Successfully.
(20pts) Create directory / dir1 with full permissions for everyone. Disallow non-owners to
remove files. Test by creating file ?tmpdir11stkfile1 as user10 and removing it as user
user80.
CSCI 4 7 6 0 / 5 7 6 0 Assignment 1 Submission:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!