How do disable user list on login screen? (Prompt for username and password) Ubuntu 15.10

linuxuser

I was curious as to if there is a way to disable the user list on the login screen on Ubuntu 15.10, thus making it so that any user would have to enter their username as well as their password to log in.

I have already modified /etc/lightdm/users.conf by adding...

greeter-show-manual-login=true    
greeter-hide-users=true    
allow-guest=false

... and restarting the computer, but I am only prompted for my password, and my user name is already selected. With that, I also have the ability to use a guest session, even though that shouldn't be allowed with the code above. Any help would be much appreciated.

Terrance

Create a folder in the /etc/lightdm/ folder called lightdm.conf.d:

sudo mkdir -p /etc/lightdm/lightdm.conf.d

Next, create a file and call it 10-ubuntu.conf:

sudo gedit /etc/lightdm/lightdm.conf.d/10-ubuntu.conf

and add the following lines to it:

[SeatDefaults]
user-session=ubuntu
greeter-show-manual-login=true    
greeter-hide-users=true    
allow-guest=false

For 16.04 or newer:

[Seat:*]
user-session=ubuntu
greeter-show-manual-login=true    
greeter-hide-users=true    
allow-guest=false

Change the line user-session= to whatever desktop you are using, like if you are using Xubuntu, change it to user-session=xubuntu.

After these lines are added, reboot host, and you should see login instead of the user list:

enter image description here

https://wiki.ubuntu.com/LightDM shows information about LightDM and that the file user.conf can be ignored if accountservice is running on the host.

Hope this helps!

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

How to disable Windows 10 lock screen password on IDLE only

분류에서Dev

How to disable sleep/suspend at login screen?

분류에서Dev

How can i change activity using login (username and password) ,button ?

분류에서Dev

How to get "ID" of Login form username and password inputs?

분류에서Dev

PHP login "invalid username and password"

분류에서Dev

How login a user on desktop screen using ssh

분류에서Dev

How to return the login screen of the original unity ubuntu?

분류에서Dev

In Windows 10 How To Keep Password Prompt From Appearing On Sleep?

분류에서Dev

How to show on login screen the last login informations (Windows 10)?

분류에서Dev

Screen locker doesn't prompt for password

분류에서Dev

It Automatically select last username on login screen

분류에서Dev

Windows 10 password prompt not showing on startup

분류에서Dev

How to hide password in phonegap prompt

분류에서Dev

How do I prompt a user until they enter a valid integer?

분류에서Dev

ubuntu drop to root shell prompt asks for password

분류에서Dev

Socket.io - How to prompt for username, and save the username in an array?

분류에서Dev

How do I ensure Git doesn't ask me for my GitHub username and password?

분류에서Dev

How do I make a requesocks request with socks5 username and password?

분류에서Dev

Force the user to change their password at first login

분류에서Dev

How to login to a Windows 8 computer with only one user where password is lost

분류에서Dev

How to disable screen dimming in 14.04?

분류에서Dev

How can I disable the automatic login of the last active user in Windows 8.1?

분류에서Dev

Can I create user in Meteor without username or password?

분류에서Dev

How to grab username from the PHP Login Project

분류에서Dev

Ubuntu 18.04 keyboard and mouse not working at login screen

분류에서Dev

Ubuntu Screen rotation of 90° after successful login

분류에서Dev

Ubuntu 18.04 hangs on boot. How can I get back to login screen?

분류에서Dev

How do I access a user input from grunt-prompt in other tasks

분류에서Dev

How do I reset the login password on a Mac OS X guest OS running in VMware Fusion?

Related 관련 기사

  1. 1

    How to disable Windows 10 lock screen password on IDLE only

  2. 2

    How to disable sleep/suspend at login screen?

  3. 3

    How can i change activity using login (username and password) ,button ?

  4. 4

    How to get "ID" of Login form username and password inputs?

  5. 5

    PHP login "invalid username and password"

  6. 6

    How login a user on desktop screen using ssh

  7. 7

    How to return the login screen of the original unity ubuntu?

  8. 8

    In Windows 10 How To Keep Password Prompt From Appearing On Sleep?

  9. 9

    How to show on login screen the last login informations (Windows 10)?

  10. 10

    Screen locker doesn't prompt for password

  11. 11

    It Automatically select last username on login screen

  12. 12

    Windows 10 password prompt not showing on startup

  13. 13

    How to hide password in phonegap prompt

  14. 14

    How do I prompt a user until they enter a valid integer?

  15. 15

    ubuntu drop to root shell prompt asks for password

  16. 16

    Socket.io - How to prompt for username, and save the username in an array?

  17. 17

    How do I ensure Git doesn't ask me for my GitHub username and password?

  18. 18

    How do I make a requesocks request with socks5 username and password?

  19. 19

    Force the user to change their password at first login

  20. 20

    How to login to a Windows 8 computer with only one user where password is lost

  21. 21

    How to disable screen dimming in 14.04?

  22. 22

    How can I disable the automatic login of the last active user in Windows 8.1?

  23. 23

    Can I create user in Meteor without username or password?

  24. 24

    How to grab username from the PHP Login Project

  25. 25

    Ubuntu 18.04 keyboard and mouse not working at login screen

  26. 26

    Ubuntu Screen rotation of 90° after successful login

  27. 27

    Ubuntu 18.04 hangs on boot. How can I get back to login screen?

  28. 28

    How do I access a user input from grunt-prompt in other tasks

  29. 29

    How do I reset the login password on a Mac OS X guest OS running in VMware Fusion?

뜨겁다태그

보관