Explain the read, write, and execute permissions on a UNIX
directory.

Answers were Sorted based on User's Feedback



Explain the read, write, and execute permissions on a UNIX directory...

Answer / james mathew

read - we can list the directory
ie we can apply ls command
write - we can create file in this directory.
execute - We can navigate to that directory
ie we can apply cd to that directory

Is This Answer Correct ?    14 Yes 1 No

Explain the read, write, and execute permissions on a UNIX directory...

Answer / venkatarao

chmod 777
7--->owner permissions
7--->group permissions
7--->other permissins
by defualt permissions are 755 means owner by default
read,write and execute permissins
the format of permissions are
-rwxr-xr-x
- indicates it's dirctory we mention d and file donot
mention any option.

Is This Answer Correct ?    4 Yes 3 No

Explain the read, write, and execute permissions on a UNIX directory...

Answer / p naveen kumar

in unix, read permission ona directory will allow the user
to list the files in that directory.

Write permission will allow the user to create sub
diretories and new files in to that particular directory.

Untiil and unless a directory has execute permissions, user
cant access the data in that directory.

Is This Answer Correct ?    1 Yes 0 No

Explain the read, write, and execute permissions on a UNIX directory...

Answer / ajay singh

for giving the permission to a file we can use

chmod 777 filename


left to right
1st 7 is for you
2nd is for your group
3rd is for other users

Is This Answer Correct ?    7 Yes 8 No

Explain the read, write, and execute permissions on a UNIX directory...

Answer / m.dhanunjaya

The read,write, and execute permissions for directory is 777
but the default perrmission is 755 only.
Read:-It allows users read the contains of directory.
Write:-It allows users to updates(edit,insert,delete) the
directory.
Execute:-It execute the directory.

permissions of directory:-
---------------------------
user groups others
rd wr exe rd wr exc rd wr exc
4 3 1 4 - 1 4 - 1

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More Unix Commands Interview Questions

Who invented grep?

0 Answers  


What is the comma to display different lines that are found when compare two files?

0 Answers  


In UNIX, what is the command to edit contents of the file?

9 Answers  


Why is it called a shebang?

0 Answers  


boot process?

2 Answers   Atos Origin, Wipro,






what is the command to print last 8 lines of any text file.

10 Answers  


How do I use grep to search for a file?

0 Answers  


How to install scsi driver in unix? give me explanation clearly?

1 Answers   HCL, TCS,


distinguish between multi-tasking,multi-user,multi- processing and time sharing?

4 Answers   Infosys, Nikhil Construction,


what is ls -ltd?

5 Answers   HCL,


Why is shebang used?

0 Answers  


Sorry to all Technical person for mistake of Question. Now i am post currect question Why copied file permission is changed in destination. When i give all permission i.e 777 to file and copy that to other location in destination the permission is 755. But if give permission 555 in destination that file permission is 555 and if give permission 444 to file after copy in destination the file permission is 444. These all are happening in normal user. How the umask value is calculate here really i am not understand. Please write the proper answer. Thanks in Advance

3 Answers   TCS,


Categories