Page 1 of 2
[Solved] permissions issues with SMB/CIFS
Posted: Fri Jun 06, 2025 9:26 pm
by fr33d8
Hello
I installed the YAMS suite with little difficulties despite my limited experience, great thanks to you ! I didn't changed the YAMS defaults folders.
Despite, I mapped default download folder to my SMB directories by including it with a mount in the fstab file and I can list files but I can't create files. So I have "permission denied" error when I try to download a torrent file.
PUID and PGID are identitals (1000 and 1000) in the .env file and my user (which is the same I use for SMB too).
Someone can help me ?
Big thanks to you
My setup : portainer on an ubuntu server VM over proxmox. My SMB shares are provided by OMV in another VM.
Re: permissions issues with SMB/CIFS
Posted: Sun Jun 08, 2025 12:24 am
by rogs
Hey @fr33d8!
You need to make sure your SMB mount has the correct permissions. Here's an example of a fstab
entry with the correct permissions:
Code: Select all
//192.168.0.123/YourMount /mnt/your-mount/ cifs username=your-smb-username,password=your-smb-password,uid=your-user,gid=your-group 0 0
Cheers!
Roger.
Re: permissions issues with SMB/CIFS
Posted: Sun Jun 08, 2025 2:45 pm
by fr33d8
Hello !
many thanks to you, I progressed into my problem thanks to you.
I tested your fstab line and it's ok to RWX files into media folders now by SSH. But qbit still crying "permission denied" despite a reboot of the VM...
I'm lost I must confess...
Re: permissions issues with SMB/CIFS
Posted: Sun Jun 08, 2025 3:05 pm
by rogs
Can you user write on the download directory? Is qbittorrent running with the correct user?
Re: permissions issues with SMB/CIFS
Posted: Sun Jun 08, 2025 6:37 pm
by fr33d8
I can user write with SSH yes (and via network SMB of course). How else can I test ?
Is ps auxw | grep qbittorrent the correct command to know which user is ran by qbit ? If so :
Code: Select all
root 3953 0.0 0.0 220 0 ? S 14:40 0:00 s6-supervise svc-qbittorrent
MyUserName 4302 0.8 0.6 74396 51944 ? Ssl 14:40 1:53 /usr/bin/qbittorrent-nox --webui-port=8081
MyUserName 182745 0.0 0.0 6676 2304 pts/0 S+ 18:34 0:00 grep --color=auto qbittorrent
Thanks for your time 
Re: permissions issues with SMB/CIFS
Posted: Sun Jun 08, 2025 6:41 pm
by rogs
In the mount directory, try writing a file by using the same user that you are using to run YAMS
Re: permissions issues with SMB/CIFS
Posted: Sun Jun 08, 2025 7:47 pm
by fr33d8
It is what I do, I think : I connect via SSH to my Ubuntu Server VM which host portainer and YAMS. I connect with the user credentials. I move to /srv/media/downloads and I'm able to RWX files/folders, yes. It's OK because I can see modifications via my windows client too.
Re: permissions issues with SMB/CIFS
Posted: Sun Jun 08, 2025 7:51 pm
by rogs
Did you mount your SMB share in /srv/media? I'm asking because it's somewhat weird since it's the default for YAMS. It's not bad or anything, it's just that mountpoints tend to go in other places
Re: permissions issues with SMB/CIFS
Posted: Sun Jun 08, 2025 7:54 pm
by fr33d8
I mount my SMB shares in subfolders under /srv/media
my movies in /srv/media/movies ; my tvshows in /srv/media/tvshows ; etc etc
Re: permissions issues with SMB/CIFS
Posted: Sun Jun 08, 2025 7:57 pm
by fr33d8
Oh ! I did again another test and it works !
Despite of relaunch my torrent that was in error, I deleted it and downloaded it again and it -just- works !
I don't understand why but okay...
Thank you a lot again, your guidance to the fstab was the good idea ! 