Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
sudo mount -t cifs -o username=bob //myserver/bob ./net
I can access the server on another windows machine using the same credentials and I can see and access the share using smbclient on my linux machine I just can't mount it. The error I recieve is:
Code:
Password for bob@//192.168.1.151/bob:
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Anyone have thoughts on this? I am running Gentoo linux, samba 3.6.23 and kernel version 3.12.21-gentoo-r1 with CIFS support enabled.
Error 13 is a pretty generic error for mount to throw back at you. It typically is caused by leaving a required parameter out, in most cases the domain, even if it's only a workgroup'd machine.
Try adding your domain to your command string. Use the machine name if you're not on a domain. Like:
Code:
mount.cifs -o username=bob,domain=<machine or domain> //myserver/bob ./net
If this still fails, there are many threads online describing this exact problem. It's likely you're facing something similar.
Well I do have a domain name server which I tried and I got the same error.
Code:
$ sudo mount -t cifs -v -o username=richard,domain=overnetwork.local //192.168.1.151/richard ./net
Password for richard@//192.168.1.151/richard:
mount.cifs kernel mount options: ip=192.168.1.151,unc=\\192.168.1.151\richard,user=richard,,domain=overnetwork.local,pass=***
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Just for kicks I tried running the same thing on my laptop under localhost where the server was running and it worked. I was able to mount my shared folder. Kind of weird. It's is like cifs is having trouble sending the password or credentials
Code:
sudo mount -t cifs //localhost/richard ./net -o username=richard
Well there is a log file however it is empty. On boot my desktop kernel fails to load the cifs.ko module for some reason. Using modprobe to manually load cifs doesn't work either. I see:
Code:
* loading module cifs.ko
* failed to load cifs.ko
You know of any documentation that discuss why kernel modules failed to load? Or a way to tell the kernel to be more verbose?
dmesg will tell you more verbose information about modules failing to load. Also, when I said domain, I meant like NetBIOS name type domain. Try putting your samba machine's NetBIOS name for the domain parameter instead.
Ok. I was a little confused at first when you said domain name. I updated my smb.conf file using the "netbois name" variable and tried to mount again. My smb.conf file:
Code:
[global]
interfaces = lo enp0s25 wlp3s0
workgroup = WORKGROUP
socket options = TCP_NODELAY IPTOS_LOWDELAY
security = user
hosts allow = 192.168.1. 127.
log file = /var/log/samba/log.%m
max log size = 100
netbios name = reolaptop
[homes]
valid users = %S
browseable = yes
writable = yes
read only = no
I still get an error when mounting.
Code:
sudo mount -t cifs //192.168.1.151/richard ./net -o username=richard,domain=reolaptop
Password for richard@//192.168.1.151/richard:
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Running dmesg | grep 'cifs' did not return anything and I did not see anything related to it scrolling through (Somethimes I'm blind). I had been reading the readme for CIFS in the kernel source documentation and they have a section Misc /proc/fs/cifs Flags and Debug Info that I'm not quite sure how to implement. As a test tried changing some of the values in cifsFYI and SecurityFlags on my laptop where mount -t cifs worked util I changed them. I rebooted and things started working on my laptop again but desktop mount -t cifs is still broken. Not sure how anything is logged when the values can change on booting. I included the dmesg.log as an attachment if you have the time to look through it. Also, do you know of a way to pass debuging arguments to the cifs module such as modules_cifs_args="debug" in /etc/conf.d/modules?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.