Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot login - password isn't asked for [solved]
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
bur
Apprentice
Apprentice


Joined: 20 Feb 2004
Posts: 229

PostPosted: Wed Jun 21, 2006 9:22 pm    Post subject: Cannot login - password isn't asked for [solved] Reply with quote

When booting Gentoo I suddenly wasn't able anymore to login. Normally KDE should load and show the login box, but now only the console login was shown and when I enter a username nothing happens, while normally it should ask for the password. Instead of that after 10-20 secs the user name prompt shows up again.

I fear the reason for this is that I unmerged pam-login. I did this because an "emerge -u system" complained about pam-login blocking another needed package. I thought maybe pam-login was replaced by another package and unmerged it. After rebooting I wasn't able to login anymore.

Is really the missing pam-login the problem? And if so, what can I do to reinstall it not that I cannot login to the system?

Any help is greatly appreciated.


Last edited by bur on Thu Jun 22, 2006 12:17 am; edited 1 time in total
Back to top
View user's profile Send private message
rockfly12
Tux's lil' helper
Tux's lil' helper


Joined: 24 Aug 2005
Posts: 95
Location: New Hampshire

PostPosted: Wed Jun 21, 2006 9:40 pm    Post subject: Reply with quote

I believe pam-login was included in the new version of shadow. After you removed pam-login did you run the update on your system? Are you able to boot into single user mode?
Back to top
View user's profile Send private message
bur
Apprentice
Apprentice


Joined: 20 Feb 2004
Posts: 229

PostPosted: Wed Jun 21, 2006 9:48 pm    Post subject: Reply with quote

No, I didn't emerge shadow, which was a mistake...

Now I'm trying to boot into signle user mode, but no success so far. I tried appending '1' or 'softlevel=single' (without the ') to the grub commandline but though it says now: "Entering Runlevel 1" on booting I still get the broken login prompt.
Back to top
View user's profile Send private message
bur
Apprentice
Apprentice


Joined: 20 Feb 2004
Posts: 229

PostPosted: Wed Jun 21, 2006 10:03 pm    Post subject: Reply with quote

Adding "init=/bin/bash" also didn't help as that way I got a read-only mounted root and wasn't able to emerge pam-login. Is there no way to boot without login with genkernel?
Back to top
View user's profile Send private message
adnoh
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jul 2005
Posts: 120

PostPosted: Wed Jun 21, 2006 10:23 pm    Post subject: Reply with quote

i have several problems.
i've updatet just some system packages and now i'm unable to login to my box.
but the strange thing is - after booting it works for a while, just some time later I can't login.
It shows the Login prompt and after I entered my username nothing happens or sometimes the
password prompt comes out, and after I entered my password the login program seems to hang !? :?

if I use the login applet from busybox it seems to work ???

and if I wan't to start some initscripts (i guess they all use pam - maybe PAM is the problem here ?) they also hang, but just some scripts !?!?
is there any way to check what's going on at this time !? some debug mode or logging to see what `login` does !?

i've done the update from pam-login -> shadow a long time ago, so this can't be the problem, can it ?

maybe somebody has a hint for me !?

@bur
when you have a readonly root do a
Code:
mount / -o remount,rw

after that you should have mounted it read/writeable
_________________
the german dude with the broken english
Back to top
View user's profile Send private message
rockfly12
Tux's lil' helper
Tux's lil' helper


Joined: 24 Aug 2005
Posts: 95
Location: New Hampshire

PostPosted: Wed Jun 21, 2006 10:48 pm    Post subject: Reply with quote

bur,

I dont think you should get a login prompt when you boot single user. Try appending either "-s" or "single" to the end of the kernel line (without the quotes). For example:

kernel /boot/kernel-genkernel-x86-2.6.16-gentoo-r7 real_root=/dev/sda3 -s

