Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
oh my lord this is weird.... login automatically logs me out
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
mmontg1
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jun 2002
Posts: 129

PostPosted: Sat Aug 31, 2002 10:32 pm    Post subject: oh my lord this is weird.... login automatically logs me out Reply with quote

ok... i have a new install of gentoo on a machine. i have installed it on 3 other machine w/ no problems. but after the bootup process, i get a login prompt. ok, so i type "root", ok it says password: i type my password (yes i typed passwd when installing). it says
Code:
login(pam_unix)[2107]: session opened for user root by (uid=0)
Last login: Sat Aug 31 05:09:17 on 1
Login(pam_unix)[2107]: session closed for user root


8O 8O 8O
i'm @ a total loss on this one. i would hugely appreciate some help with this.
thanks in advance
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Sat Aug 31, 2002 10:33 pm    Post subject: Reply with quote

What is root's login shell? It's the last field in the /etc/passwd entry.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
mmontg1
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jun 2002
Posts: 129

PostPosted: Sat Aug 31, 2002 11:27 pm    Post subject: Reply with quote

it's /bin/bash
and /bin/bash exists with 755 permissions fyi.
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Sat Aug 31, 2002 11:32 pm    Post subject: Reply with quote

Can you get back into your computer and chroot?
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
mmontg1
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jun 2002
Posts: 129

PostPosted: Sat Aug 31, 2002 11:53 pm    Post subject: Reply with quote

yep... sure can, actually that's how i'm getting this into from the /etc/password file and such.

thanks a ton for the quick replies so far
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Sun Sep 01, 2002 12:18 am    Post subject: Reply with quote

So, you can chroot /mnt/___ /bin/bash? That means bash isn't broken. Hmm...
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
mmontg1
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jun 2002
Posts: 129

PostPosted: Sun Sep 01, 2002 12:52 am    Post subject: more info Reply with quote

ok, maybe some extra info may help shed some light on this. ok, i'm installing gentoo ON an athlon xp 2100+, 512 mb ram, blah blah. but i'm building it FOR an iopener (iopener has no cdrom). so i have built the system for a 486, and i switch the harddrive back and forth to boot from the cd.

---going to see if i can log in on the box it was built on-------

crap... i can log in on the athlon machine, but when i bring the hard drive to the iopener and boot and try to log in is where the problem lies. god i hope that doesn't effectively end the troubleshooting from ya'lls end.
:cry:
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Sun Sep 01, 2002 2:18 am    Post subject: PAM Reply with quote

Is your PAM configuration OK?

Have you tried to erase root password in /etc/shadow ?

Code:

root::11899:0:::::
Back to top
View user's profile Send private message
mmontg1
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jun 2002
Posts: 129

PostPosted: Sun Sep 01, 2002 2:59 am    Post subject: Reply with quote

i erased and reset the root password, added a user, set his password, powered down, took the hard drive to the iopener, booted up and neither my user name or root can log in, it just accepts the password and logs me back out.
Back to top
View user's profile Send private message
TuxFriend
Apprentice
Apprentice


Joined: 14 Aug 2002
Posts: 151

PostPosted: Sun Sep 01, 2002 3:05 am    Post subject: Reply with quote

Do you have any security enabled in your kernel (grsecurity)?
Please post the result of "ldd /bin/login".
Do you have the same date/time on both boxes? (there is a security option for not allowing to logon after x active/inactive-time)


TuxFriend
Back to top
View user's profile Send private message
mmontg1
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jun 2002
Posts: 129

PostPosted: Tue Sep 03, 2002 3:13 am    Post subject: Reply with quote

ok, security isn't enabled in the kernel,
the date and time for both boxes are pretty close to exact (within 30-45 secs). now the output for "ldd /bin/login" :

libpam_misc.so.0 => /lib/libpam_misc.so.0 (0x40019000)
libpam.so.0 => /lib/libpam.so.0 (0x4001c000)
libdl.so.2 => /lib/libdl.so.2 (0x40025000)
libc.so.6 => /lib/libc.so.6 (0x40029000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Tue Sep 03, 2002 3:49 am    Post subject: Reply with quote

Maybe the shell is dying with an illegal instruction trap...what are the CFLAGS and CXXFLAGS (if different) that you used to build this system?
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
mmontg1
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jun 2002
Posts: 129

PostPosted: Tue Sep 03, 2002 5:34 am    Post subject: Reply with quote

chost="i486-pc-linux-gnu"
cflags="-march=i486 -03 -pipe"
cxxflags="-march=i486 -03 -pipe"
Back to top
View user's profile Send private message
ghost_o
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jul 2002
Posts: 119

PostPosted: Tue Sep 03, 2002 8:39 am    Post subject: Reply with quote

Have you tried this?

http://www.kernel.org/pub/linux/libs/pam/Linux-PAM-html/pam-5.html

This will allow you into single user without a password. If that doesn't work, then I am out of ideas. I am assuming that is a PAM configuration issue. Also, I assume that your machines are on a network, you could setup ssh while it is in the AMD, and log into it remotely while back in the iopener..

-G
Back to top
View user's profile Send private message
mmontg1
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jun 2002
Posts: 129

PostPosted: Tue Sep 03, 2002 6:26 pm    Post subject: Reply with quote

yeah man, i've tried going to single user mode b4, here's the screwed up thing it does when i try that. ok, mine goes to a point that it says
"enter root password for maintainance"
"or hit Control-D For normal startup"

if i type in the root password it enters runlevel 3 and gives me a login prompt... doh
if i type control-d it enters init 3 and gives a login again... !!
i'm gonna boot up via the gentoo cd and try to check the log files, if there are certain log files other than the ones in /var/log/ could someone please point those out to me, cause i'm not aware of them.

thanks for yall's help...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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