LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Gentoo - (didn't add a user when i installed) (https://www.linuxquestions.org/questions/linux-newbie-8/gentoo-didnt-add-a-user-when-i-installed-817842/)

Pale 07-03-2010 12:02 PM

Gentoo - (didn't add a user when i installed)
 
Hello,

I recently installed gentoo following the handbook at www.gentoo.org. However i failed to add a user before i reboot my system.

I try to login as root on gentoo but it fails.

How can I add a user so i can login?

Thanks.

PS. I know Gentoo is a bit harder, but i learn from trial and error. :)

smoker 07-03-2010 12:59 PM

When you boot, you have to interrupt the boot process by pressing any key when grub shows a countdown. Hit a to edit the kernel options and add a space then 1 to the end of the line. Then hit return to continue booting. This will give you a root login where you can use adduser to create a normal user.
Code:

adduser <username>
passwd <username>

follow the prompts, then

Code:

telinit 5
Now login as <username>.

The 1 you added to the kernel options only takes effect on that boot, it is not there the next time.


All times are GMT -5. The time now is 02:51 AM.