Massimo Arnaudo wrote:
i want to give a permission to write for all users for a file, but i don' t want give the same permissions to the folder where the file is.
The user needs execute permission ('x') on the directory to be able to access files inside. Read permission on a directory enables to see the filenames in the directory, but not to access the files.
Example
total 894 drwxr----- 4 macrame users 239 ott 3 14:27 Mail
in Mail i have this: total 8 -rwxrwxrwx 1 macrame users 1018 ott 3 14:26 IN.default -rwxrw---- 1 macrame users 0 set 21 11:15 Inbox -rwxrw---- 1 macrame users 3353 ott 3 08:35 Sent -rwxrw---- 1 macrame users 0 ott 3 08:34 Unsent -rwxrw---- 1 macrame users 0 mar 8 2001 inbox
If i want to write _IN.default_ (like a new user) i have to change _Mail_, but if i do it the new user can write in the folder, make new files, etc.
No, write permission on the directory is not necessary. All you need is a `chmod g+x Mail`. With read but not execute permission on the directory the user can list the directory, but is not able to access anything inside the directory. Eilert -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Eilert Brinkmann -- Universitaet Bremen -- FB 3, Informatik eilert@informatik.uni-bremen.de - eilert@tzi.org http://www.informatik.uni-bremen.de/~eilert/