You are not logged in.
So the thing is
I created a user for samba share. I created a share in smb.conf. And set the permission to the folder that I want to share.
When I access it from windows, I can see the share folder but it only shows not accessible no permission and something.
The only thing I can access is the /home/theShareUser . I tried to set difference permission settings to the folder that I want to share. But it is always no permission to access.
So how can I share a folder outside that user's home folder? Specific the /run/media/otherUser/someDrive path.
And that is so much permission problem when I was setting up the emby media server and want to read the file in /run/media . Maybe there is a correct way to do this kind of things and I want to keep the ability to umount my usb drive from gnome. So I don't want to set the mount point in fstab or something.
So here is my smb.conf
[global]
workgroup = MYGROUP
server string = Samba Server
server role = standalone server
log file = /var/log/samba/%m.log
max log size = 50
dns proxy = no
map to guest = Bad User
security = user[Share]
path = /run/media/myCurrentUser/Drive/Folder
valid users = share
writable = yes
create mask = 0777
directory mode = 0777
Here is the permission of Folder
drwxrwxrwx 3 share share 4096 6 25 00:17 Folder
Here is the permission of Drive
drwxr-xr-x 13 myCurrentUser users 4096 6月 25 00:51 Drive
Offline