What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Changing Wifi Guest password from the shell?

kobari

Occasional Visitor
Hi,

I would like to change my guest wifi password automatically with crontab, e.g. every week.

Is there any way of changing any wifi network password from the shell? Any help is appreciated here.

Thanks.
 
Hi,

I would like to change my guest wifi password automatically with crontab, e.g. every week.

Is there any way of changing any wifi network password from the shell? Any help is appreciated here.

Thanks.

The values are stored in the nvram. To find out which values need changing type in SSH;

nvram show | grep GUESTPWHERE

Not sure the exact value as I don't have a guest network configured, but I assume it will be similar to the regular network values.

e.g

wl_wpa_psk=INSERTPW
wl0_wpa_psk=INSERTPW
wl1_wpa_psk=INSERTPW
 
nvram settings for the three guest 2.4 networks:
wl0.1_wpa_psk
wl0.2_wpa_psk
wl0.3_wpa_psk

nvram settings for the three guest 5.0 networks:
wl1.1_wpa_psk
wl1.2_wpa_psk
wl1.3_wpa_psk

to change the password for one of the six with cmd line:
nvram set wl0.1_wpa_psk=newpassword
 
Last edited by a moderator:

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top