Skip to content
mbucc edited this page Dec 21, 2014 · 8 revisions

Restore original config file on Ubuntu

From http://askubuntu.com/questions/66533/how-can-i-restore-configuration-files

# dpkg -S unity-greeter.conf
unity-greeter: /etc/lightdm/unity-greeter.conf
# mv /etc/lightdm/unity-greeter.conf /etc/lightdm/unity-greeter.conf.bak 
# apt-get -o Dpkg::Options::="--force-confmiss" install --reinstall unity-greeter

If everything worked as expected, you should get this message:

Configuration file `/etc/lightdm/unity-greeter.conf', does not exist on system. Installing new config file as you requested.

Log Errors

sshd[5801]: syslogin_perform_logout: logout() returned an error

Also, the output of last looks really strange; 44 logins in the same minute?

root@tinyvz:~# last | cut -c1-15,40-  | sort | uniq -c | sort -n | tail -5
   44 root     pts/1 Wed Nov 19 01:18 - 01:18  (00:00)    
   44 root     pts/1 Wed Nov 19 01:21 - 01:21  (00:00)    
   44 root     pts/1 Wed Nov 19 01:22 - 01:22  (00:00)    
   44 root     pts/1 Wed Nov 19 01:53 - 01:53  (00:00)    
   45 root     pts/1 Wed Nov 19 15:36 - 15:36  (00:00)

Something seems screwy with the TTY setup in this environment.