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

TAKAHASHI Motonobu monyo at monyo.com
Wed Aug 3 08:56:21 MDT 2011

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]
> security = share
> guest account = root


> path = /mnt/data1
> guest ok = yes


> 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