[Samba] Problem with samba share file permissions: Write protection is not working as expected

raj kernel raj.kernel at gmail.com
Wed Aug 3 09:29:33 MDT 2011


Thanks for the solution TAKAHASHI Motonobu.

Removing "guest account = root" line from smb.conf fixed the problem.

Thanks once again.

On Wed, Aug 3, 2011 at 8:26 PM, TAKAHASHI Motonobu <monyo at monyo.com> wrote:

> From: raj kernel <raj.kernel at gmail.com>
> Date: Wed, 3 Aug 2011 20:11:20 +0530
>
> > Thanks for the reply. Here is the info you have requested for.
> >
> > cat /usr/local/samba/lib/smb.conf
> > -------------------------------------------------
> > [global]
> (snip)
> > security = share
> (snip)
> > guest account = root
>
> (snip)
>
> >[data1]
> > path = /mnt/data1
> > guest ok = yes
>
> (snip)
>
> > I have created two subdir's 'private' and 'public' under /mnt/data1.
> > public has all access permissions '777', but private has only read
> > permissions.
> > I am able to write/create files to both 'public' as well as
> > 'private' directory when these shares are accessed from Windows7
> > machine.
>
> You set "guest account = root" and "guest ok = yes", so all accesses
> are made as root.
>
> Thus you can always access every files regardless of permissions.
>
> ---
> TAKAHASHI Motonobu <monyo at samba.gr.jp>
>
>


More information about the samba mailing list