Hallo can someone help me with the following problem? I have set a default ACL to the /home directory: # file: home # owner: root # group: root user::rwx group::rwx other::r-x default:user::rwx default:user:root:rwx default:group::rwx default:group:root:rwx default:group:users:rwx default:mask::rwx default:other::r-x When Windows clients access a subdirectory the following happens: An Excel file is created showing the following permissions. -rwxrwxr-x+???1?owner?????users???13824?2005-02-25?10:20?Test-110.xls OK so far. when I reopen the file and try to save the changes I get an error message from Excel and the permissions of the file changes to: -r-xrwxr-x+???1?owner?????users???13824?2005-02-25?10:20?Test-110.xls the smb.conf entry for the share is [db] ????????comment?=?Datenbank ????????path?=?/home/db ????????read?only?=?No ????????create?mask?=?0777 ????????directory?mask?=?0777 ????????inherit?permissions?=?Yes ????????oplocks?=?No ????????inherit?acls?=?Yes ????????strict?locking?=?no Also access shows the same behaviour. Word and other programs like notepad work well as expected. I?m working with SuSE 9.2 (Samba3.0.9) What?s wrong? Harry -- Dr. Harry Knitter Hans-Herold-Str. 20 D-95326 Kulmbach Tel. 09221-97663 Fax. 09221-97664 harry@knitter-edv-beratung.de gpg key-ID 8A0657DB Fingerprint AE7B 61F1 ACC2 5944 A29A 8C31 2D12 2190 8A06 57DB -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/20050225/5294c466/attachment.bin
HI, I guess this question have been asked before:- I am running 3.0.12 for samba with acls. I have a samba share folder called abc with groups art able to write. group:art:rwx Whenever i write with a user from the art group to the folder, the group id of the file changes to the id of the user instead of remaining as art. What do i need to configure so that art group stays as the group id for that file? Thanks. adrian P/s: What does "inherit permissions" in the smb.conf do? Does it help?
On Thu, Mar 24, 2005 at 12:06:56AM +0800, Adrian Chow wrote:> HI, > > I guess this question have been asked before:- > > I am running 3.0.12 for samba with acls. > > I have a samba share folder called abc with groups art able to write. group:art:rwx > > Whenever i write with a user from the art group to the folder, the group id of the file changes to the id of the user instead of remaining as art. > > What do i need to configure so that art group stays as the group id for that file?You need to set the set GID bit on the directory. This ensures that files created within it inherit the group of the directory, not the effective group id of the creating process. Jeremy.
On Thu, Mar 24, 2005 at 12:06:56AM +0800, Adrian Chow wrote:> > I guess this question have been asked before:- > > I am running 3.0.12 for samba with acls. > > I have a samba share folder called abc with groups art able to write. group:art:rwx > > Whenever i write with a user from the art group to the folder, the group id of the file changes to the id of the user instead of remaining as art.Set a default ACL for that group like: setfacl -m d:g:groupname:rwx /path/to/the/dir> P/s: What does "inherit permissions" in the smb.conf do? Does it help?Use inherit acls = Yes Lars -- Lars M?LLER [?la?(r)z ?m?l?] SuSE Linux, Maxfeldstra?e 5, 90409 N?rnberg, Germany -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/20050323/38fa93cf/attachment.bin
Hi jeremy, Thanks. But if after I did that and I create a directory underneath it, The new directory will not have guid set... how to solve it? Thanks again. adrian ----- Original Message ----- From: Jeremy Allison <jra@samba.org> To: Adrian Chow <achow@uwcsea.edu.sg> Cc: samba@lists.samba.org Sent: Thu, 24 Mar 2005 02:37:08 +0800 Subject: Re: [Samba] ACLS and samba> On Thu, Mar 24, 2005 at 12:06:56AM +0800, Adrian Chow wrote: > > HI, > > > > I guess this question have been asked before:- > > > > I am running 3.0.12 for samba with acls. > > > > I have a samba share folder called abc with groups art able to write. > group:art:rwx > > > > Whenever i write with a user from the art group to the folder, the group id of > the file changes to the id of the user instead of remaining as art. > > > > What do i need to configure so that art group stays as the group id for that > file? > > You need to set the set GID bit on the directory. This ensures that > files created within it inherit the group of the directory, not the > effective group id of the creating process. > > Jeremy. >