The only other thing I can think of is boot off the live cd, mount your drives, chroot to your environment, and emerge what you need (I think updating shadow would do the trick).
Back to top
View user's profile Send private message
bur
Apprentice
Apprentice


Joined: 20 Feb 2004
Posts: 229

PostPosted: Wed Jun 21, 2006 11:18 pm    Post subject: Reply with quote

rockfly12,
that doesn't work with the gentoo kernel. The gentoo wiki said using softlevel=single or simply 1 should work. But for some reason though this boots to runlevel 1 it still shows the login prompt

I will try the init=bin/bash method now and hopefully will be able to remerge pam-login then. Maybe I'll even be able to emerge shadow, but I need to get the internet connection working for that and I'm not sure if that works when booting directly to the shell.
Back to top
View user's profile Send private message
bur
Apprentice
Apprentice


Joined: 20 Feb 2004
Posts: 229

PostPosted: Thu Jun 22, 2006 12:22 am    Post subject: Reply with quote

I finally solved the problem. Here's what I did in case someone else has this problem, too:

1) To skip the login prompt we boot directly to the shell by adding this to the kernel commandline:

init=/bin/bash

2) after booting we need to remount root as rw:

mount / -o remount,rw

3) now we need internet access. first change the runlevel to default:

rc default

4) it will give an error and say to mount proc:

mount -t proc proc /proc

5) now start the ethernet connection:

/etc/init.d/net.eth0 start (if it says, already started, first stop it: "..../net.eth0 stop", then start)

6) finally emerge shadow:

emerge -av shadow

7) reboot and you're done:

reboot


Last edited by bur on Thu Jun 22, 2006 10:43 am; edited 1 time in total
Back to top
View user's profile Send private message
xPAGANx
Tux's lil' helper
Tux's lil' helper


Joined: 08 Oct 2003
Posts: 93
Location: Warren, Michigan

PostPosted: Thu Jun 22, 2006 1:16 am    Post subject: Reply with quote

bur wrote:
I finally solved the problem. Here's what I did in case someone else has this problem, too:

1) To skip the login prompt we boot directly to the shell by adding this to the kernel commandline:

init=/bin/bash

2) after booting we need to remount root as rw:

mount / -o remount,rw

3) now we need internet access. first change the runlevel to default:

rc default

4) it will give an error and say to mount proc:

mount -proc proc /proc

5) now start the ethernet connection:

/etc/init.d/net.eth0 start (if it says, already started, first stop it: "..../net.eth0 stop", then start)

6) finally emerge shadow:

emerge -av shadow

7) reboot and you're done:

reboot


I am glad you posted this. I am about to reboot lol.
Back to top
View user's profile Send private message
Pat-rizio
n00b
n00b


Joined: 05 Apr 2004
Posts: 69

PostPosted: Thu Jun 22, 2006 7:00 am    Post subject: Reply with quote

I think step n.4 should be
Code:
mount -t proc proc /proc

instead of
Code:
mount -proc proc /proc

Anyway, very good post bur! Now I know how to enter my box without livecd!! :D
Back to top
View user's profile Send private message
adnoh
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jul 2005
Posts: 120

PostPosted: Thu Jun 22, 2006 9:21 am    Post subject: Reply with quote

how can i prevent this.
I mean it should not be possible to boot my box without beeing asked for a pass !?
_________________
the german dude with the broken english
Back to top
View user's profile Send private message
bur
Apprentice
Apprentice


Joined: 20 Feb 2004
Posts: 229

PostPosted: Thu Jun 22, 2006 10:49 am    Post subject: Reply with quote

pat-rizio, thanks, I corrected it.

adnoh,
I think you have to set a password for Grub to prevent this method.

On the other hand, it only works if someone has physical access to your box. And in that case he can also use a live cd to access your system. So setting a BIOS password is the thing you need to do if you worry about someone having physical access. Extra security can be gained by securing Grub, but again a live cd could be used.
Back to top
View user's profile Send private message
adnoh
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jul 2005
Posts: 120

