This is a partial case of the more general question "Don't bother non-admin users with admin questions":
I have several non-admin users on a computer and I want to disable software updates for all of them. I tried this:
# su wife -c gconftool -s --type bool /apps/update-notifier/auto_launch false
X11 connection rejected because of wrong authentication.
X11 connection rejected because of wrong authentication.
X11 connection rejected because of wrong authentication.
X11 connection rejected because of wrong authentication.
(I am logged on to the computer being administered via ssh
).
In newer versions of Ubuntu, there is a (hidden) per-user config option for this.
Just run (as the user for whom you want to disable notifications):
Or, if you prefer doing things visually, run
dconf-editor
, browse to/com/ubuntu/update-notifier
and enable theno-show-notifications
option.(Source)
The solution turned out to be to use
gconftool
to setauto_launch
tofalse
for myself (withoutsudo
) and then to copy the config file to all the other user accounts: