Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.


  Search this Thread
Old 05-02-2004, 02:00 PM   #1
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
store wep key in encrypted form?

I currently have my wg311 pci wireless card successfully connecting to the internet via my netgear wgr646 router (access point)

I have to issue the wep key (hexadecimal, 26 characters) every time i turn on the computer, so i added the line
iwconfig ath0 key XXXXXXXXXXXXXXXXXXXXXXXXXX (the X's representing my key)
to my local startup script in /etc/rc.d/rc.local, along with other commands to bring up my ath0 interface

the key is of course blatantly stated in that file; is there another file or another way to bring up my card without revealing my wep key?
for example, in windows, I enter the wep key once, and it is dotted out after that; is there a way to do this in linux?
Old 05-02-2004, 02:40 PM   #2
Registered: Mar 2004
Location: Denmark
Distribution: Gentoo, Slackware
Posts: 333

Rep: Reputation: 30
Put that line in a separate script, owned by root and chmod the script:
chmod 700 yourscript
Then only root can read it.

Call the hidden script from your startup script. This should work because the startup scripts have root access.


--edit-- ok that last sentence was not quite phrased correctly, the init process that runs the startup scripts has root access, or something, I think you get the idea though.

Last edited by Muzzy; 05-02-2004 at 02:42 PM.
Old 05-02-2004, 07:01 PM   #3
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Original Poster
Rep: Reputation: 30
this is currently what I have done, thx

is there any other way, to just completely hide the key? (not that i'm worried about having the key read; just for the sake of information)


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
WEP key thoyyib Linux - Wireless Networking 2 09-29-2005 04:22 AM
What if I don't know the WEP key? death_au Linux - Wireless Networking 1 04-26-2005 07:40 PM
WEP Key HashBang Linux - Wireless Networking 1 01-25-2004 02:55 AM
How to get on a 40 bit WEP encrypted wireless network with an Intersil Prism2 card? msouden Linux - Wireless Networking 1 11-03-2003 08:02 AM
How exactly do I specify a WEP key? Electrode Linux - Wireless Networking 3 09-02-2003 09:50 AM > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 03:16 PM.

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