SMB disk sharing - Printable Version +- Jellyfin Forum (https://forum.jellyfin.org) +-- Forum: Support (https://forum.jellyfin.org/f-support) +--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting) +--- Thread: SMB disk sharing (/t-smb-disk-sharing) Pages:
1
2
|
RE: SMB disk sharing - Armentis - 2024-05-09 I tried with this : //server/share /pathto/mountpoint cifs credentials=/home/MYSUERNAME/.smbcredentials,uid=shareuser,gid=sharegroup 0 0 and this : # Disque dur Freebox : //freebox-server.local/freebox /media/freebox cifs x-systemd.automount,x-systemd.device-timeout=3,_netdev,rw,users,credentials=/home/identifiant/.smbcredentials,iocharset=utf8,uid=1000,gid=1000,sec=ntlmv2,file_mode=0777,dir_mode=0777,vers=2.0,noauto 0 0 And go this : mount: /pathto/mountpoint: failed to parse mount options 'rw,credentials=/home/armentis/.smbcredentials,uid=shareuser,gid=sharegroup': Argument invalide. mount: (hint) your fstab has been modified, but systemd still uses the old version; use 'systemctl daemon-reload' to reload. I can not create folder in /media/freebox RE: SMB disk sharing - TheDreadPirate - 2024-05-09 (2024-05-09, 09:52 PM)Armentis Wrote: I tried with this : This wouldn't work since it was just a generic example. (2024-05-09, 09:52 PM)Armentis Wrote: and this : There's a lot of extra stuff in here. Try this instead. But first you have to make /media/freebox with "sudo mkdir -p /media/freebox" if that folder doesn't exist. Code: //freebox-server.local/freebox /media/freebox cifs credentials=/home/identifiant/.smbcredentials,iocharset=utf8,uid=1000,gid=1000 0 0 Then "sudo systemctl daemon-reload". Also, the .smbcredentials file needs to have the correct username and password for your SMB share. RE: SMB disk sharing - Armentis - 2024-05-09 Quote:mount /media/freebox Quote: Also, the .smbcredentials file needs to have the correct username and password for your SMB share. I add Domain too, but always permission denied RE: SMB disk sharing - TheDreadPirate - 2024-05-09 The username and password you are using is for the user on the server hosting the share, correct? Not the local user. Same with the UID and GID in the fstab config. It needs to match the UID/GID on the server for the authorized user. RE: SMB disk sharing - Armentis - 2024-05-09 To recap with examples : The smb on my box (freebox) : Domain : WORKGROUP User : userbox Pass : passbox Into the .smbcredentials file : User : userbox Pass : passbox RE: SMB disk sharing - TheDreadPirate - 2024-05-10 I don't know how much it matters, but .smbcredentials should also have DOMAIN. And, I'm not sure if this matters, but the syntax should be Code: user=userbox Use = instead of :. RE: SMB disk sharing - Armentis - 2024-05-10 Hi With the command : sudo dmesg | grep -i cifs Quote:[ 3889.900108] CIFS: VFS: Use of the less secure dialect vers=1.0 is not recommended unless required for access to very old servers The fstab line Quote://192.168.0.254/Freebox /media/freebox cifs _netdev,rw,users,credentials=/home/USERNAME/.smbcredentials,iocharset=utf8,uid=1000,sec=ntlmv2,file_mode=0777,dir_mode=0777,vers=1.0 If I don't put some SMB version, I get this : Quote:mount error(2): No such file or directory I will try to post my problem on a friendly freebox user forum, maybe more details with this specific intenet box RE: SMB disk sharing - Armentis - 2024-05-13 That's working now ! I had incorrectly entered the path to the freebox disk from the start. In any case, thank you very much for your valuable help which allowed me to learn a little more about Linux |