Question

1.Below is the output of the command ls –l report -rw-rw-r--+ 1 max pubs 9537 01-12...

1.Below is the output of the command ls –l report

-rw-rw-r--+ 1 max pubs 9537 01-12 23:17 report

Explain the meaning of the first field (i.e. -rw-rw-r--+)

2.Provide the command to modify the permissions on the file report above so that the user sam has read-only permission, and the user zach has read & write permissions

3.Provide the command to remove the rule that gives sam permission to access the file report

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer :
1)

ls command is used to list out the available file.

ls -l gives all the details of the files.

When we use ls -l command then, following is the structure for every file : d rwx rwx rwx

d : file type (directory)

- : Normal files that contain data

rwx : r(read) w(write) x(execute) permissions

first rwx group stand for User (Owner of the file)

second rwx group stands for Group (files belonging to that group )

third rwx group stands for Other (Any user)

-rw-rw-r--+ 1 max pubs 9537 01-12 23:17 report
-rw-rw-r-- : Normal file having read and write permission to User and Group but other users having only read permission.

1 : Indicates number of file/directory contained in that directory/file. Here only one file is available.

max : Owner of file having read/write permission

pubs : File belongs to pubs group having read/write permission

9537 : Size of the file

01-12 23:17 : Date and Time, when the file created

report : File name

2)

To change the permission use chmod command.

Commds for user sam has only read permission:

chown sam:pubs report

chmod 004 report

Commds for user zach has read and write permission:

chown zach:pubs report

chmod 006 report

3)

chown sam:pubs report

chmod 000 report

chown max:pubs report

Now user sam dont have permission to read/write or execute a report file.

Add a comment
Know the answer?
Add Answer to:
1.Below is the output of the command ls –l report -rw-rw-r--+ 1 max pubs 9537 01-12...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Please complete in JAVA only PROBLEM: CHMOD is a command in the UNIX computer system. It...

    Please complete in JAVA only PROBLEM: CHMOD is a command in the UNIX computer system. It is the command used for giving users permissions to access and change files and directories. There are 3 classes of users. They are the owner, the group and others. The permissions given are: read(r, write(w) and execute(x). The argument of the CHMOD command is a 3-character octal number (ex. 526). When each digit of that number is converted to binary, the binary digits are...

  • do numbers 4-8 4. Given any directory, use the Is command to display: • all files...

    do numbers 4-8 4. Given any directory, use the Is command to display: • all files and sub-directories starting with the letter "D" (note do not list anything in any sub-directory) • its immediate sub-directories (sub-directories only, and no other ordinary files) its immediate hidden sub-directories only - take a screenshot (#3-3) that clearly shows the command and the result. 5. Assume that the following files are in the working directory: $ ls intro notesb ref2 section 1 section3 section4b...

  • Programming Assignment 5: For-Loops CSCI 251-Spring 2019 This program will use the concepts in th...

    using matlab Programming Assignment 5: For-Loops CSCI 251-Spring 2019 This program will use the concepts in the decimal to octal program Introduction: In file systems on servers (think of websites like Google, Amazon, etc.), permission to access the files come from the octal number system. Given an octal quadruple, permissions are defined for the user, the group, and other as follows: Permission First Digit Second Digit Third Digit Fourth Digit Always 01 (User-u) 0 」(Group-g) | (Other-o) Read (r) Write...

  • could you please help me with this problem, also I need a little text so I...

    could you please help me with this problem, also I need a little text so I can understand how you solved the problem? import java.io.File; import java.util.Scanner; /** * This program lists the files in a directory specified by * the user. The user is asked to type in a directory name. * If the name entered by the user is not a directory, a * message is printed and the program ends. */ public class DirectoryList { public static...

  • Edit a C program based on the surface code(which is after the question's instruction.) that will...

    Edit a C program based on the surface code(which is after the question's instruction.) that will implement a customer waiting list that might be used by a restaurant. Use the base code to finish the project. When people want to be seated in the restaurant, they give their name and group size to the host/hostess and then wait until those in front of them have been seated. The program must use a linked list to implement the queue-like data structure....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT