Using Mint 18.3 with Cinnamon I have the following issue:
- beside my own user two other users are beeing offered on the login screen at startup
- changing the login shell in /etc/passwd to /bin/false or to /usr/sbin/nologin does not help although there are a lot more users with these settings which do not appear on the login screen
- opening "Users and Groups" from the settings menu show only the users which appear on the login screen. I don't want to remove them there because I don't know what happens.
How can I remove both unwanted users from the login screen without removing their account ?
Regards
Juergen
How to disable a user for login ?
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
-
- Level 1
- Posts: 29
- Joined: Mon Jan 16, 2012 6:08 am
How to disable a user for login ?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
- Pjotr
- Level 23
- Posts: 19877
- Joined: Mon Mar 07, 2011 10:18 am
- Location: The Netherlands (Holland) 🇳🇱
- Contact:
Re: How to disable a user for login ?
You can safely remove those unwanted accounts with "Users and Groups", provided that none of them was the original admin account with which the system was first installed.
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
Re: How to disable a user for login ?
actually - - you may not be able to remove both unwanted users from the login screen,
- without removing their account .. ..
- without removing their account .. ..
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.
-
- Level 1
- Posts: 29
- Joined: Mon Jan 16, 2012 6:08 am
Re: How to disable a user for login ?
So, who is right? I don't want to experiment by removing users and losing their account.
- catweazel
- Level 19
- Posts: 9763
- Joined: Fri Oct 12, 2012 9:44 pm
- Location: Australian Antarctic Territory
Re: How to disable a user for login ?
Pierre is correct. Pjotr seems to have answered a different question. I do that oftenxtrailrunner wrote:So, who is right? I don't want to experiment by removing users and losing their account.
There is a way to prevent local login for new users, but not for existing users.
If you want to deny local login to new users, see this.
If you simply want to hide user names of people who use the machine without clobbering anything, pick a login theme that doesn't display user names but instead requires you to type your user name.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
Re: How to disable a user for login ?
How to disable a user for login ?
Just change that user password in 'Users and Groups' will do that.
only superuser (root) privilege can do this.
only superuser (root) privilege can do this.
Just change that user password in 'Users and Groups' will do that.
only superuser (root) privilege can do this.
When you remove users using the 'Users and Groups' utility you will have a choice to remove just the user, their folders, and the accounts.I don't want to experiment by removing users and losing their account.
only superuser (root) privilege can do this.
Everything in life was difficult before it became easy.
-
- Level 1
- Posts: 29
- Joined: Mon Jan 16, 2012 6:08 am
Re: How to disable a user for login ?
For example there is a user "Libvirt Qemu". If I press the button "Delete" I get the alert:
Are you sure you want to permanently delete libvirt-qemu and all the files associated with this user?
I don't want to remove the user and his files. I only want to prevent the user from being selectable at the login screen.
Thanks !
Are you sure you want to permanently delete libvirt-qemu and all the files associated with this user?
I don't want to remove the user and his files. I only want to prevent the user from being selectable at the login screen.
Thanks !
Re: How to disable a user for login ?
2 easy methods you can use:
Enter in the terminal (of the main account)
Or you enter
Note, that Mint puts every new account (except the primary) by default into the group nopasswdlogin. You need to remove the user from this group, otherwise he can login without a password. You can do this with Users & Groups.
If you want to check the status of the passwords for the accounts on the system enter
Enter in the terminal (of the main account)
sudo passwd -d user_name
(user_name has to be replaced): The password will get deleted, so the user cannot log in any more.Or you enter
sudo passwd -l user_name
; with this the password gets deactivated, but preserved for later usage. If you want to activate it later again you enter sudo passwd -u user_name
. Advantage: You don't need to tell the user at the later time the new password, he can now use it just as before.Note, that Mint puts every new account (except the primary) by default into the group nopasswdlogin. You need to remove the user from this group, otherwise he can login without a password. You can do this with Users & Groups.
If you want to check the status of the passwords for the accounts on the system enter
sudo passwd -aS
. In the list you get a P for active passwords, L for deactivated passwords and NP for no password set.- catweazel
- Level 19
- Posts: 9763
- Joined: Fri Oct 12, 2012 9:44 pm
- Location: Australian Antarctic Territory
Re: How to disable a user for login ?
That would have been helpful had it been mentioned earlier.xtrailrunner wrote:For example there is a user "Libvirt Qemu". If I press the button "Delete" I get the alert:
Are you sure you want to permanently delete libvirt-qemu and all the files associated with this user?
I don't want to remove the user and his files. I only want to prevent the user from being selectable at the login screen.
Thanks !
See this link.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
-
- Level 1
- Posts: 29
- Joined: Mon Jan 16, 2012 6:08 am
Re: How to disable a user for login ?
OK. Thanks, I could remove libvirt-qemu from the login screen. What about a second user "openkm" with UID 1001 and GID 1001 ?
Should I use the same procedure? The login shell is set to /bin/false but the user still appears on the login screen.
Should I use the same procedure? The login shell is set to /bin/false but the user still appears on the login screen.