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

Alex Harrington alex at longhill.org.uk
Wed May 7 07:29:14 GMT 2008


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


More information about the samba mailing list