Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 26th January 2012, 09:58 AM
rmet0815 Offline
Registered User
 
Join Date: Jan 2012
Location: Netherlands
Posts: 1
linuxfirefox
Disable automatic updates for ALL users

Fedora does automatically update the system once you log into the graphic environment - which we occasionally use from some (reporting) tools. Now I know that you can disable the automatic updates on a per users basis with "Other -> Software Settings" (or gpk-prefs on the commandline). But we want to disable this for ALL users, so that either it is a) disabled at all or b) it defaults to "all off" (never check, update nothing) so that a user has to actively enable it.

Is this possible? Is there a config file for this?

Any help would be greatly appreciated.

ps: it was suggested to use "/etc/yum/pluginconf.d/refresh-packagekit.conf", but according to the rpm it only udpates status, not blocking the update.
Reply With Quote
  #2  
Old 31st May 2012, 03:22 AM
cnzhangquan Offline
Registered User
 
Join Date: Jun 2010
Posts: 11
linuxfirefox
Re: Disable automatic updates for ALL users

i don't like it auto update.

i will do it myself when i need
Reply With Quote
  #3  
Old 5th March 2013, 11:38 PM
RayMikkelson Offline
Registered User
 
Join Date: Mar 2013
Location: Palatine
Posts: 3
windows_7firefox
Re: Disable automatic updates for ALL users

I'm running F17. Does anyone know how to disable automatic updates for a given box (for all users)?

I'm running many Fedora desktops in a corporate environment and need control of when updates occur on my network. Kernel updates occasionally break our tools and we want control over when updates happen.
Reply With Quote
  #4  
Old 6th March 2013, 03:16 AM
sidebrnz's Avatar
sidebrnz Offline
Registered User
 
Join Date: Oct 2007
Location: Freedonia
Age: 63
Posts: 2,104
linuxfirefox
Re: Disable automatic updates for ALL users

Uninstall the software updater. Then, you can use yum to update when and if you need it.
__________________
Registered Linux user #470359 and permanently recovered BOFH.

Any advice in this post is worth exactly what you paid for it.
Reply With Quote
  #5  
Old 6th March 2013, 04:57 AM
dobbi Offline
Registered User
 
Join Date: Jan 2011
Posts: 68
windows_7firefox
Re: Disable automatic updates for ALL users

Assuming you are using PackageKit have you tried setting the preferences?

Code:
su -
/usr/bin/gpk-prefs


---------- Post added at 05:48 AM ---------- Previous post was at 05:13 AM ----------

https://access.redhat.com/knowledge/...ackageKit.html

Oops, on a global scale, I believe PolicyKit was meant to do just that, PackageKit will ask SeLinux if it can run first, so you probably has to change that policy.

https://access.redhat.com/knowledge/...face-0011.html
https://fedoraproject.org/wiki/SELinux
https://docs.fedoraproject.org/en-US...l/SELinux_FAQ/
http://magazine.redhat.com/2007/08/2...policy-module/
http://wiki.centos.org/HowTos/SELinux

Unfortunately this is just my guess, I don't really know how to do what you want, I know I would start looking at that and trying to set the preferrences of the user first to see if it blocks everybody.

However I took a brief look at the system-config-selinux that comes with policycoreutils-gui and seems easier than trying to change the policies directly.

---------- Post added at 05:57 AM ---------- Previous post was at 05:48 AM ----------

http://sayamindu.randomink.org/soc/d...ent_guide.html

Using GConf for Gnome also may be possible to lockdown certain features.

And there is this PDF that the guy who posted said from page 10 forward explains how to lockdown a system.

http://www.centos.org/docs/4/pdf/rhd-dg-en.pdf

Source:
http://serverfault.com/questions/292...ccess-in-linux
Reply With Quote
  #6  
Old 6th March 2013, 05:32 PM
RayMikkelson Offline
Registered User
 
Join Date: Mar 2013
Location: Palatine
Posts: 3
linuxfirefox
Re: Disable automatic updates for ALL users

Thanks for the replies.

What package are you referring to as the "software updater?". I tried removing PackageKit itself, but then yum wants to remove an additional 20 packages, some of which I want to keep, such as gdm, gnome-shell, etc. I've seen other threads that imply you cannot remove PackageKit when using the later Fedora releases.

Running gpk-prefs, while it might work, I would need to run it for all users on my network (>100 folks), so that's not an attractive solution. Besides, not everyone runs gnome (I have KDE & LXDE users as well).

Right now, I'm considering removing gnome-packagekit (for the gnome users) and apper (for the KDE users) and ?? for LXDE...

However, I've seen packagekitd running on a newly installed box when no one has logged into it yet (other than ssh'ing in (no GUI)). So, I'm guessing that there are other triggers that start packagekitd besides a when a user is logged in via a GUI (gnome, KDE, etc.). Unfortunately, I've not figured out what those other triggers might be...
Reply With Quote
  #7  
Old 6th March 2013, 06:47 PM
sidebrnz's Avatar
sidebrnz Offline
Registered User
 
Join Date: Oct 2007
Location: Freedonia
Age: 63
Posts: 2,104
linuxfirefox
Re: Disable automatic updates for ALL users

It is, I'll grant, hard to remove PackageKit (or preupgrade) if you're running Gnome. I migrated to Xfce just before Gnome 3 came out and, once I'd switched to lightdm I had no trouble whatsoever removing them. YMMV, of course, and probably does.

As far as finding out what starts packagekitd, try this:

systemctl status packagekitd.service

and, if it doesn't report "no file or directory," it's probably started at boot. BTW, you don't need root for that command, although if you want to change a setting you will.
__________________
Registered Linux user #470359 and permanently recovered BOFH.

Any advice in this post is worth exactly what you paid for it.
Reply With Quote
  #8  
Old 7th March 2013, 01:46 AM
cazo Offline
Registered User
 
Join Date: Sep 2005
Location: Redneck Riviera
Posts: 333
linuxchrome
Re: Disable automatic updates for ALL users

I believe you can do this with an override file. The idea is to create a file called, for example, /usr/share/glib-2.0/schemas/org.gnome.settings-daemon.plugins.updates.gschema.override containing:
Code:
[org.gnome.settings-daemon.plugins.updates]
active=false
Then, execute
Code:
glib-compile-schemas /usr/share/glib-2.0/schemas
This should prevent any later updates from undoing it.

Fedora 17 installs two override files (for the login screen background & the desktop background). By comparing these to the regular schema .xml files, it should make more sense.

Of course, you can also do it the "easy" way of modifying the file /usr/share/glib-2.0/schemas//org.gnome.settings-daemon.plugins.updates.gschema.xml (which is part of the gnome-settings-daemon package).

Update: This is how the kickstart file /usr/share/spin-kickstarts/fedora-live-desktop.ks does it for the LiveCD.

Last edited by cazo; 9th March 2013 at 09:41 AM. Reason: update
Reply With Quote
  #9  
Old 7th March 2013, 02:42 AM
dobbi Offline
Registered User
 
Join Date: Jan 2011
Posts: 68
windows_7firefox
Re: Disable automatic updates for ALL users

Quote:
Originally Posted by RayMikkelson View Post
Thanks for the replies.

What package are you referring to as the "software updater?". I tried removing PackageKit itself, but then yum wants to remove an additional 20 packages, some of which I want to keep, such as gdm, gnome-shell, etc. I've seen other threads that imply you cannot remove PackageKit when using the later Fedora releases.

Running gpk-prefs, while it might work, I would need to run it for all users on my network (>100 folks), so that's not an attractive solution. Besides, not everyone runs gnome (I have KDE & LXDE users as well).

Right now, I'm considering removing gnome-packagekit (for the gnome users) and apper (for the KDE users) and ?? for LXDE...

However, I've seen packagekitd running on a newly installed box when no one has logged into it yet (other than ssh'ing in (no GUI)). So, I'm guessing that there are other triggers that start packagekitd besides a when a user is logged in via a GUI (gnome, KDE, etc.). Unfortunately, I've not figured out what those other triggers might be...
Since you are talking multiple desktop manager you need to find the one thing that all of them have.

Probably is SELinux and FreeIPA, you can craft a policy to limit user access to it so only root will be able to update those systems and distribute that policy to every client.

https://docs.fedoraproject.org/en-US...x-mapping.html


There is also TOMOYO.
https://en.wikipedia.org/wiki/TOMOYO_Linux (which seems easier, but don't take my word for it)

---------- Post added at 03:42 AM ---------- Previous post was at 03:26 AM ----------

It may also be possible to use the firewall to block access as another layer.

You can even use this cool open source network simulator to play around while trying to figure it out. Ok I will stop now.
http://www.gns3.net/
Reply With Quote
  #10  
Old 11th March 2013, 09:06 PM
RayMikkelson Offline
Registered User
 
Join Date: Mar 2013
Location: Palatine
Posts: 3
linuxfirefox
Re: Disable automatic updates for ALL users

Thanks to everyone for their responses.

What I've decided to do is to:

Quote:
yum -y remove gnome-packagekit apper
I'm hoping that the yum command that runs at boot is triggered by gdm being started up on the console, and removing gnome-packagekit will take care of that scenario.

Most of the suggestions are gnome-centric, and I have users using other window managers, so they don't take care of the entire problem. For simplicity, I'm not running SELinux, so the PolicyKit/SELinux ideas won't work for my situation. Can't uninstall PackageKit.

I'll let you know if that does the trick...
Reply With Quote
Reply

Tags
automatic, disable, updates, users

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I disable automatic updates in Fedora 10? joe.pelayo Using Fedora 9 26th February 2010 11:32 PM
Disable Automatic Login? murof Using Fedora 2 12th December 2008 04:27 PM
Disable automatic ISP boot up connect SteveE Servers & Networking 1 17th September 2005 12:28 AM


Current GMT-time: 20:35 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat