Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
mitjab@server:/etc/update-motd.d$ dir
00-header  10-help-text  91-release-upgrade  98-fsck-at-reboot  99-footer
mitjab@server:/etc/update-motd.d$

i need to remove all auto updates or notifiers in my ubuntu server becouse it is to slow. How can i remove or disable it. Now when i login to server it takes 30s to see server when i write username and passwd.

How can i disable all this..

if i run

mitjab@server:/etc/update-motd.d$ update-motd --disable
/usr/bin/python: can't find '__main__' module in '/usr/share/command-not-found'
share|improve this question

In the files /etc/pam.d/login and /etc/pam.d/sshd cut out the string «session optional pam_motd.so»

share|improve this answer

You can remove execute permission:

chmod -x /etc/update-motd.d/*
share|improve this answer
  • There may be the update-motd package was installed with OS installation. You can remove whole package with this command: apt-get remove --purge update-motd in debian and derivatives. You must find out how to remove it from your OS if you don't using a debian derivative.

  • If you think you did not install anything for motd or you culd not remove that you can check for session optional pam_motd.so line in /etc/pam.d/sshd and /etc/pam.d/login. Remove line from those files if exist in any.

  • Or if you don't want remove anything, you can change files mode to 600 in /etc/update-motd.d/* folder. Folder path might be differs according to your distro.

share|improve this answer
1  
mitjab@server:/etc/update-motd.d$ sudo apt-get remove --purge update-motd [sudo] password for mitjab: Reading package lists... Done Building dependency tree Reading state information... Done Package update-motd is not installed, so not removed 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. – senzacionale Jan 7 '12 at 14:17
    
it is not installed yet – senzacionale Jan 7 '12 at 14:17

use dpkg to list what has put things in your motd:

dpkg -S /etc/update-motd.d/

uninstall it with apt-get:

(for example)
sudo apt-get remove --purge update-manager-core
sudo apt-get remove --purge landscape-common
sudo apt-get remove --purge update-notifier-common
share|improve this answer

You must log in to answer this question.

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