LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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: 335Reputation: 335Reputation: 335Reputation: 335
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



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 45 04-06-2020 05:31 AM
Cifs "mount error 5 = Input/output error" but smbfs works! humbletech99 Linux - Networking 36 12-18-2019 02:59 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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