Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

image text in transcribed

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.

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions