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

L.P.H. van Belle belle at bazuin.nl
Wed May 7 06:38:54 GMT 2008


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 at lists.samba.org 
>[mailto:samba-bounces+belle=bazuin.nl at lists.samba.org] Namens Ash Gosh
>Verzonden: dinsdag 6 mei 2008 17:33
>Aan: samba at 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 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
>   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 at 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
>



More information about the samba mailing list