PostPosted: Thu Jun 22, 2006 11:08 am    Post subject: Reply with quote

ok ... then I'm going to use dm-crypt - LUKS.
Should do the stuff for me.

Anybody a hint about my login problems mentioned above?
_________________
the german dude with the broken english
Back to top
View user's profile Send private message
bur
Apprentice
Apprentice


Joined: 20 Feb 2004
Posts: 229

PostPosted: Thu Jun 22, 2006 11:17 am    Post subject: Reply with quote

Maybe try remerging shadow with all dependencies? That's just a wild guess, but as you did help me quite a lot with that remount as rw command, I wanted to give it a try... :)
Back to top
View user's profile Send private message
prince.of.bb
n00b
n00b


Joined: 22 Jun 2006
Posts: 12
Location: India

PostPosted: Thu Jun 22, 2006 10:45 pm    Post subject: not able to login using init=/bin/bash Reply with quote

i had the same problem
so i tried booting with init=/bin/bash
but it still stucks at login prompt
but from what i gathered from your solution is the necessity to emerge shadow
so i used my live cd, chrooted to /mygentoo, set-up eth0/route etc. and emerged shodow

going for a reboot now, hopefully it will work :?

~S
_________________
~S
Back to top
View user's profile Send private message
frozenJim
Guru
Guru


Joined: 18 Jun 2004
Posts: 341
Location: Montreal, Quebec, Canada

PostPosted: Fri Jul 07, 2006 2:35 pm    Post subject: Reply with quote

Oh that is one SWEET solution to a login problem. It worked as advertised for me EXCEPT that I had no network connection. Error said that the boot runlevel had to complete first. So I used this to solve it:
Code:
# rc default
 ...
# rc boot
 ...
# rc default
 ...
# /etc/init.d/net.eth0 start

After THAT I was able to emerge shadow.

adnoh wrote:
how can i prevent this.
I mean it should not be possible to boot my box without beeing asked for a pass !?

You know, I think that you should consider that the security of your box is only as good as the "brick and lock" that protect it physically. Depending on your requirements, get a lock or an armed guard. But ensuring that no matter what you do wrong, you can NEVER get back into your server - that just seems dangerous.

I have found that there are two, distinct levels of security: software and hardware. Hardware can ALWAYS be tampered with - no matter what encryptions you have in place. Think how simple it would be do drop in a "shadow" hard drive into your machine by a janitor... Physical security is a must if you are worried about this kind of attack.

The rule is always the same: "Consider the resources that your attacker is prepared to use against you". In one company that I ran servers for, we had to consider folks like Greenpeace or such who might actually hire a night janitor to actually come in and swap our Hard Drives. In that company, the armed guards were far more effective than anything else might have been. Another company actually went to the length of building a steel cage around the server room to prevent "drive right through the wall" attack.

This little "back door" is great for those times when something unforseen happens. You wouldn't want to disable it completely.
_________________
Who controls the past, controls the future. Who controls the present, controls the past.
Back to top
View user's profile Send private message
fstephens
n00b
n00b


Joined: 15 Jan 2004
Posts: 50
Location: Los Angeles

PostPosted: Tue Mar 20, 2007 9:37 pm    Post subject: Unable to login Reply with quote

I recently tried to update my MythTV box after months of not using it. Needless to say there were lots of updates available. There was a problem with some PAM-??? ebuild that was blocking something else (sorry for the lack of details - I am not on that box at the moment).
Anyway, I unthinkingly removed this PAM-??? ebuild to do the updates. Now of course I cannot log in. I have tried booting in single mode but that didn't work. Also tried booting off a live CD and chroot into the Gentoo install to emerge PAM, hoping that would pull in the missing program as a dependency. Emerge wouldn't run complete however.

Before I give up and try KnoppMyth again on this box, can anyone help me?

Thanks!
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Tue Mar 20, 2007 9:54 pm    Post subject: Reply with quote

Is shadow installed?

If so, login to a chroot using a LiveCD and:
Code:

emerge --unmerge shadow && emerge pam-login

_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
fstephens
n00b
n00b


Joined: 15 Jan 2004
Posts: 50
Location: Los Angeles

PostPosted: Wed Mar 21, 2007 2:17 am    Post subject: Reply with quote

Thanks for the tip. Unfortunately it didn't work for me. There was no package "pam-login". The online database at gentoo.org didn't show it either.
I did recompile pam by emerging the update. Still can't login however.
What happens is I enter my user name (or root) at the login prompt, but after a few seconds I am right back there. Never asks for a password or gives any error message.
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Wed Mar 21, 2007 2:27 pm    Post subject: Reply with quote

Ok let's try another tact:
Code:

emerge -C pam && USE="debug" emerge pam

from the LiveCD. Try logging in and see if an error is returned.

If that doesn't work, I need a list of installed packages. Try:
Code:

equery list world

_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
fstephens
n00b
n00b


Joined: 15 Jan 2004
Posts: 50
Location: Los Angeles

PostPosted: Wed Mar 21, 2007 6:38 pm    Post subject: Reply with quote

Well, I still got the same results. "equery list world" didn't show any packages so I used "equery list". I then did the same on my main Gentoo system and then used grep to see the pam packages installed. The only possibly relevant one missing on the MythTV box seemed to be dev-perl/Authen-PAM, so I emerged that. Still no change.

Here is the results of "equery list":
Code:

 * installed packages
