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



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

Answer / amit shiknis

Directory permissions are different than they are on files.
On files they're pretty much like you'd expect them: read
the file, write/delete the file, and execute the file. But
for directories it's a bit less intuitive.

· Read means you can get a directory listing.
· Write says you can create or delete contents within
the directory.
· Execute means you are able to enter the directory,
i.e. cd into it.

· Sticky Bits Permission
The sticky bit had a funky purpose originally, but it's now
used to keep people from modifying or deleting the contents
of directories that the user or group owns. You can apply
it to files as well, but it's usually employed on
directories.

Changing Permissions
To change permissions you use the chmod command and simply
lay out what you want the permissions to look like on the
file directory.
Change the permissions on your web directory to 755.
# chmod 755 web_directory
Change the permissions on your grocery list to 644.
# chmod 644 grocery_list.txt



Please let me know if you have any questions.

Thanks,
Amit Shiknis

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Unix AllOther Interview Questions

How to connect oracle database from unix

6 Answers   Cap Gemini, IBM, Wirecard,


What is a filesystem?

3 Answers  


What is paging?

2 Answers   BMC,


What is Expansion swap?

1 Answers   KISSI,


The very first process created by the kernal that runs till the kernal process is haltes is

6 Answers   IBM,






what is difference between kernel and shell?

18 Answers   Juniper Networks,


what happens when we create a file system?

1 Answers  


what is the time for incident, problem and change management tickets?

0 Answers   CGI,


I am trying to unmount a remote file system,but I do not unmount that file system.How can i know the user name (i.e.,user who is using that file system).....write the command with argument

2 Answers  


I am new to Unix and Unix Shell scripting could you guide me on how to go about these subjects and where to start from with concern to Oracle?. I also would like to know where does UNIX shell Scripting help in terms of development of a application in Oracle? I have no clue in the subject so do help me. Thank You Neelima

0 Answers  


how to raise a suncase?pls explain step by step?

0 Answers   CGI,


What is the number of the masked code ee@?

2 Answers   Accenture, Amazon, Amdocs,


Categories