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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the events done by the Kernel after a process is being swapped out from the main memory?

1973


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

2397


win 3.1 is a

686


. Using sed and grep, write a command which lists files and directories with following properties: (i) created in 1999 (ii) with user's as owner and group

2196


In detail elaborate the system? What is driver?

1675






What is YACC?

653


why unix commands simpler rather than complex task

3842


what is output mkvg pvname

1697


Am using Mac OS 10.4.11 on an Imac (PPC) Internal hard disk got named disk0s3 and will not mount. What commands can be used in TERMINAL to rename the internal hard disk to C96?

2103


What is ant_build.sh? Have u seen that file?

1814


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

2561


Which is the most commonly used replacement algorithm?

691


i am prepairing for 2+ yrs exp in oracle/unix production support,can u tell me which type issue comes in server plz help

6638


If Media Server fails. What are the steps to be followed? Can anyone please reply for this question Thanks, Ganesh

2558


What are the main differences between Apache 1.x and 2.x?

7559