Hi! I'm trying to create a SAMBA share of a media folder of my jellyfin server, I already have a shell acces user created with ISPC user interface and I'm able to access the web folder of the website of that user through SAMBA. I've created a new SAMBA share called media that points to /media/data/jellyfin/media but I can't do nothing in that share from my guest computer, IE, if I issue a simple ls command, I get this error NT_STATUS_ACCESS_DENIED listing \* Is there a way to get rid of that SAMBA permisison issue? # smbclient //XXXXXX/media -U XXXXXX Code: Password for [MGS\XXXXXX]: Try "help" to get a list of possible commands. smb: \> ls NT_STATUS_ACCESS_DENIED listing \* smb: \> Here are some permissions listing # sudo net usershare info --long Code: [media] path=/media/data/jellyfin/media comment= usershare_acl=XXXXXX\XXXXXX:F, guest_ok=n [server] path=/var/www/clients/client1/web2/web comment= usershare_acl=XXXXXX\XXXXXX:F, guest_ok=n Permissions of jellyfin folder # ls -la /media/data Code: drwxr-xr-x 5 root root 4096 jul 24 17:58 jellyfin Permissions of media folder # ls -la /media/data/jellyfin/ Code: drwxr-xr-x 3 web2 client1 4096 jul 24 18:11 media ACL of media folder # getfacl /media/data/jellyfin/media/ Code: getfacl: Eliminando «/» inicial en nombres de ruta absolutos # file: media/data/jellyfin/media/ # owner: web2 # group: client1 user::rwx group::r-x other::r-x
Are you running SELinux? It might block everyting you have not allowed. So share server works but not share media? I would try setting owner and group to web2:client1 for all directories in the path /media/data/jellyfin/media/. Previous time I used Samba was 20 years ago.
Hi! Thanks for the reply, no SELinux is not even installed, APPArmor it's working because the box is an Ubuntu Server 22.04 but I finally decided to give up on SAMBA because of this issue and use webdav through my Next Cloud server which runs in this same server, more easy to manage and also with sync with my host and I just needed to do a minor change in the docker-compose file of the jellyfin stack and all ok
I stopped using Samba when I had no Windows machines any more. But now I remember there was nice Troubleshooting Guide, it helped a lot when solving Samba problems: https://www.samba.org/samba/docs/using_samba/ch12.html More info on Samba: https://wiki.samba.org/index.php/Main_Page