View previous topic :: View next topic |
Author |
Message |
mmontg1 Tux's lil' helper
Joined: 21 Jun 2002 Posts: 129
|
Posted: Sat Aug 31, 2002 10:32 pm Post subject: oh my lord this is weird.... login automatically logs me out |
|
|
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
|
i'm @ a total loss on this one. i would hugely appreciate some help with this.
thanks in advance |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Sat Aug 31, 2002 10:33 pm Post subject: |
|
|
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 |
|
|
mmontg1 Tux's lil' helper
Joined: 21 Jun 2002 Posts: 129
|
Posted: Sat Aug 31, 2002 11:27 pm Post subject: |
|
|
it's /bin/bash
and /bin/bash exists with 755 permissions fyi. |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Sat Aug 31, 2002 11:32 pm Post subject: |
|
|
Can you get back into your computer and chroot? _________________ I don't believe in witty sigs. |
|
Back to top |
|
|
mmontg1 Tux's lil' helper
Joined: 21 Jun 2002 Posts: 129
|
Posted: Sat Aug 31, 2002 11:53 pm Post subject: |
|
|
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 |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Sun Sep 01, 2002 12:18 am Post subject: |
|
|
So, you can chroot /mnt/___ /bin/bash? That means bash isn't broken. Hmm... _________________ I don't believe in witty sigs. |
|
Back to top |
|
|
mmontg1 Tux's lil' helper
Joined: 21 Jun 2002 Posts: 129
|
Posted: Sun Sep 01, 2002 12:52 am Post subject: more info |
|
|
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.
|
|
Back to top |
|
|
pilla Bodhisattva
Joined: 07 Aug 2002 Posts: 7729 Location: Underworld
|
Posted: Sun Sep 01, 2002 2:18 am Post subject: PAM |
|
|
Is your PAM configuration OK?
Have you tried to erase root password in /etc/shadow ?
|
|
Back to top |
|
|
mmontg1 Tux's lil' helper
Joined: 21 Jun 2002 Posts: 129
|
Posted: Sun Sep 01, 2002 2:59 am Post subject: |
|
|
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 |
|
|
TuxFriend Apprentice
Joined: 14 Aug 2002 Posts: 151
|
Posted: Sun Sep 01, 2002 3:05 am Post subject: |
|
|
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 |
|
|
mmontg1 Tux's lil' helper
Joined: 21 Jun 2002 Posts: 129
|
Posted: Tue Sep 03, 2002 3:13 am Post subject: |
|
|
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 |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Tue Sep 03, 2002 3:49 am Post subject: |
|
|
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 |
|
|
mmontg1 Tux's lil' helper
Joined: 21 Jun 2002 Posts: 129
|
Posted: Tue Sep 03, 2002 5:34 am Post subject: |
|
|
chost="i486-pc-linux-gnu"
cflags="-march=i486 -03 -pipe"
cxxflags="-march=i486 -03 -pipe" |
|
Back to top |
|
|
ghost_o Tux's lil' helper
Joined: 10 Jul 2002 Posts: 119
|
Posted: Tue Sep 03, 2002 8:39 am Post subject: |
|
|
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 |
|
|
mmontg1 Tux's lil' helper
Joined: 21 Jun 2002 Posts: 129
|
Posted: Tue Sep 03, 2002 6:26 pm Post subject: |
|
|
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 |
|
|
|