[Samba] How to make "Add permission" for folder in system with ntacl support?

Toby Bluhm tkb at MidwestInstruments.com
Thu Nov 1 12:16:54 GMT 2007


Georgy Goshin wrote:
>> Definitely possible in Samba.  Start with the correct POSIX 
>> permissions on the directories, then follow the references below.
>>
>> This chapter, in general
>> http://us4.samba.org/samba/docs/man/Samba-HOWTO-Collection/AccessControls.html 
>>
>>
>> and this section, in particular
>> http://us4.samba.org/samba/docs/man/Samba-HOWTO-Collection/AccessControls.html#id374339 
>>
>>
>> with or without POSIX acl's should explain how to do what you want.
>
> Please please please. I've tried already combinations this weekend, 
> spen two days and lost any understanding of logic of file permissions 
> and gived up! Please make someone for me small sample please!
>
>
> Thanks in advance,
> Georgy

I believe your original message said you wanted a directory that users 
could only write to but not read?

On samba server:

sudo mkdir test
sudo chown root.root test
sudo chmod 733 test

Now anyone should be able to copy a file to test directory, but not read 
it. Note - this will only work if you use copy in a cmd prompt. GUI file 
explorer tools typically want to read dir content first - not possible 
with these permissions.


Perhaps you should explain what you're trying to achieve - there may be 
better ways to do it.


-- 
Toby Bluhm
Midwest Instruments Inc.
30825 Aurora Road Suite 100
Solon Ohio 44139
440-424-2240




More information about the samba mailing list