Gentoo Root Issue. Cannot SU or logon to Root
Hello everyone.
I think i might have msessedup my Roots Shell. because everytime i try to SU or logon to the root i get this error message Cannot exec bash: no such file or directory Any clues? Thank you kindly |
What did you do to it that you think you might of messed it up? Are you using the stage3 tarball from Gentoo?
The error message means something was either not compiled correctly or was not compiled at all resulting in a useless system. I've got that error myself, but only after attempting to make my own bootstrap instead of using the one provided by Gentoo. |
But you can log in as a user?
can you post the output of: cat /etc/passwd |
Have you maybe dropped the wheel group from your login?
|
i was trying to put in ZSH shell so I believe i might have messed up my Shell for the Root lol. When I get in i'll paste the output
Ok here we go. localhost% cat /etc/passwd root:x:0:0:root:/root:bash bin:x:1:1:bin:/bin:/bin/false daemon:x:2:2:daemon:/sbin:/bin/false adm:x:3:4:adm:/var/adm:/bin/false lp:x:4:7:lp:/var/spool/lpd:/bin/false sync:x:5:0:sync:/sbin:/bin/sync shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown halt:x:7:0:halt:/sbin:/sbin/halt mail:x:8:12:mail:/var/spool/mail:/bin/false news:x:9:13:news:/usr/lib/news:/bin/false uucp:x:10:14:uucp:/var/spool/uucppublic:/bin/false operator:x:11:0:operator:/root:/bin/bash man:x:13:15:man:/usr/share/man:/bin/false postmaster:x:14:12:postmaster:/var/spool/mail:/bin/false smmsp:x:209:209:smmsp:/var/spool/mqueue:/bin/false portage:x:250:250:portage:/var/tmp/portage:/bin/false nobody:x:65534:65534:nobody:/:/bin/false distcc:x:240:2:distccd:/dev/null:/bin/false ldap:x:439:439:added by portage for openldap:/usr/lib/openldap:/usr/sbin/nologin sshd:x:22:22:added by portage for openssh:/var/empty:/usr/sbin/nologin messagebus:x:101:440:added by portage for dbus:/dev/null:/usr/sbin/nologin haldaemon:x:102:441:added by portage for hal:/dev/null:/usr/sbin/nologin gdm:x:103:443:added by portage for gdm:/var/lib/gdm:/usr/sbin/nologin rpc:x:111:111:added by portage for portmap:/dev/null:/usr/sbin/nologin sockd:x:104:2:added by portage for dante:/etc/socks:/usr/sbin/nologin partimag:x:91:91:added by portage for partimage:/var/log/partimage:/usr/sbin/nologin cron:x:16:16:added by portage for cronbase:/var/spool/cron:/usr/sbin/nologin shjinta:x:1000:1000::/home/shjinta:/bin/zs |
Quote:
Code:
root:x:0:0:root:/root:/bin/bash |
Quote:
|
yes boot the livecd then mount your / partition on /mnt/gentoo and edit it from there.
|
Thank you kindly. Worked like a charm
|
All times are GMT -5. The time now is 05:59 AM. |