app-admin/eselect-1.0
app-admin/eselect-mysql-1.1.0
app-admin/eselect-opengl-1.0.3
app-admin/perl-cleaner-1.01
app-admin/syslog-ng-1.6.9
app-arch/bzip2-1.0.3-r6
app-arch/cpio-2.6-r5
app-arch/gzip-1.3.5-r8
app-arch/rpm2targz-9.0-r3
app-arch/tar-1.15.1-r1
app-arch/unzip-5.52
app-crypt/hashalot-0.3-r1
app-editors/nano-1.3.9
app-i18n/kakasi-2.3.4
app-misc/ca-certificates-20050804
app-misc/lirc-0.8.0
app-misc/mc-4.6.1
app-misc/pax-utils-0.1.15
app-portage/gentoolkit-0.2.1
app-shells/bash-3.0-r12
app-text/html2text-1.3.2
app-text/poppler-0.5.0-r5
dev-db/mysql-4.1.19
dev-lang/nasm-0.98.39-r3
dev-lang/perl-5.8.7-r3
dev-lang/python-2.4.2
dev-lang/swig-1.3.21
dev-libs/expat-1.95.8
dev-libs/glib-1.2.10-r5
dev-libs/glib-2.8.6
dev-libs/libol-0.3.17
dev-libs/libusb-0.1.10a
dev-libs/libxml2-2.6.23
dev-libs/openssl-0.9.7e-r2
dev-libs/popt-1.7-r1
dev-perl/Archive-Tar-1.28
dev-perl/Archive-Zip-1.16
dev-perl/Class-MethodMaker-2.08
dev-perl/Compress-Zlib-1.41
dev-perl/Crypt-SSLeay-0.51
dev-perl/DBD-mysql-2.9007
dev-perl/DBI-1.50
dev-perl/DateManip-5.44
dev-perl/Digest-HMAC-1.01-r1
dev-perl/Digest-SHA1-2.11
dev-perl/Email-Find-0.09
dev-perl/Email-Valid-0.15-r1
dev-perl/Exporter-Lite-0.01
dev-perl/HTML-Element-Extended-1.13
dev-perl/HTML-FromText-2.05
dev-perl/HTML-LinkExtractor-0.13
dev-perl/HTML-Parser-3.48
dev-perl/HTML-TableExtract-2.06
dev-perl/HTML-Tagset-3.10
dev-perl/HTML-Tree-3.19.01
dev-perl/HTTP-Cache-Transparent-0.6
dev-perl/IO-Socket-INET6-2.51
dev-perl/IO-Socket-SSL-0.97
dev-perl/IO-String-1.08
dev-perl/IO-Zlib-1.04
dev-perl/IO-stringy-2.110
dev-perl/Lingua-EN-Numbers-Ordinate-1.02
dev-perl/Lingua-Preferred-0.2.4
dev-perl/Locale-gettext-1.05
dev-perl/Log-TraceMessages-1.4
dev-perl/MIME-Lite-3.01
dev-perl/MIME-tools-5.417
dev-perl/MailTools-1.67
dev-perl/Net-DNS-0.53-r1
dev-perl/Net-Daemon-0.38
dev-perl/Net-Domain-TLD-1.62
dev-perl/Net-IP-1.24
dev-perl/Net-SSLeay-1.25
dev-perl/PlRPC-0.2018
dev-perl/SOAP-Lite-0.60a-r1
dev-perl/Socket6-0.17
dev-perl/Term-ProgressBar-2.09
dev-perl/TermReadKey-2.30
dev-perl/Text-Iconv-1.4
dev-perl/Text-Kakasi-2.04
dev-perl/Tie-IxHash-1.21-r1
dev-perl/Tk-TableMatrix-1.2
dev-perl/URI-1.35
dev-perl/Unicode-String-2.07
dev-perl/WWW-Mechanize-1.16
dev-perl/XML-Filter-BufferText-1.01
dev-perl/XML-Handler-YAWriter-0.23-r1
dev-perl/XML-LibXML-1.58-r1
dev-perl/XML-LibXML-Common-0.13
dev-perl/XML-NamespaceSupport-1.09
dev-perl/XML-Parser-2.34
dev-perl/XML-SAX-0.13
dev-perl/XML-SAX-Writer-0.44-r1
dev-perl/XML-Twig-3.22
dev-perl/XML-Writer-0.600
dev-perl/XML-XPath-1.13
dev-perl/libwww-perl-5.803-r1
dev-perl/libxml-perl-0.08
dev-perl/module-build-0.26.11
dev-perl/perl-tk-804.027
dev-perl/yaml-0.39
dev-python/pycrypto-2.0.1-r5
dev-python/python-fchksum-1.7.1
dev-util/dialog-1.0.20050206
dev-util/intltool-0.34.1
dev-util/pkgconfig-0.20
kde-base/arts-3.4.3
kde-base/kde-env-3-r4
mail-mta/ssmtp-2.61
media-libs/alsa-lib-1.0.11
media-libs/audiofile-0.2.6-r1
media-libs/fontconfig-2.2.3
media-libs/freetype-2.1.9-r1
media-libs/giflib-4.1.4
media-libs/imlib2-1.2.1.009
media-libs/jpeg-6b-r5
media-libs/lcms-1.14-r1
media-libs/libdts-0.0.2-r3
media-libs/libdvb-0.5.5.1-r2
media-libs/libdvdcss-1.2.9
media-libs/libdvdnav-0.1.10
media-libs/libdvdread-0.9.4-r1
media-libs/libid3tag-0.15.1b
media-libs/libmad-0.15.1b
media-libs/libmng-1.0.8-r1
media-libs/libogg-1.1.2
media-libs/libpng-1.2.8-r1
media-libs/libsdl-1.2.8-r1
media-libs/libvorbis-1.1.0
media-libs/smpeg-0.4.4-r7
media-libs/tiff-3.7.4
media-sound/alsa-driver-1.0.11
media-sound/alsa-headers-1.0.11
media-sound/alsa-utils-1.0.11
media-sound/esound-0.2.36-r1
media-sound/lame-3.96.1
media-sound/mpg123-0.59s-r9
media-tv/linuxtv-dvb-headers-3.1
media-tv/mythtv-0.19_p9163-r1
media-tv/tvtime-0.9.15
media-tv/xmltv-0.5.37-r1
media-video/nvidia-glx-1.0.8762
media-video/nvidia-kernel-1.0.8762
net-ftp/ftp-0.17-r6
net-mail/mailbase-1
net-misc/dhcpcd-2.0.3
net-misc/iputils-021109-r3
net-misc/ntp-4.2.0.20040617-r3
net-misc/openssh-4.3_p2-r1
net-misc/rsync-2.6.9-r1
net-misc/wget-1.10.2
net-print/cups-1.1.23-r7
perl-core/CGI-3.15
perl-core/Scalar-List-Utils-1.18
perl-core/Storable-2.15
perl-core/Test-Simple-0.62
perl-core/digest-base-1.13
sys-apps/baselayout-1.11.14-r3
sys-apps/busybox-1.00-r4
sys-apps/coreutils-6.4
sys-apps/debianutils-2.14.1-r1
sys-apps/diffutils-2.8.7-r1
sys-apps/ed-0.2-r6
sys-apps/file-4.13
sys-apps/findutils-4.1.20-r2
sys-apps/gawk-3.1.4-r4
sys-apps/grep-2.5.1-r8
sys-apps/groff-1.19.1-r2
sys-apps/hdparm-5.9
sys-apps/help2man-1.33.1
sys-apps/hotplug-20040923-r2
sys-apps/hotplug-base-20040401
sys-apps/kbd-1.12-r5
sys-apps/less-385_p4-r2
sys-apps/man-1.6-r1
sys-apps/man-pages-2.20
sys-apps/module-init-tools-3.2.1
sys-apps/net-tools-1.60-r11
sys-apps/pciutils-2.2.0-r1
sys-apps/portage-2.1.2.2
sys-apps/sandbox-1.2.17
sys-apps/sed-4.1.4
sys-apps/slocate-2.7-r8
sys-apps/sysvinit-2.86-r3
sys-apps/tcp-wrappers-7.6-r8
sys-apps/texinfo-4.8-r2
sys-apps/usbutils-0.71-r1
sys-apps/utempter-0.5.5.6
sys-apps/util-linux-2.12r-r1
sys-apps/which-2.16
sys-block/di-3.11
sys-boot/grub-0.96-r2
sys-devel/autoconf-2.13
sys-devel/autoconf-2.61
sys-devel/autoconf-wrapper-4-r3
sys-devel/automake-1.4_p6
sys-devel/automake-1.5
sys-devel/automake-1.6.3
sys-devel/automake-1.7.9-r1
sys-devel/automake-1.8.5-r3
sys-devel/automake-1.9.6-r1
sys-devel/automake-1.10
sys-devel/automake-wrapper-3-r1
sys-devel/bc-1.06-r6
sys-devel/binutils-2.16.1
sys-devel/binutils-config-1.8-r6
sys-devel/bison-1.875d
sys-devel/distcc-2.18.3-r10
sys-devel/flex-2.5.4a-r6
sys-devel/gcc-3.4.4-r1
sys-devel/gcc-config-1.3.12-r6
sys-devel/gettext-0.16.1
sys-devel/gnuconfig-20051223
sys-devel/libperl-5.8.7
sys-devel/libtool-1.5.22
sys-devel/m4-1.4.7
sys-devel/make-3.80-r2
sys-devel/patch-2.5.9
sys-fs/e2fsprogs-1.38-r1
sys-fs/jfsutils-1.1.8
sys-fs/udev-079-r1
sys-kernel/gentoo-sources-2.6.16-r7
sys-kernel/linux-headers-2.6.11-r2
sys-libs/com_err-1.38
sys-libs/cracklib-2.8.5
sys-libs/db-4.2.52_p2-r1
sys-libs/gdbm-1.8.3-r2
sys-libs/glibc-2.3.5-r2
sys-libs/gpm-1.20.1-r4
sys-libs/libcap-1.10-r5
sys-libs/libstdc++-v3-3.3.4
sys-libs/ncurses-5.4-r6
sys-libs/pam-0.78-r5
sys-libs/pwdb-0.62
sys-libs/readline-5.0-r2
sys-libs/ss-1.38
sys-libs/zlib-1.2.3
sys-process/cronbase-0.3.2
sys-process/procps-3.2.5-r1
sys-process/psmisc-21.9
sys-process/vixie-cron-4.1-r8
virtual/libiconv-0
virtual/libintl-0
virtual/perl-CGI-3.15
virtual/perl-Digest-MD5-2.33
virtual/perl-MIME-Base64-3.05
virtual/perl-Memoize-1.01
virtual/perl-Scalar-List-Utils-1.18
virtual/perl-Storable-2.15
virtual/perl-Test-Harness-2.48
virtual/perl-Test-Simple-0.62
virtual/perl-digest-base-1.13
virtual/perl-libnet-1.19
virtual/x11-6.8
www-client/links-2.1_pre20
x11-apps/ttmkfdir-3.0.9-r3
x11-base/opengl-update-3.0.0
x11-base/xorg-x11-6.8.2-r7
x11-libs/gtk+-1.2.10-r11
x11-libs/qt-3.3.4-r8
x11-terms/xterm-207
x11-wm/fluxbox-0.9.14-r1



