View previous topic :: View next topic |
Author |
Message |
Holysword l33t
Joined: 19 Nov 2006 Posts: 946 Location: Greece
|
Posted: Tue Jul 02, 2013 5:16 pm Post subject: [SOLVED] Gentoo Fresh Installation - Cannot Log In |
|
|
Hi there everybody,
I started a fresh Gentoo installation in my other machine. I *think* I followed all the instructions in Gentoo's Handbook, and I have already installed Gentoo a handful of times. However, when I reboot and get into the Gentoo installation, the root password seem to not work. I've tried changing it, no changes. Its not a keyboard issue. If I use the LiveCD and chroot into the installation, the passwords seem all to be fine and correct. They are just not recognized when I boot from the hard driver.
Is there any extra thing I should do? Maybe due to new udev or grub2? _________________ "Nolite arbitrari quia venerim mittere pacem in terram non veni pacem mittere sed gladium" (Yeshua Ha Mashiach)
Last edited by Holysword on Sat Jul 06, 2013 1:27 pm; edited 1 time in total |
|
Back to top |
|
|
hadrons123 Tux's lil' helper
Joined: 08 Mar 2012 Posts: 90 Location: chennai
|
Posted: Tue Jul 02, 2013 5:22 pm Post subject: |
|
|
Maybe new pam sys-libs/pam-1.1.6-r2 settings have messed it, I guess.
rebuilding and etc-update in chroot might help. |
|
Back to top |
|
|
Holysword l33t
Joined: 19 Nov 2006 Posts: 946 Location: Greece
|
Posted: Tue Jul 02, 2013 6:29 pm Post subject: |
|
|
hadrons123 wrote: | Maybe new pam sys-libs/pam-1.1.6-r2 settings have messed it, I guess.
rebuilding and etc-update in chroot might help. |
Thank you for your suggestion. Just tried, didn't work.
EDIT#1: I'm using pam-1.1.6-r4... should I drop back, maybe?
EDIT#2: Dropped to 1.1.6-r2, no change _________________ "Nolite arbitrari quia venerim mittere pacem in terram non veni pacem mittere sed gladium" (Yeshua Ha Mashiach) |
|
Back to top |
|
|
defer- Tux's lil' helper
Joined: 11 Jun 2007 Posts: 140 Location: Finland
|
Posted: Tue Jul 02, 2013 9:58 pm Post subject: |
|
|
Sounds tricky. I just want to make sure you ran the passwd as root? Maybe you could add another user and try to log in with it? _________________ https://github.com/defer- |
|
Back to top |
|
|
Holysword l33t
Joined: 19 Nov 2006 Posts: 946 Location: Greece
|
Posted: Tue Jul 02, 2013 10:21 pm Post subject: |
|
|
defer- wrote: | Sounds tricky. I just want to make sure you ran the passwd as root? Maybe you could add another user and try to log in with it? |
Yes, I did the passwd as root. I added 2 other users, they also do not work when I boot from the hard disk. For instance, after chrooting I do this:
Code: |
Gentoo-20121221 ~# su user1
user1@Gentoo-20121221 ~# su user2
Password:
user2@Gentoo-20121221 ~# su user1
Password:
user1@Gentoo-20121221 ~# su
Password:
Gentoo-121221 ~#
|
So yeps, all the users are correctly set and I know the correct password of all of them. Also, the root password is "r". I don't miss the "r" key even when I'm drunk.
One interesting fact... when I'm chrooted, the commands "who" and "users" return nothing. Don't know if that's expected though...
EDIT#1: Booting from hard disk but using "recovery mode", I manage to log in as root. However, its not much use since the systems are mounted as read-only. _________________ "Nolite arbitrari quia venerim mittere pacem in terram non veni pacem mittere sed gladium" (Yeshua Ha Mashiach) |
|
Back to top |
|
|
Holysword l33t
Joined: 19 Nov 2006 Posts: 946 Location: Greece
|
Posted: Thu Jul 04, 2013 2:36 pm Post subject: |
|
|
No one? Just providing some more information. Since I managed to boot using recovery mode, it shrinks a bit the possibilities, I think. The two main reasons I see are:
- some service being loaded is screwing the rest of the boot process
- there is a problem with permissions in the main partition, and thus only read-only boot works
This is the output of rc-update:
Code: | Gentoo-20121221 / # rc-update
bootmisc | boot
devfs | sysinit
dmesg | sysinit
fsck | boot
hostname | boot
hwclock | boot
keymaps | boot
killprocs | shutdown
local | default
localmount | boot
modules | boot
mount-ro | shutdown
mtab | boot
net.lo | boot
netmount | default
procfs | boot
root | boot
savecache | shutdown
swap | boot
swapfiles | boot
sysctl | boot
sysfs | sysinit
syslog-ng | default
termencoding | boot
tmpfiles.setup | boot
udev | sysinit
udev-mount | sysinit
urandom | boot
vixie-cron | default
Gentoo-20121221 / # |
and an ls -la in my root partition:
Code: | Gentoo-20121221 / # ls -la
total 62569
d-wx-wxrwx 22 root root 4096 Jun 29 20:29 .
d-wx-wxrwx 22 root root 4096 Jun 29 20:29 ..
drwxr-xrwx 2 root root 4096 Jul 1 07:03 bin
drwxr-xr-x 5 root root 1024 Jul 1 20:09 boot
drwxr-xr-x 14 root root 4180 Jul 4 07:05 dev
drwxr-xrwx 66 root root 4096 Jul 4 08:06 etc
drwxr-xrwx 4 root root 4096 Jul 2 10:13 home
lrwxrwxrwx 1 root root 5 Jun 29 20:29 lib -> lib64
drwxr-xrwx 3 root root 4096 Jul 1 10:55 lib32
drwxr-xrwx 11 root root 4096 Jul 2 14:31 lib64
drwx---rwx 2 root root 16384 Jun 29 05:41 lost+found
drwxr-xrwx 2 root root 4096 Jun 27 00:53 media
drwxr-xrwx 2 root root 4096 Jun 27 00:53 mnt
drwxr-xrwx 3 root root 4096 Jul 1 11:10 opt
-rw-r--rwx 1 root root 63981450 Jun 29 06:09 portage-latest.tar.bz2
dr-xr-xr-x 218 root root 0 Jul 4 07:04 proc
drwx---rwx 3 root root 4096 Jul 1 19:14 root
drwxr-xrwx 6 root root 4096 Jul 2 16:21 run
drwxr-xrwx 2 root root 4096 Jul 2 14:31 sbin
dr-xr-xr-x 11 root root 0 Jul 4 07:04 sys
drwxrwxrwt 4 root root 4096 Jul 3 09:07 tmp
drwxr-xrwx 13 root root 4096 Jun 29 06:30 usr
drwxr-xrwx 11 root root 4096 Jun 30 21:03 var
Gentoo-20121221 / # |
Honestly some of these permissions seem odd to me, but I don't know if this could be related, and what is the correct solution. _________________ "Nolite arbitrari quia venerim mittere pacem in terram non veni pacem mittere sed gladium" (Yeshua Ha Mashiach) |
|
Back to top |
|
|
Holysword l33t
Joined: 19 Nov 2006 Posts: 946 Location: Greece
|
Posted: Sat Jul 06, 2013 1:27 pm Post subject: |
|
|
Indeed it was the permission.
I changed the permissions of the folders to the default (used another Linux installation to see what is the default) and then I managed to log in. _________________ "Nolite arbitrari quia venerim mittere pacem in terram non veni pacem mittere sed gladium" (Yeshua Ha Mashiach) |
|
Back to top |
|
|
|