[Samba] Force user and replace with SUID and SGID. Realize error, but please assist

Michael Kelly mkelly at victoria.komex.com
Thu Dec 9 00:51:42 GMT 2004

Hello again,

Okay so I realize the error I made with the SUID ans SGID. Those
settings represent what user/group the "file" is executed under. Must
have had a brain cramp or something. I would however still appreciate
some assistance in trying to get rid of the "force user" setting I am
having to use to resolve an issue with Microsoft Office files and their
time stamps being changed upon viewing of the file.

Michael Kelly

>>> "Michael Kelly" <mkelly at victoria.komex.com> 06/12/2004 10:02:18 am
Hi all,

I am trying to get rid of a force user setting on our samba server. I
read an article that talked about setting the SUID and SGID on the
top-level directory, and all sub-directories, of a share and this
cause all files to be own by the user and group for which the sticky
has been set.

Here is what I did.

1. recursively changed owner/group on all file and directories in the
share to the user and group who I wanted to own said files and
2. executed "find /mnt/fileserver/server -type d -exec ug+s {} \;" to
set the sticky bit on all directories within the share.
3. removed the "force user" entry from the share definition and
restarted Samba
4. Browsed the share and created a new file. It came up as owned by me
not the user who I had set the sticky bit for. It did have the proper
group as I am a member of that group.
5. Opened and Excel file and then closed that file. It prompted me to
save changes, made none, and when I said no it updated the time stamp

I am using the "force user" entry to solve the known problem with
Microsoft Office files. I have about 14 employees who access the share
and all file and directories within it. Timestamps are very important
and we need them not be changed when simply viewing a file.

It was my understanding that by setting the SUID and SGID it would
cause all files to retain their ownership and all newly created files
get the user and group for which the sticky bit was set. 

I know that this is a Linux file system question, but it is relating
Samba and I am hoping that someone out there has experienced this and
can point me in the right direction.

Thank you
Michael Kelly
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

More information about the samba mailing list