Thanks for your time trying to help.
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Wed Mar 21, 2007 7:25 pm    Post subject: Reply with quote

OK, i notice your kernel's not the most up to date, so lets see if thats the cause. The reason pam-login is missing from the package database and no longer in the tree is because its now selectable as an in kernel selection.

From a LiveCD chroot and then:
Code:

cd /usr/src/linux
cat .config | grep PAM


or by inspection:
Code:

cd /usr/src/linux
nano -w .config
Search for PAM=


Let me know what you find...
I found this after I posted which will keep us from having to go the long way around. See Next Post.
_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Wed Mar 21, 2007 8:12 pm    Post subject: Reply with quote

Cannot login - password isn't asked for [solved]
I'll recode his post so it's easier to follow and stands out: (Quoted to give credit, adding code tags in quote)
bur wrote:

I finally solved the problem. Here's what I did in case someone else has this problem, too:

1) To skip the login prompt we boot directly to the shell by adding this to the kernel commandline:
Code:

Added: (Let grub start, press e to edit entry and add)
init=/bin/bash

2) after booting we need to remount root as rw:
Code:

mount / -o remount,rw

3) now we need internet access. first change the runlevel to default:
Code:

rc default

4) it will give an error and say to mount proc:
Code:

mount -t proc proc /proc

5) now start the ethernet connection:
Code:

(if it says, already started, first stop it: "..../net.eth0 stop", then start)
/etc/init.d/net.eth0 start 

6) finally emerge shadow:
Code:

emerge -av shadow

7) reboot and you're done:
Code:

reboot


_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
fstephens
n00b
n00b


Joined: 15 Jan 2004
Posts: 50
Location: Los Angeles

PostPosted: Thu Mar 22, 2007 12:08 am    Post subject: Reply with quote

There were no instances of PAM in the kernel .config file.
I couldn't get net.eth0 to stop so I could restart it as in the post you copied. So I had to boot the live CD again and emerge shadow from there.
Finally I can login!

Thanks allot for your help. Greatly appreciated.

(there was a longer reply here but while I was testing the forum timed out. When I logged in here again it had lost my composed message!) :evil:
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Thu Mar 22, 2007 3:20 am    Post subject: Reply with quote

Please add [Solved] to your post.

Glad I could help :D
_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
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
Goto page 1, 2  Next
Page 1 of 2

 
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