Web lists-archives.com

Re: [Samba] Weird permissions issues with samba shares and XFS

Read this :

SHARE Permissions:
See : Setting Share Permissions and ACLs
Click Start, enter Computer Management, and start the application.
Select Action / Connect to another computer.
Enter the name of the Samba host and click OK to connect the console to the host.
Open the System Tools / Shared Folders / Shares menu entry.

Folder permissions: 
Use explorer, browse to a folder, goto the security tab. 

Your problem is the "SHARE" permission. 

By default the SHARE permission is everybody Full controll
Thats ok, now everybody is able to read/write.. 
But only if the FOLDER permissions allow it. 

My guess.. 
/storage/test does not have the correct persmissions
Share permissiong allow to write but Folder permissions not. 

And cp... 

cp -a  --preserve=xattr  wil help imo. 

Below i bit more 

> -----Oorspronkelijk bericht-----
> I created three entries in our server's smb.conf:
> [test]
>         path = /storage/test
>         comment = Sharing root of XFS
> [test-foo]
>         path = /storage/test/foo
>         comment = Sharing foo
> [test-bar]
>         path = /storage/test/bar
>         comment = Sharing bar
> I can list all 3 shared with `smbclient -L //localhost`, as 
> expected. Now
> for the issues I cannot figure out:
> 1. doing `ls` in `smbclient //localhost/test`, I get

Yes, but which user is runing the command? 
> ls -l /storage/test/
> drwxrwxr-x+ 2 root domain_admins 6 Jun 14 10:37 bar
> drwxrwxr-x+ 2 root domain_admins 6 Jun 14 10:37 foo

You missed ls -l /storage 
What are the rights on /storage/test ? 



To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba