The title says it; I want to prevent users from viewing the wireless network password on Ubuntu. It's easily viewable through the included application called seahorse.

link|improve this question

60% accept rate
feedback

2 Answers

up vote 5 down vote accepted

I assume your users are unprivileged (no sudo etc.).
First delete the connection entry from the users' NetworkManager and delete the WiFi password from the users' keychain. Then log in with privileged account, open Network-Manager, edit the settings for the wireless connection and set it to "Available to all users".
This should allow every user to connect but viewing the password should need authorization with an account from from the "admin" group.

link|improve this answer
feedback

This takes a good bit of mangling the way I would do it. Take managing the wireless card out of userspace utilities(networkmanager/wicd whatever) so it isn't managed any more, remove the credential from gnome-keyring, set it to connect on boot and schedule a cron job to check every X mins if connection is up and bounce the interface if it isn't. last, make sure users can't read the wpasupplicant.conf that holds your password

link|improve this answer
I've no idea if this works, but +1 just as it sounds good ;-) – Arjan Dec 4 '10 at 13:04
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.