[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: RHEL4 - permissions/groups and Samba



As soon as the user access the file the user ownership will change but as u
have applied SGID permission the member of gourp of web_admin can modify the
files.
I you want to stick with only one user can user

force user = username

But g+s is sufficient as far as concern the file sharing and access.

On 1/29/07, nilesh vaghela <nileshj vaghela gmail com> wrote:

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 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 redhat com [mailto:redhat-list-bounces 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 redhat com?subject=subscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request 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




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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]