4

In the login screen, I see Guest Session and Remote Login.

I don't want these option, How can i remove them from my system and login screen both.

Hrithik Roshan
  • 75
  • 1
  • 2
  • 6
  • See this answer http://askubuntu.com/a/62566/71679 whats missing from that answer would be changing 'greeter-show-remote-login=false' – damien Aug 31 '13 at 06:51

2 Answers2

5

For Guest Session:

For Remote Login:

  1. Open a terminal.

  2. Run the following commands:

    sudo -i                           # to have root privileges
    gedit /etc/lightdm/lightdm.conf   # to edit /etc/lightdm/lightdm.conf file
    
  3. Add this line to the end of the file:

    greeter-show-remote-login=false
    
  4. Save the file and close it.

  5. Restart lightdm service (from tty1 with sudo service lightdm restart) or restart computer.

Radu Rădeanu
  • 169,590
  • What if he would not be using lightdm or using some other display manager? like gdm or xdm? – Saurav Kumar Aug 31 '13 at 07:14
  • @SauravKumar Then you could use Ask Question button and specify your problems. For example: How to remove Guest Session and Remote Login when I use gdm or xdm? The OP said that he uses Ubuntu 13.04 and the default X display manager for Ubuntu 13.04 is lightdm. – Radu Rădeanu Aug 31 '13 at 07:25
  • Thanks for your suggestion. :) If you don't mind will give a minute and visit this link: http://askubuntu.com/questions/337116/ubuntu-opens-in-black-screen-using-lightdm-but-working-when-using-gdm Actually I have posted question, but it didn't catch any visit. I think you would know.. – Saurav Kumar Aug 31 '13 at 07:26
  • does greeter-show-remote-login=fasle disables remote login or just does not display remote login. My purpose is to disable remote login completly. – Hrithik Roshan Aug 31 '13 at 09:13
  • @HrithikRoshan It does both of them. – Radu Rădeanu Aug 31 '13 at 09:47
  • Thanks, I marked this as answer :) Keep Rocking bro. I have another problem, can you help me in this. http://askubuntu.com/questions/339651/after-installing-nvidia-301-again-and-lm-sensor-hddtemp-and-pfsensor-unity-is-lo – Hrithik Roshan Aug 31 '13 at 10:58
  • *I'm facing this error...flow is sas shown below..*

    gravity@gravityeducation:~$ sudo -i [sudo] password for gravity:

    root@gravityeducation:~# gedit /etc/lightdm/lightdm.conf

    ** (gedit:7524): WARNING **: Could not load Gedit repository: Typelib file for namespace 'GtkSource', version '3.0' not found

    (gedit:7524): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

    root@gravityeducation:~#

    – silenTK Apr 01 '14 at 03:33
  • @silenTK That's a problem with your gedit editor. Try anotherone like nano for example. – Radu Rădeanu Apr 01 '14 at 06:13
  • when I open /etc/lightdm/lightdm.conf in gedit, I can see only a blank file, am using(14.04).. Please help me.. – A J Jun 09 '14 at 08:09
1

For remote login, uninstall:

remote-login-service
lightdm-remote-session-freerdp
lightdm-remote-session-uccsconfigure

This will prevent to be prompted to keep/replace your tweaked /etc/lightdm/lightdm.conf when an update to the remote-login-service will be plublished.... because this way, you won't [need to] edit it to make the option disappear from the greeter.

useful
  • 1,834
  • 4
  • 25
  • 32