Hi, I have a problem with my Samba/WinBIND implementation. In folders shared by multiple people the last one to access and modify a file takes ownership of the file and changes the permissions so other users cannot make changes to the same file: [root@atlas PLANNING RECORDS]# cd REGIONAL\ 1\ AIRLINE\ DOCS/ [root@atlas REGIONAL 1 AIRLINE DOCS]# ls -al total 1232 drwxrws---+ 8 root AVMAX+Domain Admins 4096 Apr 13 13:16 . drwxrws---+ 23 root AVMAX+Domain Admins 4096 Apr 3 08:14 .. drwxrws---+ 7 root AVMAX+Domain Admins 4096 Mar 20 13:01 AALI Reserves drwxrws---+ 3 root AVMAX+Domain Admins 4096 Mar 20 13:02 Archived Documents for Reg. 1 -rwxrwx---+ 1 AVMAX+RMesheau AVMAX+Domain Admins 64512 Apr 13 12:56 LOG BOOK entry template.xls drwxrws---+ 6 root AVMAX+Domain Admins 4096 Mar 30 16:20 Logpages Monthly Templates Reports etc -rwxrwx---+ 1 AVMAX+ALee AVMAX+Domain Admins 552448 Apr 13 13:16 MOD SB Compliance Status ALEX.xls -r--rwx---+ 1 AVMAX+ALee AVMAX+Domain Admins 552448 Apr 12 13:35 MOD SB Compliance Status.xls drwxrws---+ 2 root AVMAX+Domain Admins 4096 Mar 30 16:09 Monthly Workorder Templates drwxrws---+ 3 root AVMAX+Domain Admins 4096 Apr 3 09:06 SIP + Audit Spreadsheets drwxrws---+ 5 root AVMAX+Domain Admins 4096 Mar 20 13:04 Tally Sheets for Regional 1 I want all ownerships to remain root:AVMAX+Domain Admins with drwxrws--- set as the permissions. My ACL's look like this for a file: [root@atlas REGIONAL 1 AIRLINE DOCS]# getfacl MOD\ SB\ Compliance\ Status.xls # file: MOD SB Compliance Status.xls # owner: AVMAX+ALee # group: AVMAX+Domain Admins user::r-- user:root:rwx group::rw- group:AVMAX+Planning:rwx mask::rwx other::--- I think group:AVMAX+Planning:rwx is good but appears to be ineffective once a user takes ownership of a file. And this for a directory: [root@atlas REGIONAL 1 AIRLINE DOCS]# getfacl Tally\ Sheets\ for\ Regional\ 1/ # file: Tally Sheets for Regional 1 # owner: root # group: AVMAX+Domain Admins user::rwx group::rwx group:AVMAX+Planning:rwx mask::rwx other::--- default:user::rwx default:group::rwx default:group:AVMAX+Planning:rwx default:mask::rwx default:other::--- Any ideas as to why this is happening? Travis Bullock Systems Administrator Avmax Group Inc.
Can anyone help me with this? This is a serious problem and it is really screwing me over. Cheers, Travis Bullock Systems Administrator Avmax Group Inc. ----- Original Message ----- From: "Travis Bullock" <tbullock@avmax.ca> To: "samba" <samba@lists.samba.org> Sent: Saturday, April 14, 2007 10:12:30 AM (GMT-0700) America/Denver Subject: [Samba] SAMBA Problem - Users take ownership Hi, I have a problem with my Samba/WinBIND implementation. In folders shared by multiple people the last one to access and modify a file takes ownership of the file and changes the permissions so other users cannot make changes to the same file: [root@atlas PLANNING RECORDS]# cd REGIONAL\ 1\ AIRLINE\ DOCS/ [root@atlas REGIONAL 1 AIRLINE DOCS]# ls -al total 1232 drwxrws---+ 8 root AVMAX+Domain Admins 4096 Apr 13 13:16 . drwxrws---+ 23 root AVMAX+Domain Admins 4096 Apr 3 08:14 .. drwxrws---+ 7 root AVMAX+Domain Admins 4096 Mar 20 13:01 AALI Reserves drwxrws---+ 3 root AVMAX+Domain Admins 4096 Mar 20 13:02 Archived Documents for Reg. 1 -rwxrwx---+ 1 AVMAX+RMesheau AVMAX+Domain Admins 64512 Apr 13 12:56 LOG BOOK entry template.xls drwxrws---+ 6 root AVMAX+Domain Admins 4096 Mar 30 16:20 Logpages Monthly Templates Reports etc -rwxrwx---+ 1 AVMAX+ALee AVMAX+Domain Admins 552448 Apr 13 13:16 MOD SB Compliance Status ALEX.xls -r--rwx---+ 1 AVMAX+ALee AVMAX+Domain Admins 552448 Apr 12 13:35 MOD SB Compliance Status.xls drwxrws---+ 2 root AVMAX+Domain Admins 4096 Mar 30 16:09 Monthly Workorder Templates drwxrws---+ 3 root AVMAX+Domain Admins 4096 Apr 3 09:06 SIP + Audit Spreadsheets drwxrws---+ 5 root AVMAX+Domain Admins 4096 Mar 20 13:04 Tally Sheets for Regional 1 I want all ownerships to remain root:AVMAX+Domain Admins with drwxrws--- set as the permissions. My ACL's look like this for a file: [root@atlas REGIONAL 1 AIRLINE DOCS]# getfacl MOD\ SB\ Compliance\ Status.xls # file: MOD SB Compliance Status.xls # owner: AVMAX+ALee # group: AVMAX+Domain Admins user::r-- user:root:rwx group::rw- group:AVMAX+Planning:rwx mask::rwx other::--- I think group:AVMAX+Planning:rwx is good but appears to be ineffective once a user takes ownership of a file. And this for a directory: [root@atlas REGIONAL 1 AIRLINE DOCS]# getfacl Tally\ Sheets\ for\ Regional\ 1/ # file: Tally Sheets for Regional 1 # owner: root # group: AVMAX+Domain Admins user::rwx group::rwx group:AVMAX+Planning:rwx mask::rwx other::--- default:user::rwx default:group::rwx default:group:AVMAX+Planning:rwx default:mask::rwx default:other::--- Any ideas as to why this is happening? Travis Bullock Systems Administrator Avmax Group Inc. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
On Wed, Apr 18, 2007 at 02:08:50PM -0600, Travis Bullock wrote:> Can anyone help me with this? This is a serious problem and it is really screwing me over.Experiment with the "inherit owner" option. Jeremy.
OK. I did an upgrade on this server to FC6 so the new options will be available to me. The "inherit owner" option seems to do the trick in keeping users from taking ownership. Only one problem left: When I open, edit and change a file it is changing the file permissions from: rwxrwx--- to rwxrw--- Not sure why. Any ideas? Travis Bullock Systems Administrator Avmax Group Inc. ----- Original Message ----- From: "Jeremy Allison" <jra@samba.org> To: "Travis Bullock" <tbullock@avmax.ca> Cc: "samba" <samba@lists.samba.org> Sent: Wednesday, April 18, 2007 2:39:00 PM (GMT-0700) America/Denver Subject: Re: [Samba] SAMBA Problem - Users take ownership On Wed, Apr 18, 2007 at 02:08:50PM -0600, Travis Bullock wrote:> Can anyone help me with this? This is a serious problem and it is really screwing me over.Experiment with the "inherit owner" option. Jeremy.
Got it. Entered: force create mode = 0770 in the Global section of my smb.conf file Cheers, Travis Bullock Systems Administrator Avmax Group Inc. ----- Original Message ----- From: "Travis Bullock" <tbullock@avmax.ca> To: "Jeremy Allison" <jra@samba.org> Cc: "samba" <samba@lists.samba.org> Sent: Monday, May 7, 2007 9:25:37 AM (GMT-0700) America/Denver Subject: Re: [Samba] SAMBA Problem - Users take ownership OK. I did an upgrade on this server to FC6 so the new options will be available to me. The "inherit owner" option seems to do the trick in keeping users from taking ownership. Only one problem left: When I open, edit and change a file it is changing the file permissions from: rwxrwx--- to rwxrw--- Not sure why. Any ideas? Travis Bullock Systems Administrator Avmax Group Inc. ----- Original Message ----- From: "Jeremy Allison" <jra@samba.org> To: "Travis Bullock" <tbullock@avmax.ca> Cc: "samba" <samba@lists.samba.org> Sent: Wednesday, April 18, 2007 2:39:00 PM (GMT-0700) America/Denver Subject: Re: [Samba] SAMBA Problem - Users take ownership On Wed, Apr 18, 2007 at 02:08:50PM -0600, Travis Bullock wrote:> Can anyone help me with this? This is a serious problem and it is really screwing me over.Experiment with the "inherit owner" option. Jeremy.
On Mon, 2007-05-07 at 09:25 -0600, Travis Bullock wrote:> OK. I did an upgrade on this server to FC6 so the new options will be available to me. > > The "inherit owner" option seems to do the trick in keeping users from taking ownership. > > Only one problem left: > > When I open, edit and change a file it is changing the file permissions from: > > rwxrwx--- > > to > > rwxrw--- > > Not sure why. Any ideas?see the "store dos attributes" option Simo. -- Simo Sorce Samba Team GPL Compliance Officer email: idra@samba.org http://samba.org