View previous topic :: View next topic |
Author |
Message |
OdinsDream Veteran
Joined: 01 Jun 2002 Posts: 1057
|
Posted: Fri Nov 15, 2002 11:56 pm Post subject: Directory for users to drop files - need listing but no read |
|
|
I'm interested in creating a directory that has permissions set in the following way:
- I have read, write, and execute permissions
- group has write permission
- world has write permission
- group has the ability to place files in the directory, and do ls on the directory to verify their file exists.
That last point is what I can't figure out how to do. If I give people write permission, but deny read, they consequently can't list the files in the directory. My intention is to allow submissions to this directory, and also let people do ls to be sure that what they just submitted actually got placed. I don't, however, want people to be able to read the other files in this directory.
Any ideas? |
|
Back to top |
|
|
mooman Apprentice
Joined: 06 Nov 2002 Posts: 175 Location: Vancouver, WA
|
Posted: Sat Nov 16, 2002 12:05 am Post subject: |
|
|
To list files in the directory, the directory itself (not the files) needs "execute" permissions.
EDIT: More specifically, you'd assign group +x permissions to the directory.
BTW, are they copying existing files into it? Having new files get created? Where are these new files coming from...? _________________ Linux user off and on since circa 1995 |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Sat Nov 16, 2002 12:11 am Post subject: |
|
|
It's more of a umask thing than a directory permission thing. Set perms on the directory to 1770 (the sticky bit will stop people from renaming other people's files), and have all users putting things into that directory use umasks of 077.
While I'm here, I think OTG is a better place for this than Portage & Programming. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
mooman Apprentice
Joined: 06 Nov 2002 Posts: 175 Location: Vancouver, WA
|
|
Back to top |
|
|
OdinsDream Veteran
Joined: 01 Jun 2002 Posts: 1057
|
Posted: Sun Nov 17, 2002 1:21 am Post subject: |
|
|
Thanks for the tips and references guys! The last link seems especially useful. |
|
Back to top |
|
|
|