I also have this problem and the only thing which worked for me was this:
sudo mkdir /mnt/logs
sudo mount.cifs //192.168.10.10/directory\ name/ /mnt/logs/ -o user=remote\ user\ name,rw,vers=1.0,dir_mode=0777,file_mode=0666,nounix
Just replace
192.168.10.10
by the IP of remote computer
directory\ name
by the remote directory absolute path
remote\ user\ name
by the remote user account used to authenticate
vers=1.0
by the version of the smb
protocol implemented on the remote computer
After you run this command, it will prompt by your remote\ user\ name
password.
Just do not forget to install: sudo apt-get install cifs-utils
If you have any problems with this command line, as some nuts errors like:
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
You can run this to see what the error was
$ tail /var/log/kern.log
May 8 16:09:06 user-pc kernel: [265246.010808] 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.
May 8 16:09:06 evandro-pc kernel: [265246.012935] CIFS VFS: cifs_mount failed w/return code = -22
On this case, if you search on Google you will see the error was that I ran the command without specifying the vers=1.0
argument.
References:
- https://forums.linuxmint.com/viewtopic.php?t=75785
- Permission denied for user accessing mount
- https://stackoverflow.com/questions/74626/how-do-you-force-a-cifs-connection-to-unmount
... -o uid=500,gid=users,nounix