Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-24-2008, 06:07 PM   #1
LQ Newbie
Registered: Jan 2008
Posts: 19

Rep: Reputation: 0
cifs mount "password too long"


I'm trying to do a cifs mount to mount a directory on my RHEL4 server to a shared folder on a Windows 2003 server. I'm using this command:

mount.cifs //<W2K3ipaddress>/<sharedFolder> /<pathToLinuxFolder> -o dom=<domainName>,user=<W2K3username>,pass="<W2K3password>"

I'm getting a "password too long" error message. My password is 14 alphanumeric and contains an @ symbol and an exclamation point...would either the @ symbol or the exclamation point be causing the problem? I see it tries to convert my the part of my password after the exclamation point up to the @ symbol to "ls -al" after I hit enter. If I leave the quotes off around the password, I get a "invalid mount a" error. I think when it's converting the password to "ls -al" it's reading the "-a" as an option.

How can I get this to work using my current password???

Thank you
Old 12-24-2008, 06:44 PM   #2
Senior Member
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
If the password is 1@5!8 then you probably need to escape the @ and the ! as follows:
If that doesn't work then try using the single quote character instead of the double quote character as follows.

Last edited by stress_junkie; 12-24-2008 at 06:45 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Cifs "mount error 13 = Permission denied" CIFS SUCKS humbletech99 Linux - Networking 43 10-28-2015 10:35 PM
Cifs "mount error 5 = Input/output error" but smbfs works! humbletech99 Linux - Networking 23 09-06-2015 09:10 AM
SMB/CIFS mount: "only root can do that" Ghodmode Linux - Server 2 03-27-2008 06:23 PM
How to convert "unsigned long long" to "char pointer"? novicehacker Linux - Kernel 1 11-20-2006 01:57 AM
Cifs "mount error 11 = Resource temporarily unavailable" humbletech99 Linux - Networking 1 09-26-2006 01:04 PM

All times are GMT -5. The time now is 04:07 AM.

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