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

Is this the command to connect oracle from unix? sqlplus -s username/password. Then what is the -S here...????

1 Answers   TCS,


What do you mean by nice value?

4 Answers  


What do you mean by u-area (user area) or u-block?

6 Answers  


what is difference between milestone and run-levels in Solaris ?

0 Answers  


What are the files in /etc directory?

6 Answers   TCS, Wipro,






how can we create the script in crontab at mid night on sunday,satuarday,fiday 0n monyh october,november,january? please give me answer if anybody knows ? because on important purpose.

2 Answers  


What is a pipe?

18 Answers   Fichtner,


what is output mkvg pvname

0 Answers  


What is the number of the masked code ee@?

2 Answers   Accenture, Amazon, Amdocs,


What steps are required to perform a bare-metal recovery?

1 Answers  


If the terminal is not showing the login prompt,what's the 1st thing you should check?and how do you solve the problem?

2 Answers   TCS,


How to find the version details of unix? if any application is installed in unix OS how to find the version of that application is it possilbe or not? pls let me know cmd in detail.

5 Answers   HCL,


Categories