2024-05-09, 09:57 PM
(2024-05-09, 09:52 PM)Armentis Wrote: I tried with this :
//server/share /pathto/mountpoint cifs credentials=/home/MYSUERNAME/.smbcredentials,uid=shareuser,gid=sharegroup 0 0
This wouldn't work since it was just a generic example.
(2024-05-09, 09:52 PM)Armentis Wrote: 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
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.