0

How can I remove the Guest account from my admin account? Because there is no use of have a password for the admin account will the guest is open to anyone.

3 Answers3

0

Open /etc/lightdm/lightdm.conf file from your terminal using the following command

gksudo gedit /etc/lightdm/lightdm.conf

Add the following line

allow-guest=false

Save and exit the file. Restart the machine.

0

To disable Guest-session have to edit lightdm.conf. To do,

open lightdm.conf using any text editor like nano, gedit as follows,

Open terminal(Ctrl+Alt+T) and type the following command(For 12.04 LTS),

$ sudo gedit /etc/lightdm/lightdm.conf

For 14.04 LTS,

$ sudo gedit /usr/share/lightdm/lightdm.conf.d/50-no-guest.conf

And make the text as following,

[SeatDefaults]
greeter-session=unity-greeter
user-session=ubuntu
allow-guest=false

Else simply you can type the following command in terminal(Ctrl+Alt+T),

 $ sudo /usr/lib/lightdm/lightdm-set-defaults -l false

It will automatically do the above said in lightdm.conf.

Update

Also do by opening terminal(Ctrl+Alt+T) and type the following command,

sudo sh -c 'printf "[SeatDefaults]\nallow-guest=false\n" >/usr/share/lightdm/lightdm.conf.d/50-no-guest.conf'

Save the file and restart the system.

A J
  • 11,367
  • 17
  • 44
  • 59
0

Open terminal (ctrl+Alt+T) and enter the command

sudo gedit /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf

Add the following line to that file as last line, save and close.

allow-guest=false

Reboot and see.

Sudheer
  • 5,113
  • 4
  • 24
  • 27