Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
login failed after fresh install [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
kardolus
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2005
Posts: 120
Location: Amsterdam

PostPosted: Wed Apr 13, 2005 2:13 pm    Post subject: login failed after fresh install [solved] Reply with quote

Hello,

I got a strange problem after starting a gentoo2005.0 install from stage 1. When i was done compiling my kernel and writing my lilo i was unable to login after a reboot. My password did not work. I was sure that i did not typed the wrong one:wink:

This is what i did:

I booted the live cd, mounted and went to chroot environment. Then i checked the /etc/shadow file. I did another passwd command and checked my shadow file again. If i changed the password, the shadow changed. I double checked that this was the passwd for my /mnt/gentoo.

So i booted my system again (of course without the live cd), but still with the same problem: login incorrect.

This is what might be the prob:

Maybe the wrong file is checked when i want to login? Maybe the root is not allowed to login? Shell problem?

Please help me out here, I need my cpu to do some C.

I'm new to Gentoo, but not to linux, using it for 5 years now (Debian).

thx,

G

ps. using ReiserFS. Athlon 1400 Mhz. If you want to know moore just post a msg.


Last edited by kardolus on Fri Apr 22, 2005 12:20 am; edited 2 times in total
Back to top
View user's profile Send private message
Gherald
Veteran
Veteran


Joined: 23 Aug 2004
Posts: 1399
Location: CLUAConsole

PostPosted: Wed Apr 13, 2005 2:28 pm    Post subject: Reply with quote

Try adding a user other than root, and logging in that way...
Back to top
View user's profile Send private message
kardolus
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2005
Posts: 120
Location: Amsterdam

PostPosted: Wed Apr 13, 2005 2:47 pm    Post subject: Reply with quote

hehe, it worked, thx Gherald. Can't believe it. Happy. Thx.
Back to top
View user's profile Send private message
Gherald
Veteran
Veteran


Joined: 23 Aug 2004
Posts: 1399
Location: CLUAConsole

PostPosted: Wed Apr 13, 2005 2:52 pm    Post subject: Reply with quote

gpkardol wrote:
hehe, it worked, thx Gherald. Can't believe it. Happy. Thx.

Ok, but this is still strange... you still can't log into the console as root directly?

I'm guessing su works, at least.
Back to top
View user's profile Send private message
kardolus
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2005
Posts: 120
Location: Amsterdam

PostPosted: Wed Apr 13, 2005 4:06 pm    Post subject: Reply with quote

i can do a su after i login as a user.

not able to direcltly login as root


Last edited by kardolus on Sun Apr 17, 2005 12:49 am; edited 1 time in total
Back to top
View user's profile Send private message
genblood
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2003
Posts: 133
Location: New Hampshire

PostPosted: Wed Apr 13, 2005 4:16 pm    Post subject: Reply with quote

Did you try to reset your passwd for root when you accessed
it throught your regular user account using SU?

Try logging into a regular user account and use " su " then
use " passwd root " and give yourself a new root passwd.

then try to login as root and see if that fixes your problem ....
_________________
General Blood ..

Gentoo 2008.0 AMD Phemon X4 9850+ 8GB DDR2 1066
MSI K9A2 Platium Mother Board ATI 4830 PCI-e 512MB
1 Blu-Ray Drive
4 sata WD 500 GB drive
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Wed Apr 13, 2005 5:51 pm    Post subject: Reply with quote

look in /etc/securetty for the terminals on which root is allowed to log in.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
kardolus
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2005
Posts: 120
Location: Amsterdam

PostPosted: Thu Apr 14, 2005 2:30 pm    Post subject: Reply with quote

genblood wrote:
Did you try to reset your passwd for root when you accessed
it throught your regular user account using SU?

Try logging into a regular user account and use " su " then
use " passwd root " and give yourself a new root passwd.

then try to login as root and see if that fixes your problem ....


thx for the tip. Unfortunately it did not work. Still can't login as root directly
Back to top
View user's profile Send private message
kardolus
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2005
Posts: 120
Location: Amsterdam

PostPosted: Thu Apr 14, 2005 2:32 pm    Post subject: Reply with quote

nixnut wrote:
look in /etc/securetty for the terminals on which root is allowed to log in.


that file has one line : tts/0

what does this mean?
Back to top
View user's profile Send private message
kardolus
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2005
Posts: 120
Location: Amsterdam

PostPosted: Thu Apr 14, 2005 2:47 pm    Post subject: Reply with quote

i checked out this thread https://forums.gentoo.org/viewtopic-t-308127-highlight-login+root+directly.html

adding the next lines to /etc/securetty solved the prob for me.


# /etc/securetty: list of terminals on which root is allowed to login.
# See securetty(5) and login(1).
vc/1
vc/2
vc/3
vc/4
vc/5
vc/6
vc/7
vc/8
vc/9
vc/10
vc/11
vc/12
tty1
tty2
tty3
tty4
tty5
tty6
tty7
tty8
tty9
tty10
tty11
tty12
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Mon May 02, 2005 5:51 pm    Post subject: Reply with quote

Please see https://forums.gentoo.org/viewtopic-t-294975.html

Moved from Installing Gentoo.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum