View Full Version : Samba cifs error (mount error 13 = permission denied)
jlrq74
8th February 2005, 12:01 AM
Hi,
I'm trying to connect to a SMB server from my FC3 server, I'm running kernel 2.6.10 and Samba 3.0.10, this is the command I'm using:
mount -t cifs //SMBserver/share /mnt/inout -o user=userid,pass=mypassword
I'm getting "mount error 13 = Permission denied" and I'm sure that the user and password are correct.
Any idea?
Thanks in advance.
blammo
8th February 2005, 12:15 AM
Try this one:
smbmount //SMBserver/share /mnt/inout -o username=userid
You will be prompted for the password. I think you got to be root to run this.
jayemef
8th February 2005, 12:23 AM
mount should be adequate. I don't think that's the issue. There are some things to consider though.
1) Does the user you are mounting with have the permissions to access this share in the first place? (this would be server side)
2) What are the permissions of /mnt/inout? ( ls -l /mnt )
3) Did you mean to write userid? Userid is typically a number. user= needs a username for an argument.
Finally, I wouldn't recommend that you use password= in your mount string. Just let it ask you. This is more secure, as your password isn't printed in characters on the screen. Rather, the characters are shown as asterisks.
nightcrawler
8th February 2005, 01:17 AM
mount is fine, but you do need to use the "username=" instead. "password=" will work. Also if this is a domain/centralized authentication share you may also need the "workgroup=" <domain>. By default it is mapped as the user running the mount (i.e. root). you may want to map to a local user / group by adding the "uid=" and/or "gid=" option.
jayemef
8th February 2005, 03:13 AM
mount is fine, but you do need to use the "username=" instead.
Incorrect. The syntax for mount is user=. smbmount syntax is username=.
jlrq74
8th February 2005, 01:46 PM
Thanks to everyone for the help on this issue... but... still no luck. I currently have a RedHat 9.0 server sucessfully connected to the SMB server via smbfs, this is how my /etc/fstab looks:
//SMBserver/INOUT /mnt/inout smbfs credentials=/home/inoutbound/.smbpasswd,uid=inoutbound,gid=inoutbound 0 0
Basically I created the same user in the new FC3 box and modified the /etc/fstab to use cifs instead of smbfs (smbfs doesn't work on FC3) with no luck. I remember that in order to connect my XP workstation I had to modified the registry so that the client (XP) can send unencrypted passwords to the SMB server...
Question, does cifs encrypts passwords??
Thanks.
ucfagls
8th February 2005, 02:24 PM
Thanks to everyone for the help on this issue... but... still no luck. I currently have a RedHat 9.0 server sucessfully connected to the SMB server via smbfs, this is how my /etc/fstab looks:
//SMBserver/INOUT /mnt/inout smbfs credentials=/home/inoutbound/.smbpasswd,uid=inoutbound,gid=inoutbound 0 0
That works for me on FC3, except I use the IP address instead of the machine name - so replace SMBserver with the IP address.
Basically I created the same user in the new FC3 box and modified the /etc/fstab to use cifs instead of smbfs (smbfs doesn't work on FC3) with no luck.
smbfs works just fine for me on FC3. I've not used cifs as I've not had a problem with smbfs before, once I worked out it needed the IP address and not the machine name for some reason.
jayemef
8th February 2005, 02:42 PM
Good idea, but that probably isn't the problem, as he's getting the message "permission denied," indicating that a connection was made to the machine and there was a conflict with the permissions.
jlrq74
9th February 2005, 03:26 AM
Thanks again to everyone..... I will continue using RedHat 9.0 for now... My SMB server is an IBM mainframe, so I will probably put a call to IBM...
Thanks again!!!
DonQuichote
16th April 2008, 10:21 AM
I had the same problem. It took some time to figure out, but smbfs is more forgiving to whitespace than cifs. So my credentials file:
user = myuser
password = mypassword
was the problem. Removing the spaces did the trick.
szemere
23rd March 2009, 06:01 PM
Similar issues. Found that my credentials file had
user=myusername
instead of
username=myusername
I worked this out by using the -v option to mount which very helpfully shows all the parameters it sends and comparing it against a command line that did work for me.
HTH someone else,
Szemere
Powered by vBulletin® Version 4.2.5 Copyright © 2018 vBulletin Solutions Inc. All rights reserved.