We have a Red Hat 7.3 file server that serves about 30 Windows PCs via Samba 2.2.3a. I have one group called "users" that everyone is in but when a file is created by a PC, the group ownership on the created file is not "users", but the same as the file owner name. Is there any way to force the group ownership of created files? Also, is there any way to force file ownersip to a given user on newly created files? Regards, Brad
set this in your share configuration force group = users> -----Original Message----- > From: Brad [mailto:sambauser@sportingwheelies.org.au] > Sent: Friday, January 17, 2003 1:32 AM > To: Sambauser mailing list > Subject: [Samba] Group file ownership... > > > We have a Red Hat 7.3 file server that serves about 30 > Windows PCs via Samba > 2.2.3a. > > I have one group called "users" that everyone is in but when > a file is created > by a PC, the group ownership on the created file is not > "users", but the same > as the file owner name. Is there any way to force the group > ownership of > created files? > > Also, is there any way to force file ownersip to a given user > on newly created > files? > > Regards, > Brad > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
> set this in your share configuration > > force group = users >>Is there any way to force the group >>ownership of created files? >> >>Also, is there any way to force file ownersip to a given user >>on newly created files?You can also do this on the filesystem level by setting the UID or GID bits on a directory. Then all new files created in that directory will have the same owner or group, respectively, of the directory. Useful if you want different directories within a share to be handled differently.
I've been trying to figure out the same problem I've been investigating umask settings in /etc/bashrc, setting the setgid bit on the directories with chmod and also using inherit permissions = yes in the samba configuation file I've also tried the following smb.conf options: create mask = 0770 force create mode = 000 directory mask = 2775 Let me know if you find a workable solution - I'm still searching -----Original Message----- From: samba-admin@lists.samba.org [mailto:samba-admin@lists.samba.org]On Behalf Of Brad Sent: Friday, January 17, 2003 1:32 AM To: Sambauser mailing list Subject: [Samba] Group file ownership... We have a Red Hat 7.3 file server that serves about 30 Windows PCs via Samba 2.2.3a. I have one group called "users" that everyone is in but when a file is created by a PC, the group ownership on the created file is not "users", but the same as the file owner name. Is there any way to force the group ownership of created files? Also, is there any way to force file ownersip to a given user on newly created files? Regards, Brad -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.438 / Virus Database: 246 - Release Date: 1/7/03 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.438 / Virus Database: 246 - Release Date: 1/7/03
I've been trying to figure out the same problem I've been investigating umask settings in /etc/bashrc, setting the setgid bit on the directories with chmod and also using inherit permissions = yes in the samba configuation file I've also tried the following smb.conf options: create mask = 0770 force create mode = 000 directory mask = 2775 Let me know if you find a workable solution - I'm still searching -----Original Message----- From: samba-admin@lists.samba.org [mailto:samba-admin@lists.samba.org]On Behalf Of Brad Sent: Friday, January 17, 2003 1:32 AM To: Sambauser mailing list Subject: [Samba] Group file ownership... We have a Red Hat 7.3 file server that serves about 30 Windows PCs via Samba 2.2.3a. I have one group called "users" that everyone is in but when a file is created by a PC, the group ownership on the created file is not "users", but the same as the file owner name. Is there any way to force the group ownership of created files? Also, is there any way to force file ownersip to a given user on newly created files? Regards, Brad -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.438 / Virus Database: 246 - Release Date: 1/7/03 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.438 / Virus Database: 246 - Release Date: 1/7/03