SOLVED Getting permission denied when trying to mount a folder

avalon60

Guru
Joined
Jan 15, 2014
Messages
597
For months I have had this working :
My /etc/fstab line:
//192.168.0.22/xeoma /mnt/CCTV/xeoma cifs credentials=/home/rob/.smbclient,uid=rob.

And for the last few days when I try to mount the said folder:
rob@rob-Z97:~$ sudo mount -vvv -t cifs -o username=root,password=*******,uid=rob,gid=rob //192.168.0.22/xeoma /mnt/CCTV/xeoma
mount.cifs kernel mount options: IP=192.168.0.22,unc=\\192.168.0.22\xeoma,uid=1000,gid=1000,user=root,try to mountpass=********
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

Then running
tail -f /var/log/kern.log

Mar 11 10:44:17 rob-all kernel: [72625.529865] No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount.
Mar 11 10:44:17 rob-all kernel: [72625.571143] CIFS VFS: cifs_mount failed w/return code = -13

I don't understand why 1 day it works great, then the next day it doesn't.

I did update FreeNAS to the latest version and also upgraded the zfs pools last week sometime, if that has anything to do with it.

Update:
The problem has now been solved as it was caused by having an invalid IP address in the Hosts Allow box for the share. The said IP address has now been removed and the mount now works .
 
Last edited:
Top