LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-19-2012, 08:01 PM   #1
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,383

Rep: Reputation: Disabled
iwconfig won't accept my network password


My wireless network password is two words with an ampersand (&) between them. iwconfig won't accept the password, and the error messages suggest the ampersand is confusing it. (Sorry for the awkward way of quoting my command, but I shouldn't display either the essid or password.) I entered:
Quote:
iwconfig wlan0 essid ****************** key s:[first word]&[second word]
The system responded:
Quote:
[1] 5233
bash: [second word]: command not found
Error for wireless request "Set Encode" (8B2A) :
invalid argument "[first word]".
Obviously, the ampersand confused the system. So I tried the same password enclosed in single quotation marks and then tried it again enclosed in double quotation marks. For both, I got this result:
Quote:
Error for wireless request "Set Encode" (8B2A) :
SET failed on device wlan0 ; Invalid argument.
Is this all because my password contains an ampersand? I don't know what else it would be, because I'm typing the command exactly as my source says (http://www.ghacks.net/2009/04/14/con...-command-line/
I am not the administrator of my network, and therefore can't change the password to remove the ampersand. There's no possibility I have the wrong password; I know it too well. I added "s:" before the password because the website says to do that for an ASCII password, which mine is.
 
Old 05-20-2012, 12:17 AM   #2
saivnoba
Member
 
Registered: Aug 2010
Distribution: Debian Sid, openSUSE, Gentoo, Slackware64
Posts: 68

Rep: Reputation: 2
May be you can try to enclose your password with double quotes ("") for the key option like
Code:
key s:"pass&word"
EDIT: Sorry I see you have already tried it.

Last edited by saivnoba; 05-20-2012 at 12:20 AM.
 
Old 05-20-2012, 07:12 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,813

Rep: Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958
Try escaping the & i.e.
Quote:
key s:pass\&word
 
1 members found this post helpful.
Old 05-22-2012, 03:50 PM   #4
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,383

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
Try escaping the & i.e.
It didn't work.

I want to try some distro variations that don't include an automatic network connection manager, so I need to solve this problem. (At the moment, I have in mind specifically the "standard" version of Debian Live.)

Last edited by newbiesforever; 05-23-2012 at 03:24 PM.
 
Old 05-24-2012, 09:59 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,813

Rep: Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958
I haven't found anything other then quotes and escaping if special characters exist. There could be other options but you may have to convert the passphrase to hex.
 
Old 05-24-2012, 11:17 PM   #6
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,383

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
I haven't found anything other then quotes and escaping if special characters exist. There could be other options but you may have to convert the passphrase to hex.
Okay, I'm looking up ascii-to-hex converters. I guess I never supposed iwconfig might not convert the ascii for me.

Last edited by newbiesforever; 05-24-2012 at 11:19 PM.
 
Old 05-25-2012, 06:57 PM   #7
rob.rice
Senior Member
 
Registered: Apr 2004
Distribution: slack what ever
Posts: 1,076

Rep: Reputation: 205Reputation: 205Reputation: 205
have you tried setting the password in your rc.wireless.conf file
or make a plain text file with just the password in it and redirect the file to the command

iwconfig wlan0 essid ****************** key s:<password.txt
 
Old 05-26-2012, 10:48 PM   #8
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,383

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rob.rice View Post
have you tried setting the password in your rc.wireless.conf file
or make a plain text file with just the password in it and redirect the file to the command

iwconfig wlan0 essid ****************** key s:<password.txt
Looking for my rc.wireless.conf file...
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to accept a encrypted password in perl. jova626 Programming 4 04-28-2008 01:40 PM
Text mode won't accept root password PorPorMe Linux - Newbie 2 02-07-2008 04:39 PM
Evolution woes: won't accept password and gives a bunch of errors MamaWombat Linux - Software 0 08-15-2007 09:30 PM
CUPS does not accept my username/password Robhogg Linux - Hardware 2 02-26-2006 12:50 PM
su doesn't accept my password CGameProgrammer Linux - General 7 10-13-2004 12:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:48 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