Linux Mint 18.2 disable user list

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
john24
Level 1
Level 1
Posts: 4
Joined: Thu Aug 24, 2017 5:00 am

Linux Mint 18.2 disable user list

Post by john24 » Thu Aug 24, 2017 5:13 am

Hi everyone,

I am using Linux Mint 18.2 (gnome interface) as a client machine for multiple users. But on the boot it shows the list of all the usernames of users that used the machine. I've looking all of the web for a way to disable the user list at the login screen but couldn't find anything that works.

Does anyone what is the best way to disable it?

Thank you :)

User avatar
killer de bug
Level 14
Level 14
Posts: 5403
Joined: Tue Jul 08, 2008 1:49 pm
Location: Graz, Austria

Re: Linux Mint 18.2 disable user list

Post by killer de bug » Thu Aug 24, 2017 5:14 am

You can go for a login screen theme that doesn't display the user list.
Check in the login screen settings.
Image
If it ain't broke, fix it until it is.

john24
Level 1
Level 1
Posts: 4
Joined: Thu Aug 24, 2017 5:00 am

Re: Linux Mint 18.2 disable user list

Post by john24 » Thu Aug 24, 2017 5:57 am

killer de bug wrote:You can go for a login screen theme that doesn't display the user list.
Check in the login screen settings.
In Login Window settings I tried changing things but it didn't change anything sadly :(

User avatar
catweazel
Level 17
Level 17
Posts: 7774
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Linux Mint 18.2 disable user list

Post by catweazel » Thu Aug 24, 2017 6:03 am

client machine
Define 'client machine'. If the users don't log in locally you can create logins that won't show up.
¡uʍop ǝpısdn sı buıɥʇʎɹǝʌǝ os ɐıןɐɹʇsnɐ ɯoɹɟ ɯ,ı

john24
Level 1
Level 1
Posts: 4
Joined: Thu Aug 24, 2017 5:00 am

Re: Linux Mint 18.2 disable user list

Post by john24 » Thu Aug 24, 2017 6:21 am

catweazel wrote:
client machine
Define 'client machine'. If the users don't log in locally you can create logins that won't show up.

It's a Client Machine that authenticates with debian server and mounts directories on the server. It's uses NIS for file mounting.

User avatar
catweazel
Level 17
Level 17
Posts: 7774
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Linux Mint 18.2 disable user list

Post by catweazel » Thu Aug 24, 2017 6:29 am

Code: Select all

boot@Fartblast ~ $ adduser --help
adduser [--home DIR] [--shell SHELL] [--no-create-home] [--uid ID]
[--firstuid ID] [--lastuid ID] [--gecos GECOS] [--ingroup GROUP | --gid ID]
[--disabled-password] [--disabled-login] [--encrypt-home] USER
   Add a normal user

adduser --system [--home DIR] [--shell SHELL] [--no-create-home] [--uid ID]
[--gecos GECOS] [--group | --ingroup GROUP | --gid ID] [--disabled-password]
[--disabled-login] USER
   Add a system user

adduser --group [--gid ID] GROUP
addgroup [--gid ID] GROUP
   Add a user group

addgroup --system [--gid ID] GROUP                                                                                                                             
   Add a system group                                                                                                                                          

adduser USER GROUP
   Add an existing user to an existing group

general options:
  --quiet | -q      don't give process information to stdout
  --force-badname   allow usernames which do not match the
                    NAME_REGEX[_SYSTEM] configuration variable
  --extrausers      uses extra users as the database
  --help | -h       usage message
  --version | -v    version number and copyright
  --conf | -c FILE  use FILE as configuration file

Code: Select all

sudo adduser --disable-login --no-create-home --gecos "<username>" username
¡uʍop ǝpısdn sı buıɥʇʎɹǝʌǝ os ɐıןɐɹʇsnɐ ɯoɹɟ ɯ,ı

john24
Level 1
Level 1
Posts: 4
Joined: Thu Aug 24, 2017 5:00 am

Re: Linux Mint 18.2 disable user list

Post by john24 » Thu Aug 24, 2017 6:37 am

Would this need to be done for every user? It's used at a lab with few hundred users.

User avatar
catweazel
Level 17
Level 17
Posts: 7774
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Linux Mint 18.2 disable user list

Post by catweazel » Thu Aug 24, 2017 6:52 am

Yes, though the logins should have been done this way from the start. However you can do it in this file:

Code: Select all

/etc/security/access.conf
Examples are in the file.

http://manpages.ubuntu.com/manpages/xen ... onf.5.html

Simply deny local login to everyone except root. That won't stop the logins appearing on the screen though. You would have to convert the logins as above, perhaps via a script, and possibly reset all the passwords.
¡uʍop ǝpısdn sı buıɥʇʎɹǝʌǝ os ɐıןɐɹʇsnɐ ɯoɹɟ ɯ,ı

Post Reply

Return to “Newbie Questions”