Hide wireless password

Post here if you are a new Porteus member and you're looking for some help.
Dagrem
White ninja
White ninja
Posts: 6
Joined: 12 Dec 2016, 22:10
Distribution: Porteus Desktop v3.1
Location: England

Hide wireless password

Post#1 by Dagrem » 12 Dec 2016, 22:14

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

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: Hide wireless password

Post#2 by brokenman » 13 Dec 2016, 19:10

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.
How do i become super user?
Wear your underpants on the outside and put on a cape.

Dagrem
White ninja
White ninja
Posts: 6
Joined: 12 Dec 2016, 22:10
Distribution: Porteus Desktop v3.1
Location: England

Re: Hide wireless password

Post#3 by Dagrem » 14 Dec 2016, 16:47

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.

donald
Full of knowledge
Full of knowledge
Posts: 2064
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: Hide wireless password

Post#4 by donald » 15 Dec 2016, 01:29

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?

Dagrem
White ninja
White ninja
Posts: 6
Joined: 12 Dec 2016, 22:10
Distribution: Porteus Desktop v3.1
Location: England

Re: Hide wireless password

Post#5 by Dagrem » 15 Dec 2016, 16:43

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

donald
Full of knowledge
Full of knowledge
Posts: 2064
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: Hide wireless password

Post#6 by donald » 16 Dec 2016, 00:21

oops..ok..
I use porteus 3.2.1-XFCE-32 Bit
Which version/Desktop do you use?

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: Hide wireless password

Post#7 by brokenman » 16 Dec 2016, 00:42

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.
How do i become super user?
Wear your underpants on the outside and put on a cape.

Dagrem
White ninja
White ninja
Posts: 6
Joined: 12 Dec 2016, 22:10
Distribution: Porteus Desktop v3.1
Location: England

Re: Hide wireless password

Post#8 by Dagrem » 18 Dec 2016, 17:03

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.

Dagrem
White ninja
White ninja
Posts: 6
Joined: 12 Dec 2016, 22:10
Distribution: Porteus Desktop v3.1
Location: England

Re: Hide wireless password

Post#9 by Dagrem » 18 Dec 2016, 17:04

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

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: Hide wireless password

Post#10 by brokenman » 18 Dec 2016, 18:13

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
How do i become super user?
Wear your underpants on the outside and put on a cape.

Dagrem
White ninja
White ninja
Posts: 6
Joined: 12 Dec 2016, 22:10
Distribution: Porteus Desktop v3.1
Location: England

Re: Hide wireless password

Post#11 by Dagrem » 19 Dec 2016, 13:28

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.

Post Reply