RHEL4 - permissions/groups and Samba

nilesh vaghela nileshj.vaghela at gmail.com
Mon Jan 29 08:57:58 UTC 2007


You do not require u=s just apply g+s.

Generally u+s will be for executables file only.

On 1/26/07, Davis, Jared Scott <DavisJar at missouri.edu> wrote:
>
> Hi everyone,
> Thanks for all the replies.
>
> I changed the sgid bit by: chmod -R ug=s www
>
> Then I used Jim's method by changing my smb.conf to this:
> [www]
>         path = /var/www
>         valid users = davisjar, herrmanb, leisse, nilesn, shearerh,
> harrisjm
>         writeable = yes
>         create mask = 0775
>         force directory mode = 0775
>         read only = No
>
> Now when I edit a file via Samba:
> Before: -rwSrwSr-x  1 nilesn   web_admin 1908 Jan 26 11:35 global.css
> After:  -rwxrw-r--  1 davisjar web_admin 1909 Jan 26 11:49 global.css
>
> Not sure what's wrong.  FYI my Samba version is samba-3.0.10-1.4E.9
>
> Thanks again,
>
> Jared Davis
> Internet Administrator
> Residential Life
> University of Missouri-Columbia
> 100 Pershing Hall
> (573) 884-3616
>
> -----Original Message-----
> From: redhat-list-bounces at redhat.com [mailto:
> redhat-list-bounces at redhat.com] On Behalf Of Jim Canfield
> Sent: Friday, January 26, 2007 8:49 AM
> To: General Red Hat Linux discussion list
> Subject: Re: RHEL4 - permissions/groups and Samba
>
>    Andrei Pascal wrote:
>
> Jim,
>
> I surely hope you meant the SGID bit (chmod g+s), not the sticky one -
> though the sticky bit might be a good idea as well (chmod +t).
>
>
>
>
>    Correct!  Sorry for any confusion.
>
>    Jim
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=subscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>



-- 
Nilesh Vaghela
ElectroMech
Redhat Channel Partner and Training Partner
74, Nalanda Complex, Satellite Rd, Ahmedabad
25, The Emperor, Fatehgunj, Baroda.
www.electromech.info



More information about the redhat-list mailing list