LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 05-14-2013, 01:32 PM   #1
rgsurfs
LQ Newbie
 
Registered: May 2013
Posts: 18

Rep: Reputation: Disabled
Cannot mount cifs, but can browse via gnome


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

Any ideas????

tks

Robert
 
Old 05-14-2013, 01:44 PM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
RHEL5 is probly running an older version that doesnt support the "ext security" of the newer windows OS's.

Try this in your smb.conf

Code:
client NTLMv2 auth = false
reboot, try again
 
1 members found this post helpful.
Old 05-14-2013, 01:46 PM   #3
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Code:
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.
 
1 members found this post helpful.
Old 05-14-2013, 05:18 PM   #4
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by Kustom42 View Post
Code:
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

<code>
-o user="username%password"
</code>

--C
 
1 members found this post helpful.
Old 05-14-2013, 05:23 PM   #5
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Quote:
Originally Posted by custangro View Post
I've always passwd the password through the user options

<code>
-o user="username%password"
</code>

--C
Either method should work, the only thing I saw wrong was that the -o was out of place.
 
1 members found this post helpful.
Old 05-15-2013, 08:04 AM   #6
rgsurfs
LQ Newbie
 
Registered: May 2013
Posts: 18

Original Poster
Rep: Reputation: Disabled
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....
 
Old 05-15-2013, 09:26 AM   #7
goarilla
LQ Newbie
 
Registered: Sep 2005
Location: Belgium
Distribution: slackware 10
Posts: 13

Rep: Reputation: 2
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

Last edited by goarilla; 05-15-2013 at 09:30 AM.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] CIFS share on old WinNT host - smbclient works, mount -t cifs doesn't Electrode Linux - Networking 4 04-19-2012 09:11 AM
manual mount cifs works but srcipt mount cifs has mount error (13): Permission denied CADIT Linux - Newbie 6 11-20-2009 02:48 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 06:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration