1828962 Members
2142 Online
109986 Solutions
New Discussion

Re: SAMBA/LINUX

 
SOLVED
Go to solution
Nobody's Hero
Valued Contributor

SAMBA/LINUX

I am running SAMBA on RedHat9. Using xfs filesystems so that we can control all permissions through the NT side. All works well.

I have set my samba config to 'force group' to ps_admin. This works ok. All files dragged and dropped are created as group 'ps_admin'. However, If I ftp a file to that share from a unix system, it retains the root:sys permissions, for example. Is there a way to configure samba to say, all files created to this share will be group 'ps_admin' no matter if it is ftp'd, copied or dragged and dropped.
UNIX IS GOOD
1 REPLY 1
Stuart Browne
Honored Contributor
Solution

Re: SAMBA/LINUX

As you are FTPing the file into the directory, Samba doesn't actually have any control over it.

What you want, simply is the group-sticky-bit on parent directory, i.e.:

drwxrwsr-x 1 root ps_admin 4096 Mar 11 12:04 /var/local/share

This forces anything that gets created beneath it to have the group 'ps_admin'.. Standard unix permissions.

To make the permissions like this, you can use either of the following commands:

chmod g+s /var/local/share

or

chmod 2775 /var/local/share

Have fun.
One long-haired git at your service...