"Sticky" bit with samba, is it possible?
mstuij1 at chello.nl
Wed Oct 24 14:02:04 GMT 2001
Thnx so far, but there is one problem still.
The Sticky bit is set now but when I make a new file (from windows) the rwx
It should be: rwxr-----
This is the smb.conf:
comment = Everybody can make directories and files in this directory
path = /samba/public
public = no
read only = no
browseable = yes
inherit permissions = yes
force create mask = 0750
force directory mask = 1770
force group = users
What is wrong?
Van: samba-admin at lists.samba.org
[mailto:samba-admin at lists.samba.org]Namens Christian Barth
Verzonden: woensdag 24 oktober 2001 21:55
Aan: samba at lists.samba.org; Martin Stuij
Onderwerp: Re: "Sticky" bit with samba, is it possible?
> I have the next share in my smb.conf:
> comment = Everybody can make directories and files in this directory
> path = /samba/public
> public = no
> read only = no
> browseable = yes
> force create mask = 1750
for your aim you only need the stick-bit on the directory with the
files you want in it. On a file the sticky-bit means "leave the
executable in memory after usage"
> force directory mask = 1770
> force group = users
> This is what I want:
> Everybody of the group "users" may create files and directories in this
> share, but an user from the group "user" is only allowed to delete his OWN
> file and directory.
> Is that possible with samba? I thought that you have to set the
> So I have the force create mask give a value that it should set the
> But it doesn't work.
You mean new directores are not created with the sticky-bit. But if
you set it manualy, files in the directory can only be deleted by the
> First I worked with samba version 2.0.7
> But I've downloaded and installed version 2.2.2 but it doesn't work!
> (I have installed samba on my SuSE 7.0 PC with kernel 2.4.4)
> Any ideas?
try what happens it you set "inherit permissions" in smb.conf to yes.
The sgid-bit is only respected with this (since 2.0.7)
> (Martin Stuij)
> To unsubscribe from this list go to the following URL and read the
> instructions: http://lists.samba.org/mailman/listinfo/samba
_(_)_ wWWWw _
@@@@ (_)@(_) vVVVv _ @@@@ (___) _(_)_
@@()@@ wWWWw (_)\ (___) _(_)_ @@()@@ Y (_)@(_)
@@@@ (___) `|/ Y (_)@(_) @@@@ \|/ (_)\
/ Y \| \|/ /(_) \| |/ |
\ | \ |/ | / \ | / \|/ |/ \| \|/
jgs|// \\|/// \\\|//\\\|/// \|/// \\\|// \\|// \\\|//
To unsubscribe from this list go to the following URL and read the
More information about the samba