mount -t cifs permission denied by mount -t smbfs works fine
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
mount -t cifs permission denied by mount -t smbfs works fine
I am having trouble mounting with cifs, but mounting the exact same command with smbfs works fine. The share is on another samba server and is set to full public guest access.
Code:
# mount -t cifs //servername/sharename /mnt/temp -o password=""
mount error 13 = Permission denied
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
==> /var/log/messages <==
Sep 1 16:43:25 clientname Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
Sep 1 16:43:25 clientname CIFS VFS: Send error in SessSetup = -13
Sep 1 16:43:25 clientname CIFS VFS: cifs_mount failed w/return code = -13
# mount -t smbfs //servername/sharename /mnt/temp -o password=""
Anonymous login successful
I can then read and write files in /mnt/temp over smbfs but I cannot even mount it using cifs, but there are other cifs filesystems from other samba servers that mounted fine on this machine. I have the same problem mounting this one share from all linux boxen... but those same linux boxen can mount cifs shares from other machines just fine.
mount -t cifs //servername/sharename /mnt/temp -o guest
mount error 13 = Permission denied
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
I also tried:
Code:
mount -t cifs //servername/sharename /mnt/temp -o user=guest,password=""
mount error 127 = Key has expired
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
Sep 1 17:12:42 clientname Status code returned 0xc0000072 NT_STATUS_ACCOUNT_DISABLED
Sep 1 17:12:42 clientname CIFS VFS: Send error in SessSetup = -127
Sep 1 17:12:42 clientname CIFS VFS: cifs_mount failed w/return code = -127
It is using the nobody account as the guest account but the account isn't really locked, it is /sbin/nologin but setting this to /bin/false and /bin/true didn't help either. And doing passwd -u nobody didn't let it work after that either.
Last edited by humbletech99; 09-01-2009 at 11:16 AM.
I don't know why but aprox. 9 months ago i have to change my aliases in .bashrc from "mount -t cifs //server/dir /mnt/networkdir" to "mount.cifs //server/dir /mnt/networkdir" and it worked again
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.