Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
writable subfolder w/ samba
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Ricky
Guru
Guru


Joined: 30 May 2003
Posts: 341

PostPosted: Fri Dec 12, 2003 9:10 am    Post subject: writable subfolder w/ samba Reply with quote

Hi, I have a question, and I haven't been able to find the answer via searching or tinkering. :oops:

What I want to do is have a subfolder of a shared folder writable, but not the shared folder itself, via samba using guest access. For example, I have a folder 'shareme' with a bunch of files in it, that is not writable, and I want a subfolder 'writeme' that users can save files to. How do I make shareme/writeme writable? :?

Thanks.
Back to top
View user's profile Send private message
fleed
l33t
l33t


Joined: 28 Aug 2002
Posts: 756
Location: London

PostPosted: Fri Dec 12, 2003 9:36 am    Post subject: Reply with quote

Just an idea, maybe not the best: Mount the samba as user, make the read-only directory owned by a different user, master, say. This way the users wont be able to write to the files owned by master (if you set permissions appropriately) but will have full access to the other folders.
Back to top
View user's profile Send private message
Jesore
Apprentice
Apprentice


Joined: 17 Jul 2002
Posts: 232
Location: Nürnberg Germany

PostPosted: Fri Dec 12, 2003 12:54 pm    Post subject: Reply with quote

Actually this is the official way to do this as far as I know. The samba acess rights do count for the whole defined share, not single files/dirs withing the share. That is realized via the normal file permissions.
I assume that not only guests will access this share, so I can't tell you in all details how to do it unless you explain to us, but I'd just chown the whole share dirs to nonguestuser:GUESTGROUP and set the group bit accordingly to r or rw as you need it. The "nonguestuser" gets write permissions everywhere.
If your setup is more complex, tell me - there are tons of possibilities :) .

Jesore
Back to top
View user's profile Send private message
Ricky
Guru
Guru


Joined: 30 May 2003
Posts: 341

PostPosted: Sat Dec 13, 2003 7:51 pm    Post subject: Reply with quote

Yeah, this works. I tried it before, and the reason it didn't work is because the group couldn't read like two or three parent folders up. Now don't I look silly? :oops:

Thanks for your help. :)
Back to top
View user's profile Send private message
Jesore
Apprentice
Apprentice


Joined: 17 Jul 2002
Posts: 232
Location: Nürnberg Germany

PostPosted: Tue Dec 16, 2003 3:17 pm    Post subject: Reply with quote

Not really - I've done things far more stupid.
No, I'm not telling !

Jesore
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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