please mention more about the detail permission,
if u want the folder only to be written by root and readable to other then use chmod 644 [path to folder]
if there is an executable files and u want to grant it then use chmod 755 [path to folder]
if u want only those folder read write execute only by root the use chmod 700 [path to folder]
for your case, u can use this solution:
situtation is that you login as root
parent folder name = /father [sticky bit purpose for children folder, only writeable by root]
shared folder name = /children [user cannot delete this folder, but can write below this folder]
- create the parent folder with sticky bit set.
chmod o+t /father [this will set sticky bit]
- create the shared folder
chmod 777 children [everone can access & write, but not delete this folder]
another solution is using acl.
note: folder is owned by root [use chown to set owner/group]
Please spend a time to read the manual --> man chmod
try it and post the error if there is.
Last edited by WorldIsNotFair; 10-01-2008 at 11:57 PM.