I work for a school and I want to disable this part. When ever the network goes down and it has to reauthenticate, the kids have a chance to see the password. How can I disable that part?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
I think, but I am not sure, that preventing ordinary users from any control whatsoever over the Network Manager functions also prevents them from seeing the password. This is a setting I use in my lab, and I think I checked it to see if passwords could be visible, but that was long ago and I don't remember for sure:
# cat /etc/polkit-1/localauthority/50-local.d/disable-network-control.pkla [Wifi management] Identity=unix-user:* Action=org.freedesktop.NetworkManager.settings.* ResultAny=no ResultInactive=no ResultActive=no [Wifi sysad management] Identity=unix-group:sudo;unix-user:root Action=org.freedesktop.NetworkManager.settings.* ResultAny=yes ResultInactive=yes ResultActive=yes
The configuration is very readable - it denies access to all users for any action related to Network Manager, and then allows them for members of the
sudo group and the
So (assuming of course your students use unprivileged accounts), you could apply the same restriction to their accounts, while exempting your administrator accounts.
I use this configuration , and only the root user can see the WiFi password. The users can't see the password.
This is the path, I changed the polkit setings
[ users are not able to edit or to see pasword]