I've tried a lot of things I found on the web to no avail.
At first I was getting mount error(13): Permission denied:
Code: Select all
sudo mount -t cifs //192.168.0.101/milliways /media/milliways -o cred=/root/.smbcredentials,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777 --verbose
domain=milleniumfalcon
mount.cifs kernel mount options: ip=192.168.0.101,unc=\\192.168.0.101\milliways,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777,user=sergio,domain=milleniumfalcon,pass=********
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
Code: Select all
sudo mount -t cifs //192.168.0.101/milliways /media/milliways -o cred=/root/.smbcredentials,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777,sec=ntlm --verbose
domain=milleniumfalcon
mount.cifs kernel mount options: ip=192.168.0.101,unc=\\192.168.0.101\milliways,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777,sec=ntlm,user=sergio,domain=milleniumfalcon,pass=********
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
I can successfully mount the shared folder in the file explorer (i.e. Nautilus) and then I can see the share in /run/user/1000/gvfs:
Code: Select all
cd /run/user/1000/gvfs/smb-share:server=192.168.0.101,share=milliways
ls -la
total 0
drwx------ 1 sergio sergio 0 Jul 20 09:37 .
dr-x------ 3 sergio sergio 0 Jul 20 14:28 ..
drwx------ 1 sergio sergio 0 Jul 20 09:37 Backups
drwx------ 1 sergio sergio 0 Jan 24 17:32 Media
I've tried forcing different versions with mount (2.0 and 3.0), but that didn't help.
Also tried different sec options.
Would really appreciate some help with this.