"Sticky" bit with samba, is it possible?

Christian Barth barth at cck.uni-kl.de
Wed Oct 24 23:52:05 GMT 2001


> No that is not right
> 
> 0750 = rwxr-x---
> 0740 = rwxr-----
> 
> But when I set it to 0740, the rwx are still: rwxrw---- by creating a new
> file

Probaply "inherit permissions = yes" overrules teh force create mask

Christian

> 
> 
> 
> -----Oorspronkelijk bericht-----
> Van: samba-admin at lists.samba.org
> [mailto:samba-admin at lists.samba.org]Namens Charles Marcus
> Verzonden: woensdag 24 oktober 2001 23:08
> Aan: samba at lists.samba.org
> Onderwerp: RE: "Sticky" bit with samba, is it possible?
> 
> 
> ?
> 
> force create mask is set to 0750, which is indeed rwxrw, so change it to
> 0740?
> 
> Charles
> 
> > -----Original Message-----
> > From: samba-admin at lists.samba.org
> > [mailto:samba-admin at lists.samba.org]On
> > Behalf Of Martin Stuij
> > Sent: Wednesday, October 24, 2001 5:11 PM
> > To: samba at lists.samba.org
> > Subject: RE: "Sticky" bit with samba, is it possible?
> >
> >
> > 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
> > are:
> >
> > rwxrw----
> >
> > It should be: rwxr-----
> >
> > This is the smb.conf:
> >
> > [Public]
> > 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?
> >
> >
> >
> > -----Oorspronkelijk bericht-----
> > 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:
> > >
> > > [Public]
> > > 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
> > > "Sticky"-bit??
> > >
> > > So I have the force create mask give a value that it should set the
> > > "Sticky"-bit.
> > >
> > > 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
> > owner?
> >
> > >
> > > 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)
> >
> > Christian
> >
> > >
> > > (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
> > instructions:  http://lists.samba.org/mailman/listinfo/samba
> >
> >
> >
> > --
> > To unsubscribe from this list go to the following URL and read the
> > instructions:  http://lists.samba.org/mailman/listinfo/samba
> >
> 
> 
> 
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba
> 
> 
> 
> -- 
> 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|//   \\|///  \\\|//\\\|/// \|///  \\\|//  \\|//  \\\|// 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^




More information about the samba mailing list