Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

CSBP 315 – Operating Systems Fundamentals

Lab Homework 2 - Security


Objective:
Practice common Linux commands.

Procedure:

1. The following list of Linux commands are given for self-learning. Use
'whatis' or 'man' command to find out about each command. Your document
should include the description or screen shots of the output from each of the
command.

Commands:
a. df
b. du
c. gzip
d. file
e. history
f. wget

2. Changing access rights:


chmod u+x Dir1.0 adds execute permission for the owner
chmod go-w file1 removes write permission for the group and
others
chmod ugo=rw testfile sets the permissions for everyone to read and
write, but not execute
chmod u=rwx newDir sets the permissions for the owner to read,
write, and execute

a. How to check access rights for files or directories?

b. Use the command in (a) to find out the access rights for the file named
/etc/passwd.
• Who is the owner of this file?
• What is the permission for the group on this file?

You might also like