From: L.P.H. van Belle on
Hi,

And what if...

in linux you set 777 ( michael:michael )
so only michael kan write.
orthers kan read.
remove the valid users from the config.
remove the admin users from the config.
create mode = 660
directory mode = 775

now i think, users, not michael can not see the files
but can create them.

Louis



>-----Oorspronkelijk bericht-----
>Van: samba-bounces+belle=bazuin.nl(a)lists.samba.org
>[mailto:samba-bounces+belle=bazuin.nl(a)lists.samba.org] Namens Ash Gosh
>Verzonden: dinsdag 6 mei 2008 17:33
>Aan: samba(a)lists.samba.org
>Onderwerp: Re: [Samba] Fwd: Add permission? (was How to create
>a write-onlyshare?)
>
>Thanks for the answer!
>
>The config like you posted:
>
>[root(a)fs home]# chown -R michael.office append
>[root(a)fs home]# chmod -R 700 append
>
>smb.conf:
>[append]
> path = /home/append
> valid users = +office
> read only = no
> writeable = yes
> guest ok = Yes
> admin users = michael
> hide unreadable = yes
> create mode = 666
> directory mode = 777
>
>
>It does not allows me to go into the share if I'm not a michael but
>does not allows me to copy a file there to (of course, because there
>is 700 permission set). I've tried 722, does not allows to copy
>(appen, drag in) the file into the share too. 733 does not allows to
>copy file too but windows tells that the file exist in case that in
>exists.
>
>Any other combinations I can to try?
>
>
>Thanks for your help!!!
>
>On Tue, May 6, 2008 at 6:03 PM, L.P.H. van Belle
><belle(a)bazuin.nl> wrote:
>> Hi,
>>
>> try this.
>>
>> its the reverse version of what i have.
>>
>> [Exchange-folder]
>> comment = dev. exchange folder.
>> browseable = Yes
>> writeable = Yes
>> path = /home/exchangefolder
>> create mode = 666
>> directory mode = 777
>> zet your right in linux on the folder to micheal:office
>> chown -R micheal:office
>> chmod -R 700
>>
>> and try a bit with the create mode and directory mode.
>>
>> from windows my users can delete files from my folder,
>> but they wil reapper ;-) my users Cant delete files but can see them.
>> and can not change then. ( i have in linux 775 on the folders. )
>>
>> maybe it works for you.
>>
>> Louis
>--
>To unsubscribe from this list go to the following URL and read the
>instructions: https://lists.samba.org/mailman/listinfo/samba
>

--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
From: Alex Harrington on
Try:

[root(a)fs home]# chown -R michael.office append
[root(a)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(a)longhill.org.uk
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
From: Ash Gosh on
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(a)longhill.org.uk> wrote:
> Try:
>
> [root(a)fs home]# chown -R michael.office append
> [root(a)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(a)longhill.org.uk
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/listinfo/samba
>
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba