JohnP
JohnP

Reputation: 1

Centos Samba Access to NTFS mounted drive...Access Denied

Noob here. I am having a problem with accessing an NTFS drive mounted on a Centos 9 server.
I mounted it at /mnt/ntfs and configured a basic open SAMBA server for testing purposes.
I can lock it down after I can see that there are no other technical hurdles. Below are the fstab entry and the smb.conf files. I am able to access it the mount point using a regular centos user and if I go one step up in the hierarchy I can see the mount point when I use the guest SAMBA mapping in Windows 11.

    fstab
        /dev/sdc1               /mnt/ntfs               ntfs-3g defaults        0 0

    smb conf

    [global]
            workgroup = WORKGROUP
            map to guest = Bad User
            log file = /var/log/samba/%m
            log level = 1
            server role = standalone server

    [guest]
            path = /mnt
            read only = no
            guest ok = yes
            guest only = yes

Any suggestions would be greatly appreciated.

I tried adding a symbolic link to a regular unix user and creating a share around that ID but the same result...Access Denied.`

Upvotes: 0

Views: 44

Answers (1)

JohnP
JohnP

Reputation: 1

Was able to resolve this issue by editing the /etc/selinux/config file and changing the SELINUX=enforced to SELINUX=permissive. The symboic link that I created to point to the /mmt/ntfs point from the user's home directory is now able to be shared in SAMBA.

Upvotes: 0

Related Questions