Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
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.
Hello, I am a new forum user and have been working on a problem for a few days now to no avail !!!!
I am running RedHat 5 enterprise
I cannot figure out why I cannot mount my windows share drive from the command line, but I have no problem getting to it from my desktop: i.e. startx, clickon computer, network, windows network,... until I reach my server. I get the login/password/domain prompt. I enter my credentials and I get right into the server and I can access my shared folder named public.
However, if I try to mount via command line and enter the same credentials, I cannot get in. I get error -13 PERMISSION DENIED
I check dmesg and it shows SEND ERROR IN SESSSETUP = -13
NT_STATUS_WRONG_PASSWORD
mount -t cifs -o //192.168.1.1/public /mnt/global username=robert,password=robert,domain=hq
mount -t cifs //192.168.1.1/public /mnt/global -o username=robert,password=robert,domain=hq
Try switching the location of -o, that's the only thing I see wrong with the syntax of the command. The error reports a bad password so you can always drop the password= option off and let it prompt you for the password. Also probably not a good idea to put a password on a public forum.
mount -t cifs //192.168.1.1/public /mnt/global -o username=robert,password=robert,domain=hq
Try switching the location of -o, that's the only thing I see wrong with the syntax of the command. The error reports a bad password so you can always drop the password= option off and let it prompt you for the password. Also probably not a good idea to put a password on a public forum.
I've always passwd the password through the user options
aaahh, getting closer tks for info so far and yes, robert robert is not my real credentials :-)
I now did: mount -t cifs //192.168.1.1/public /mnt/global -o username=robert
I got a password prompt, entered password and drive was mounted.. perfect... but
If I do the same thing with password option: mount -t cifs //192.168.1.1/public /mnt/global -o username=robert,password=robert
I get the mount error -13 permission denied.... weird....
Have you tried connecting to the share with smbclient. If that succeeds try mounting it with different sec=... options,
the man page of mount.cifs has the values it can contain:
Quote:
sec=
Security mode. Allowed values are:
· none attempt to connection as a null user (no name)
· krb5 Use Kerberos version 5 authentication
· krb5i Use Kerberos authentication and forcibly enable
packet
signing
· ntlm Use NTLM password hashing (default)
· ntlmi Use NTLM password hashing and force packet signing
· ntlmv2 Use NTLMv2 password hashing
· ntlmv2i Use NTLMv2 password hashing and force packet
signing
· ntlmssp Use NTLMv2 password hashing encapsulated in
Raw NTLMSSP
message
· ntlmsspi Use NTLMv2 password hashing encapsulated in Raw
NTLMSSP message, and force packet signing
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.