Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Directory for users to drop files - need listing but no read
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
OdinsDream
Veteran
Veteran


Joined: 01 Jun 2002
Posts: 1057

PostPosted: Fri Nov 15, 2002 11:56 pm    Post subject: Directory for users to drop files - need listing but no read Reply with quote

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
View user's profile Send private message
mooman
Apprentice
Apprentice


Joined: 06 Nov 2002
Posts: 175
Location: Vancouver, WA

PostPosted: Sat Nov 16, 2002 12:05 am    Post subject: Reply with quote

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
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Sat Nov 16, 2002 12:11 am    Post subject: Reply with quote

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
View user's profile Send private message
mooman
Apprentice
Apprentice


Joined: 06 Nov 2002
Posts: 175
Location: Vancouver, WA

PostPosted: Sat Nov 16, 2002 12:19 am    Post subject: Reply with quote

Here's an article that may help. Lots of handy examples with clear summaries:

http://www.linuxpowered.com/html/editorials/file.html
_________________
Linux user off and on since circa 1995
Back to top
View user's profile Send private message
OdinsDream
Veteran
Veteran


Joined: 01 Jun 2002
Posts: 1057

PostPosted: Sun Nov 17, 2002 1:21 am    Post subject: Reply with quote

Thanks for the tips and references guys! The last link seems especially useful.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum