3

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).

2 Answers 2

3

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):

gsettings set com.ubuntu.update-notifier no-show-notifications true

Or, if you prefer doing things visually, run dconf-editor, browse to /com/ubuntu/update-notifier and enable the no-show-notifications option.

(Source)

1

The solution turned out to be to use gconftool to set auto_launch to false for myself (without sudo) and then to copy the config file to all the other user accounts:

for u in wife ${kids}; do 
  cp -fv /home/me/.gconf/apps/update-notifier/%gconf.xml /home/$u/.gconf/apps/update-notifier/%gconf.xml
  chown -v $u:$u /home/$u/.gconf/apps/update-notifier/%gconf.xml
done

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .