LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Login problems (https://www.linuxquestions.org/questions/linux-newbie-8/login-problems-85976/)

walsht3108 08-26-2003 02:58 PM

Login problems
 
I have for the first time got Linux Red Hat 9 to run. After everything was initialized. It is now asking me for a

localhost login:
I did not set any passwords and dont remember using a login name. Any advice

DrOzz 08-26-2003 03:04 PM

well if you didn't make any users in the installation then:
type root as the login
and then type your root password, and if you don't remember doing that, then you most likely didn't provide a password, which in turn means its blank, and then that means just hit enter when prompted for a password..

david_ross 08-26-2003 03:04 PM

Follow these steps to reset your root password:
1) Reboot your computer.
2) When the grub bootloader appears on the screen select the entry for your linux system - it may be the only one.
3) Press the "e" key to edit the entry.
4) Select the line beggining with "kernel".
5) Press the "e" key again
6) Type " single" no quotes
7) Press enter
8) Press "b" to boot
9) When the prompt appears type "passwd" press enter
10) Enter a new password when prompted
11) Reboot by typing "shutdown -r now"

Then login as root and create new users with the "adduser" command.

walsht3108 08-26-2003 03:08 PM

Thanks Dr Ozz

I got past that now I have [root@localhost root]#
What is it lookiong for here

DrOzz 08-26-2003 03:16 PM

now you can add a normal user by typing:
adduser
then it will prompt you for a login name and password and other easy to answer questions such as the users name and such....
so for instance lets just say if you named the login walsht you get then type:
su walsht
and then you can type:
startx
and this will bring you to the X Window System based on if you installed it :D

Skyline 08-26-2003 03:55 PM

........... And if you want to boot into X each time you boot up:

Open a terminal

su
root password

kedit /etc/inittab

Look for the line near the top that says:

id:3:initdefault:

change the 3 to a 5 - so you now have

id:5:initdefault:

save the file and reboot - you'll now reboot into an X login and graphical session


All times are GMT -5. The time now is 12:31 AM.