Question: For your assignment list the commands required. If you have you have a Linux/UNIX windows emulators, VM ware player or workstation verify the correctness of

For your assignment list the commands required. If you have you have a Linux/UNIX windows emulators, VM ware player or workstation verify the correctness of your Linux assignments:

1. Lets learn a little bit about file permissions. Go to your home directory and run:

$ ls la

Take a screenshot.

On the left side of the output you see the following:

For your assignment list the commands required. If you have you have

rwx is for read, write, and exectute permissions, respectively.

2. Create an empty file called A.txt. Lets look at the file permissions for A.txt.

$ ls l A.txt

What does the file permissions (the portion shown above) read for A.txt?

3. Lets add executable permissions to A.txt for our user.

$ chmod u+x A.txt

Now check the file permissions for A.txt. What does is say for A.txt?

4. Lets remove group read permissions to A.txt.

$ chmod g-r A.txt

Now check the file permissions for A.txt. What does it say for A.txt?

5. Sometimes it is easier to provide permissions for user, group, and others all in one command. For this we use octal values. This is the most common form for representing file permissions.

a Linux/UNIX windows emulators, VM ware player or workstation verify the correctness

6. Lets give A.txt read and write permissions for everyone.

$ chmod 666 A.txt

Now check the file permissions for A.txt. What does it say?

7. Lets give the owner read, write, and execute permissions; give the group read and write permissions; and give all others read permissions for A.txt.

$ chmod 764 A.txt

Now check the file permissions for A.txt. What does it say?

File Type Owner Group Others d-directory - file Octal Value Permission ead execute/search Octal Value Permission -x .X

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 Databases Questions!