[Samba] Fwd: Add permission? (was How to create a write-onlyshare?)

Ash Gosh gosha.asha at gmail.com
Wed May 7 16:22:16 GMT 2008


In this case I still can't add a file from Windows machine into the
share append...
Seems it can't be done with Samba and posix permissions?




On Wed, May 7, 2008 at 10:29 AM, Alex Harrington <alex at longhill.org.uk> wrote:
> Try:
>
> [root at fs home]# chown -R michael.office append
> [root at fs home]# chmod -R 700 append
>
> smb.conf:
> [append]
>   path = /home/append
>   valid users = +office
>   writeable = yes
>   write list = +office
>   admin users = michael
>   hide unreadable = yes
>   create mode = 600
>   directory mode = 700
>   force group = office
>
> I think that will do what you want - but users will still be able to see
> what they've put in the share - by virtue of the fact they own the file
> and it has 600 permissions.
>
> You could force a create mode of say 200 which would leave the file
> writable by the user but not readable. I've not tested how Windows will
> deal with that though...
>
> Alex
>
> --
> Alex Harrington - Network Manager, Longhill High School
>
> t: 01273 304086 | e: alex at longhill.org.uk
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/listinfo/samba
>


More information about the samba mailing list