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

interprocess command in unix be achieved by a)pipes b)messages c)semaphores d)shared memory e)all

2 Answers   Mascot,


Name key files or directories on a Windows system that should always be backed up?

2 Answers  


why unix command can be divided into internal and external command

1 Answers   IBM,


What are the processes that are not bothered by the swapper? Give Reason.

1 Answers  


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

1 Answers  






What scripting languages do you know?

1 Answers  


What are Profilers?

1 Answers   Axis Technologies,


What are each of the standard files and what are they normally associated with?

1 Answers   ITCO,


What are setuid/setgid in relation to file permissions?

2 Answers   Cap Gemini, IBM,


Why do inode number start from 1 and not 0 ?

3 Answers  


How many VI editor modes do you know?

8 Answers   Infosys,


What is major difference between the Historic Unix and the new BSD release of Unix System V in terms of Memory Management?

1 Answers  


Categories