[Samba] Re: can I configure smb.conf to always publish share
files with -rw-rw-rw- permission ?
Greg Byshenk
samba at byshenk.net
Tue Oct 16 09:50:11 GMT 2007
On Mon, Oct 15, 2007 at 07:25:08AM +0000, KLEIN St?phane wrote:
> Le Mon, 15 Oct 2007 00:03:25 +0200, Greg Byshenk a ??crit??:
> > On Sun, Oct 14, 2007 at 09:30:19PM +0000, KLEIN Stephane wrote:
> >> I use samba to share some files between some clients. I would like than
> >> these files are always view with -rw-rw-rw- rights by all clients event
> >> if someone change file access permissions.
> >
> >> Can I configure smb.conf to do that ?
> > I don't think that you can force Samba to have them "view"ed that way,
> > as the permissions in Samba are dependent upon the permissions on the
> > files themselves (on the server).
> > But you can force the permissions to be set in a given way by Samba when
> > files are created or modified. Look at 'force create mode' in the
> > smb.conf man page.
> I know force create mode, force directory mode parameters but how can I
> force permission when one user launch "chmod" ?
I'm not sure what you are asking when you refer to 'launch "chmod"'.
If you mean 'change permissions from windows', then 'force create mode'
should do what you want.
force create mode (S)
This parameter specifies a set of UNIX mode bit permissions that
will always be set on a file created by Samba. This is done by bit-
wise 'OR'ing these bits onto the mode bits of a file that is being
created or having its permissions changed. The default for this
parameter is (in octal) 000. The modes in this parameter are bitwise
'OR'ed onto the file mode after the mask set in the create mask
parameter is applied.
Note the "is being created *or having its permissions changed*"...
If you mean 'actually running "chmod" on the server', then there is nothing
that Samba can do about that, as that is something that is occurring on the
server itself, below the level of Samba.
What might work to allow full access to everythign in the share-- regardless of
permissions -- would be to assign 'admin users' to the share in question... but
read the warnings about this.
--
greg byshenk - gbyshenk at byshenk.net - Leiden, NL
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
......................
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
.....................
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
....................
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
...................
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
..................
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
.................
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
................
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
...............
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
..............
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
.............
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
............
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
...........
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
..........
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
.........
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
........
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
.......
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
......
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
.....
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
....
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
...
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
..
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
.
More information about the samba
mailing list