Click to See Complete Forum and Search --> : Inherit rights


Jingo
07-24-2002, 03:02 AM
Hi!

We have just installed at RedHat 7.3, to be our primary file server - and it actually works fine in a pure Windows Client enviroment! But we still have 1 small problem...

We have created 7 users in Samba, and made it so that the all gets a privat network drive when they login. The problem is that when they create a new directory in a folder that anyone can access - it is only themselves that can write in it! Not anybody else. And the whole point about having a share that anyone can access, is that anyone can write/delete there as they wish.

You follow me? It must be possible to handle these kind of access rights by groups(we are all member of the same) - but how?

Here is what it says when I create a new directory:

drwxr-xr-x 2 fs users bla bla bla

And then the other user can's create anything there.

Hope that someone can help me! :)

Bye!

SuperHornet
07-24-2002, 11:05 AM
I suggest reading the smb.conf again
look for these sections.
# A publicly accessible directory, read/write to all users. Note that all files
# created in the directory by users will be owned by the default user, so
# any user with access can delete any other user's files. Obviously this
# directory must be writable by the default user. Another user could of course
# be specified, in which case all files would be owned by that user instead.
;[public]
; path = /usr/somewhere/else/public
; public = yes
; only guest = yes
; writable = yes
; printable = no

# The following two entries demonstrate how to share a directory so that two
# users can place files there that will be owned by the specific users. In this
# setup, the directory should be writable by both users and should have the
# sticky bit set on it to prevent abuse. Obviously this could be extended to
# as many users as required.
;[myshare]
; comment = Mary's and Fred's stuff
; path = /usr/somewhere/shared
; valid users = mary fred
; public = no
; writable = yes
; printable = no
; create mask = 0765


This is a small section which I have setup on my samba server.
I have a group called smbusr that I assign all smb enabled users to.

[Share]
path = /share
writable = yes
valid users = @smbusr
write list = @smbusr


and the /share is set to.

drwxrwxrwx 10 nobody smbusr 4.0k Jul 5 11:06 share