Page 1 of 1

Hide wireless password

Posted: 12 Dec 2016, 22:14
by Dagrem
Hi

I have managed to install the Desktop version of Porteus as I have 32 bit machines and everything is working well. Is there a way to hide or restrict the access for a guest to the wireless settings as I really do not want users to see what the wireless password is.

Thanks in advance

Re: Hide wireless password

Posted: 13 Dec 2016, 19:10
by brokenman
Open a root console:

Code: Select all

wpa_passphrase <SSID> <passphrase>
In the output you will get an encrypted password. Enter this into the file /etc/NetworkManager/system-connections/<yourconnection>

Example output:

Code: Select all

root@porteus:/home/guest/Downloads# wpa_passphrase MyWifi mywifipassword
network={
	ssid="MyWifi"
	#psk="mywifipassword"
	psk=f31fb9167389196678f6c9b66b3f1e9f78369ef795f80b99ad06ffbbef395036
}
Just replace the current line psk=XXXXXXX with the output from above.

Re: Hide wireless password

Posted: 14 Dec 2016, 16:47
by Dagrem
Thanks alot for your response.

I eventually got the psk as I had to add quote marks around the Wireless security key (sorry Linux noob here).

When I opened the <yourconnection> file, I could not see any reference to psk. Did add my own line with psk=<output from wpa_passphrase>, but could still see the wireless password and not the psk reference.

Re: Hide wireless password

Posted: 15 Dec 2016, 01:29
by donald
Hi Dagrem

Wouldn't it be enough to hide the "Show PW" checkbox?
Then users can only see the dots, but not switch to clear text.

go to /usr/share/nm-applet/, (as root), and open the ws-wpa-psk.ui File in
a Text Editor > search for "password" till you find the line:
<object class="GtkCheckButton" id="show_checkbutton_wpa">
<property name="label" translatable="yes">Sho_w password</property>
<property name="visible">True</property>

now change
<property name="visible">True</property>
to
<property name="visible">False</property>

save file,
the Show Password checkbox should no longer be visible in the wireless security settings.

You have a wpa / wpa2 secured Wlan, or?

Re: Hide wireless password

Posted: 15 Dec 2016, 16:43
by Dagrem
Hi Donald

Thanks for your response. Unfortunately, I could not find no such folder and also searched for the file name and nothing was found :(

Running a WPA2 Secured WLAN.

Thanks

Re: Hide wireless password

Posted: 16 Dec 2016, 00:21
by donald
oops..ok..
I use porteus 3.2.1-XFCE-32 Bit
Which version/Desktop do you use?

Re: Hide wireless password

Posted: 16 Dec 2016, 00:42
by brokenman
Perhaps you are setting up the network as a guest user. If this is the case then the guest user will be able to view the password. You need to log in as root and set up the network connection so it connects automatically at login. Once you are back in the guest account you should not be able to read the password.

Re: Hide wireless password

Posted: 18 Dec 2016, 17:03
by Dagrem
brokenman wrote:Perhaps you are setting up the network as a guest user. If this is the case then the guest user will be able to view the password. You need to log in as root and set up the network connection so it connects automatically at login. Once you are back in the guest account you should not be able to read the password.
Set up the network under root and does not show when logged in as guest.

Re: Hide wireless password

Posted: 18 Dec 2016, 17:04
by Dagrem
donald wrote:oops..ok..
I use porteus 3.2.1-XFCE-32 Bit
Which version/Desktop do you use?
Trying this version now. Having trouble with opening Chrome with guest user, but researching this as we speak. Will let you know if this is successful.

Cheers

Re: Hide wireless password

Posted: 18 Dec 2016, 18:13
by brokenman
Trying this version now. Having trouble with opening Chrome with guest user
You should download the chrome module from our mirrors.

Code: Select all

http://porteus.org/porteus-mirrors.txt

Re: Hide wireless password

Posted: 19 Dec 2016, 13:28
by Dagrem
Thanks Brokenman, I have already downloaded Chrome and activated, but getting this error: viewtopic.php?f=125&t=3516

Having problems with opening google-chrome file.