PDA

View Full Version : Easy question (just can't recall)



paul.neocune
2022-06-30, 22:46
So recently I had to reinstall Kali and got everything set up pretty quickly and with no trouble at all. However, one thing I just cannot remember where to locate is the option to have the OS remember the usernames (or my username in my case as I am the only user). I remember it was a simple one line addition to a file but for the life of me I cannot remember and when I try searching it on Google (50 different ways), all I get are webpages and help articles on users having issues with the system asking for a username and password over and over without successfully logging in. LOL.

If someone could remind me how to do that it would be so greatly appreciated! Thanks! Stay awesome!

Fred Sheehan
2022-07-03, 13:29
I just create a new user for myself and then delete the default kali account then it only remembers me :)

Add a new User fred, add them to the sudo group and change their default shell to bash..

root@kali:~# useradd -m fred -G sudo -s /bin/bash
root@kali:~# passwd fred
Enter new UNIX password: <password>
Retype new UNIX password: <password>
passwd: password updated successfully

Remove kali user and check account has been removed..

root@kali:~# userdel -r kali
root@kali:~# ls /home

paul.neocune
2022-07-03, 16:18
I thought about that too but all that did was put me in the same exact position. It doesn't remember my username, I have to type it out each time my computer boots. Whatever file I can't remember had me add a line which told the os to remember the username so I only need to type my password in at the start of the Linux session.

Fred Sheehan
2022-07-05, 11:17
settings -> session and start up

uncheck show chooser if its checked..

paul.neocune
2022-07-05, 12:00
That option is not checked.


https://imgur.com/ZnYitML.png

paul.neocune
2022-07-05, 12:15
I found it...

Use your preferred command line editor to edit /etc/lightdm/lightdm.conf and find the line #greeter-hide-users=false and remove the '#' at the beginning of the line then save. If line does not exist, then add it excluding the preceeding symbol.