You are not logged in.

#1 2011-03-31 04:10:54

Rician
Member
Registered: 2010-10-24
Posts: 44

(SOLVED) Wireless networking wpa_supplicant

i am trying to make wireless networking work with wpa_supplicant.  i run sudo wpa_passphrase mywireless "secretpassphrase" > /etc/wpa_supplicant.conf and get bash: /etc/wpa_supplicant.conf: Permission denied
.. i dont knowh what to do. Please help me get my wireless network to work smile

Last edited by Rician (2011-03-31 06:54:28)

Offline

#2 2011-03-31 05:15:15

mekh
Member
Registered: 2011-01-31
Posts: 11

Re: (SOLVED) Wireless networking wpa_supplicant

As I know, first command (sudo wpa_passphrase mywireless "secretpassphrase") runs under root access, but the sencond one ( > /etc/wpa_supplicant.conf ) doesn't.
Try this:
$sudo -i
# wpa_passphrase mywireless "secretpassphrase" > /etc/wpa_supplicant.conf

Last edited by mekh (2011-03-31 06:28:16)

Offline

#3 2011-03-31 05:35:02

Rician
Member
Registered: 2010-10-24
Posts: 44

Re: (SOLVED) Wireless networking wpa_supplicant

it says $sudo -i bash: -i: command not found

Offline

#4 2011-03-31 05:49:09

mekh
Member
Registered: 2011-01-31
Posts: 11

Re: (SOLVED) Wireless networking wpa_supplicant

Rician wrote:

it says $sudo -i bash: -i: command not found

Did you type "$" in command line? smile You just have to type "sudo -i" (without quotations) and press Enter.

Google says "the shell does the redirection BEFORE sudo runs. If the redirection can't be done because of permissions, the command will fail"

Also you can try this:
sudo sh -c 'wpa_passphrase mywireless "secretpassphrase" > /etc/wpa_supplicant.conf '

Last edited by mekh (2011-03-31 05:55:27)

Offline

#5 2011-03-31 05:56:02

Rician
Member
Registered: 2010-10-24
Posts: 44

Re: (SOLVED) Wireless networking wpa_supplicant

sudo -i wpa_passphrase mywireless "secretpassphrase" > /etc/wpa_supplicant.conf = bash: /etc/wpa_supplicant.conf: Permission denied
sudo sh -c 'wpa_passphrase mywireless "secretpassphrase" > /etc/wpa_supplicant.conf = bash: /etc/wpa_supplicant.conf: Permission denied

Last edited by Rician (2011-03-31 05:58:31)

Offline

#6 2011-03-31 06:01:53

mekh
Member
Registered: 2011-01-31
Posts: 11

Re: (SOLVED) Wireless networking wpa_supplicant

sudo sh -c 'wpa_passphrase mywireless "secretpassphrase" > /etc/wpa_supplicant.conf'

Copy, paste, Enter.

Offline

#7 2011-03-31 06:12:41

Rician
Member
Registered: 2010-10-24
Posts: 44

Re: (SOLVED) Wireless networking wpa_supplicant

My wireless internet works now. Thanks alot for your help. Its appreciated smile

Offline

Board footer

Powered by FluxBB