LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Distributions (https://www.linuxquestions.org/questions/linux-distributions-5/)
-   -   Gentoo Root Issue. Cannot SU or logon to Root (https://www.linuxquestions.org/questions/linux-distributions-5/gentoo-root-issue-cannot-su-or-logon-to-root-498812/)

Battousai 11-05-2006 09:45 AM

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

Penguin of Wonder 11-05-2006 01:58 PM

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.

johnson_steve 11-05-2006 02:39 PM

But you can log in as a user?

can you post the output of:

cat /etc/passwd

bsargent 11-05-2006 03:42 PM

Have you maybe dropped the wheel group from your login?

Battousai 11-05-2006 07:56 PM

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

johnson_steve 11-07-2006 12:04 PM

Quote:

root:x:0:0:root:/root:bash
This is what mine looks like:
Code:

root:x:0:0:root:/root:/bin/bash
I figured it was something like this. You must give the whole path or it won't find it so change bash to /bin/bash and it should work.

Battousai 11-13-2006 04:38 AM

Quote:

Originally Posted by johnson_steve
This is what mine looks like:
Code:

root:x:0:0:root:/root:/bin/bash
I figured it was something like this. You must give the whole path or it won't find it so change bash to /bin/bash and it should work.

Any Idea how to go about changing it? Can i boot the livecd of Gentoo and do it through there?

johnson_steve 11-13-2006 10:24 AM

yes boot the livecd then mount your / partition on /mnt/gentoo and edit it from there.

Battousai 11-14-2006 05:54 PM

Thank you kindly. Worked like a charm


All times are GMT -5. The time now is 05:59 AM.