[Solved] permissions issues with SMB/CIFS

Questions about qBittorrent or Gluetun (VPN).
fr33d8
Posts: 8
Joined: Fri Jun 06, 2025 9:08 pm
Gender:
France

[Solved] permissions issues with SMB/CIFS

Post 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.

User avatar
rogs
Site Admin
Posts: 367
Joined: Mon Oct 23, 2023 12:53 pm
Location: Montevideo, Uruguay
Gender:
Contact:
Uruguay

Re: permissions issues with SMB/CIFS

Post 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.

YAMS Creator

E: roger (at) rogs.me. Fuck you, email bots.
W: https://rogs.me
gpg: curl -sL https://rogs.me/rogs.txt | gpg --import
fingerprint: ADDF BCB7 8B86 8D93 FC4E 3224 C7EC E9C6 C36E C2E6


Also, I love cats :mrgreen:

Pirate jet, pirate jet
fr33d8
Posts: 8
Joined: Fri Jun 06, 2025 9:08 pm
Gender:
France

Re: permissions issues with SMB/CIFS

Post 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...

User avatar
rogs
Site Admin
Posts: 367
Joined: Mon Oct 23, 2023 12:53 pm
Location: Montevideo, Uruguay
Gender:
Contact:
Uruguay

Re: permissions issues with SMB/CIFS

Post by rogs »

Can you user write on the download directory? Is qbittorrent running with the correct user?

YAMS Creator

E: roger (at) rogs.me. Fuck you, email bots.
W: https://rogs.me
gpg: curl -sL https://rogs.me/rogs.txt | gpg --import
fingerprint: ADDF BCB7 8B86 8D93 FC4E 3224 C7EC E9C6 C36E C2E6


Also, I love cats :mrgreen:

Pirate jet, pirate jet
fr33d8
Posts: 8
Joined: Fri Jun 06, 2025 9:08 pm
Gender:
France

Re: permissions issues with SMB/CIFS

Post 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 :)

User avatar
rogs
Site Admin
Posts: 367
Joined: Mon Oct 23, 2023 12:53 pm
Location: Montevideo, Uruguay
Gender:
Contact:
Uruguay

Re: permissions issues with SMB/CIFS

Post by rogs »

In the mount directory, try writing a file by using the same user that you are using to run YAMS

YAMS Creator

E: roger (at) rogs.me. Fuck you, email bots.
W: https://rogs.me
gpg: curl -sL https://rogs.me/rogs.txt | gpg --import
fingerprint: ADDF BCB7 8B86 8D93 FC4E 3224 C7EC E9C6 C36E C2E6


Also, I love cats :mrgreen:

Pirate jet, pirate jet
fr33d8
Posts: 8
Joined: Fri Jun 06, 2025 9:08 pm
Gender:
France

Re: permissions issues with SMB/CIFS

Post 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.

User avatar
rogs
Site Admin
Posts: 367
Joined: Mon Oct 23, 2023 12:53 pm
Location: Montevideo, Uruguay
Gender:
Contact:
Uruguay

Re: permissions issues with SMB/CIFS

Post 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

YAMS Creator

E: roger (at) rogs.me. Fuck you, email bots.
W: https://rogs.me
gpg: curl -sL https://rogs.me/rogs.txt | gpg --import
fingerprint: ADDF BCB7 8B86 8D93 FC4E 3224 C7EC E9C6 C36E C2E6


Also, I love cats :mrgreen:

Pirate jet, pirate jet
fr33d8
Posts: 8
Joined: Fri Jun 06, 2025 9:08 pm
Gender:
France

Re: permissions issues with SMB/CIFS

Post 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

fr33d8
Posts: 8
Joined: Fri Jun 06, 2025 9:08 pm
Gender:
France

Re: permissions issues with SMB/CIFS

Post 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 ! :D

Post Reply