You are not logged in.

#1 2020-08-22 16:38:37

serat
Member
Registered: 2020-01-19
Posts: 31

[SOLVED]: Cannot browse a samba share of a directory on NTFS.

Hi,
I am trying to use samba to share a directory on a ntfs file system. I have set it with password etc. I can login (i.e., access the share) from a Windows 10 machine. But trying to browse it gives an access denied permission error.

/etc/fstab
/dev/mapper/winshare                              /mnt/WINSHARE    ntfs-3g         defaults,user_xattr,nls=utf8,umas=000,dmask=027,fmask=137,uid=1000,gid=1000,windows_names
/etc/smb.conf
[global]
        log file = /var/log/samba/%m.log
        log level = 1
[CLOUD]
        path = /mnt/WINSHARE/CLOUD/
#        path = /home/serat/
        writeable = yes
        browseable = yes
        create mask = 0640
        directory mask = 0750
        force user = serat

The directory (/mnt/WINSHARE/CLOUD), after mounting, is owned by serat and has permission 750. serat has uid 1000 and gid 1000.

The same configuration works if I change the shared directory to /home/serat (which is on a btrfs file system if that is relevant).

Can anyone please help?

Solved!

The problem was the apparmor profile. It did not allow smbd access to the directory being shared.

Fixed by changing the apparmor profile in /etc/apparmor.d/local/usr.sbin.smbd and add the shared directory.

Last edited by serat (2020-08-23 05:42:57)

Offline

Board footer

Powered by FluxBB