Unix permission commands

timer Asked: Oct 13th, 2014

Question description

  1. The file called /etc/shadow contains the encrypted passwords of all the users on the UNIX system.  The permissions on this file are set to rw-r----- (read-write for the root user, read for the shadow group)

A. True

B. False

This is what I did and got:

I ls -l /etc/shadow and got -rw-r----l root shadow 1296 Aug 24 2012 /etc/shadow

 The answer is true correct?

  2. cd to my home directory. Within my home directory there is a sub-directory called scripts.

A.) What permissions would I need to ADD to the sub-directory called scripts that would allow you to cd into it and view the files. Give me the MINIMUM permissions necessary to do this? (In other words, do not make the directory perms 777)

Hint: Are we in the same LINUX group?  Use the id command to verify this.

A. I would need to add read perms for other.

B. I would need to add read and execute perms for other.

C. I would need to add read perms for group.

D. I would need to add read and write perms for group.

Going by what I have learned I think the answer is D.But can't verify it by excuting the commands. What commands would I use to verify the answer?

Tutor Answer

(Top Tutor) Studypool Tutor
School: Duke University
Studypool has helped 1,244,100 students
flag Report DMCA
Similar Questions
Hot Questions
Related Tags

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors