View previous topic :: View next topic |
Author |
Message |
Ricky Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 30 May 2003 Posts: 341
|
Posted: Fri Dec 12, 2003 9:10 am Post subject: writable subfolder w/ samba |
|
|
Hi, I have a question, and I haven't been able to find the answer via searching or tinkering.
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 |
|
![](templates/gentoo/images/spacer.gif) |
fleed l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1800640613415a758ba4ac3.png)
Joined: 28 Aug 2002 Posts: 756 Location: London
|
Posted: Fri Dec 12, 2003 9:36 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Jesore Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/119480684740bc3bc4b411c.jpg)
Joined: 17 Jul 2002 Posts: 232 Location: Nürnberg Germany
|
Posted: Fri Dec 12, 2003 12:54 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Ricky Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 30 May 2003 Posts: 341
|
Posted: Sat Dec 13, 2003 7:51 pm Post subject: |
|
|
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?
Thanks for your help. ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Jesore Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/119480684740bc3bc4b411c.jpg)
Joined: 17 Jul 2002 Posts: 232 Location: Nürnberg Germany
|
Posted: Tue Dec 16, 2003 3:17 pm Post subject: |
|
|
Not really - I've done things far more stupid.
No, I'm not telling !
Jesore |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|