LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

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

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


Hello,

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, 05:44 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

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

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


Reply


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


All times are GMT -5. The time now is 11:01 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration