[Samba] Setting up a Share Using Windows ACLs

Henry henry at incred.com.au
Tue Apr 25 23:59:26 UTC 2017


On 2017-04-25 22:28, Rowland Penny wrote:
> On Tue, 25 Apr 2017 22:10:59 +1000
> Henry via samba <samba at lists.samba.org> wrote:
> 
>> Great idea. Under FAQ in detail with a link to FAQ item on the
>> Windows ACLs page under adding a share:
>> https://wiki.samba.org/index.php/Setting_up_a_Share_Using_Windows_ACLs#Adding_a_Share
>> Want me to draft something?
>> 
> 
> That would be a good idea, that way you get ownership, post the draft
> and we will go from there ;-)
> 
> Rowland

Hi Rowland, here are two suggestions for the FAQ:


1) Guidelines on using spaces in the Linux path
=> Potentially linked from: 
https://wiki.samba.org/index.php/Setting_up_a_Share_Using_Windows_ACLs#Adding_a_Share

The use of spaces within the physical Linux path of a share can lead to 
complications and is best avoided if possible however there may be times 
when the use of spaces within the path is desired. This is not to be 
confused with the share name itself.

When using spaces within the path do not escape the spaces in smb.conf 
as Windows will add the "\" escape characters to the folder path:

[Test Me]
         path = /srv/samba/Test\ Me/
         read only = no

This results in RSAT Computer Management displaying the folder path as:
"C:\srv\samba\Test\ Me\"

In the above example the spaces are not being included correctly and the 
folder can not be found resulting in the "Security" tab not being 
displayed.

This is resolved by changing smb.conf to list the folder path without 
escaping the spaces, the use of quotes is optional but may add clarity:

[Test me]
         path = "/srv/samba/Test Me/"
         read only = no

This results in RSAT Computer Management displaying the folder path as:
"C:\srv\samba\Test Me\"

In the above example the spaces were included correctly and the folder 
could be found resulting in the "Security" tab being displayed.



2) When setting Windows ACLs the Security tab is not displayed in RSAT 
Computer Management.
=> Potentially linked from: 
https://wiki.samba.org/index.php/Setting_up_a_Share_Using_Windows_ACLs#Setting_Share_Permissions_and_ACLs

RSAT Computer Management displays the "Share Permissions" tab when a 
share is defined in smb.conf however if it is unable to find/access the 
folder then the "Security" tab is not displayed. This can be caused by 
either incorrect Linux permissions or a problem with the physical Linux 
path itself. See "Guidelines on using spaces in the Linux path"




More information about the samba mailing list