Friday, January 2, 2009

Cifs "mount error 13 = Permission denied"

This was a huge problem in samba especially in Ubuntu. It seems that the new kernal is to blame.
Whenever I issued a command like

mount -t smbfs //192.168.87.85/LOTR /share/ -o username=guest,password=

I got the error


mount error 13 = Permission denied
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)

A bug report is found
here( https://bugzilla.redhat.com/show_bug.cgi?id=119766).

And a possible solution is given here.( http://vijayk.blogspot.com/2008/09/cifs-mount-error-13-permission-denied.html)

However it didn't help when I gave this command,

mount -t smbfs //192.168.87.85/LOTR /share/ -o username=guest,password=

After a lot of experimenting I realised that it fails sometimes if there is no password specified. So I added a password to the Windows share and gave the following command.

mount -t smbfs //192.168.87.85/LOTR /share/ -o username=guest,password=gjf67g,domain=MSHOME

It worked !!!

For many other win shares I didn't specify password and the first command worked fine. If anyone knows the reason for this discrepancy please post a comment.

No comments:

OK GOOGLE on Samsung Galaxy S7 doesn’t work

To make Ok Google detection work on Galaxy S7 (Galaxy series phones) we need to perform a couple of steps. 1. As long as Samsung S vo...