Linux Lite Forums
How to delete user account at login menu? - Printable Version

+- Linux Lite Forums (https://www.freecinema2022.gq/forums)
+-- Forum: General (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=4)
+--- Forum: On Topic (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=14)
+--- Thread: How to delete user account at login menu? (/showthread.php?tid=836)



How to delete user account at login menu? - mpig - 09-13-2014

I want to delete "ampps" and "mysql" account at login menu. I've tried delete it from User Manager but there's only "audi" and "root" account.  :'(

Here's screenshots:

[Image: F0UrSgK4C.jpg]

[Image: HVTbhoYN.jpg]


Re: How to delete user account at login menu? - sonic - 09-13-2014

I can't see a reason that they didn't show up but you can try this from command line.

Code:
sudo deluser newuser

where newuser is the name of the account you want to delete.


Re: How to delete user account at login menu? - Scott(0) - 09-13-2014

Hi Mpig

I assume ampps and mysql are the result of a software package installation? If you didn't remove the sofware do you want to delete those accounts or just have them not appear at login?

I *think* if you append the account name in the /etc/passwd file with
:/user/sbin/nologin
it will prevent the account from displaying at login.

Here's an example from my /etc/passwd file. See how each of these account names end with :/usr/sbin/nologin

mail:x:8:8:mail:/var/mail:/usr/sbin/nologin
news:x:9:9:news:/var/spool/news:/usr/sbin/nologin
games:x:5:60:games:/usr/games:/usr/sbin/nologin


Please be cautious and backup the /etc/passed file first.

~Scott


Re: How to delete user account at login menu? - mpig - 09-13-2014

(09-13-2014, 08:45 AM)sonic link Wrote: I can't see a reason that they didn't show up but you can try this from command line.

Code:
sudo deluser newuser

where newuser is the name of the account you want to delete.

It works! Thanks.  Wink

(09-13-2014, 02:16 PM)Scott(0) link Wrote: Hi Mpig

I assume ampps and mysql are the result of a software package installation? If you didn't remove the sofware do you want to delete those accounts or just have them not appear at login?

I *think* if you append the account name in the /etc/passwd file with
:/user/sbin/nologin
it will prevent the account from displaying at login.

Here's an example from my /etc/passwd file. See how each of these account names end with :/usr/sbin/nologin

mail:x:8:8:mail:/var/mail:/usr/sbin/nologin
news:x:9:9:news:/var/spool/news:/usr/sbin/nologin
games:x:5:60:games:/usr/games:/usr/sbin/nologin


Please be cautious and backup the /etc/passed file first.

~Scott

All i want to do is just to delete that accounts. Since i already removed the app.
But i think i should note your solution, just in case i install this app again. Too many accounts at login menu annoying.
Thank you Scott.  ;D


Re: How to delete user account at login menu? - Scott(0) - 09-13-2014

Smile You're welcom Mpig. Happy to see you got things sorted.