I would like to give an ubuntu pc to my children. And since they are quite young (5 and 7) I would like to shut down the Wifi completely for them. However, to update the pc and download applications, I have to activate it from time to time. And then, it remembers the password and connects automatically. Is there a way to either disable the remembering of the wifi-password (I dont want to disable the password-manager completely) or to attach an extra "lock" to it, eg by unmounting/mounting the wifi-adapter with a password? Thanks for your help.
Asked
Active
Viewed 68 times
1
1 Answers
0
You can use iptables
with the owner module , just for their user. The wifi will work for the rest of the system and for all other users. The syntax is:
iptables -A OUTPUT -o wlan0 -m owner --uid-owner USERNAME -j DROP
That would drop all output packages to wlan0 for user USERNAME, effectivly killing internet for them.

Eduardo Trápani
- 1,088
- 1
- 7
- 10
nmcli radio wifi off
startup application? – PRATAP Oct 19 '19 at 14:54