[SOLVED with workaround] Need some help with new SAMBA share error NT_STATUS_ACCESS_DENIED

Discussion in 'Server Operation' started by razor7, Jul 30, 2024.

  1. razor7

    razor7 Member

    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
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    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.
     
  3. razor7

    razor7 Member

    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
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    ahrasis likes this.
  5. razor7

    razor7 Member

    Thanks a lot!
     
  6. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Out of topic, what are you mostly using now after you stopped using windows?
     
  7. razor7

    razor7 Member

    I'm using Linux Mint 22
     
    ahrasis likes this.
  8. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    I have Debian GNU/Linux, one Ubuntu host for computer games.
     
    ahrasis likes this.
  9. razor7

    razor7 Member

    Lutris for gaming is just great!
     

Share This Page