LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices

Reply
 
Search this Thread
Old 11-05-2006, 09:45 AM   #1
Battousai
LQ Newbie
 
Registered: Jun 2004
Location: Deux-Montagnes
Distribution: Gentoo 1.4/Slackware 10 RC2
Posts: 19

Rep: Reputation: 0
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
 
Old 11-05-2006, 01:58 PM   #2
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
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.
 
Old 11-05-2006, 02:39 PM   #3
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
But you can log in as a user?

can you post the output of:

cat /etc/passwd
 
Old 11-05-2006, 03:42 PM   #4
bsargent
LQ Newbie
 
Registered: Mar 2006
Posts: 2

Rep: Reputation: 0
Have you maybe dropped the wheel group from your login?
 
Old 11-05-2006, 07:56 PM   #5
Battousai
LQ Newbie
 
Registered: Jun 2004
Location: Deux-Montagnes
Distribution: Gentoo 1.4/Slackware 10 RC2
Posts: 19

Original Poster
Rep: Reputation: 0
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:0perator:/root:/bin/bash
man:x:13:15:man:/usr/share/man:/bin/false
postmaster:x:14:12ostmaster:/var/spool/mail:/bin/false
smmsp:x:209:209:smmsp:/var/spool/mqueue:/bin/false
portage:x:250:250ortage:/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

Last edited by Battousai; 11-05-2006 at 08:13 PM.
 
Old 11-07-2006, 12:04 PM   #6
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
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.
 
Old 11-13-2006, 04:38 AM   #7
Battousai
LQ Newbie
 
Registered: Jun 2004
Location: Deux-Montagnes
Distribution: Gentoo 1.4/Slackware 10 RC2
Posts: 19

Original Poster
Rep: Reputation: 0
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?
 
Old 11-13-2006, 10:24 AM   #8
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
yes boot the livecd then mount your / partition on /mnt/gentoo and edit it from there.
 
Old 11-14-2006, 05:54 PM   #9
Battousai
LQ Newbie
 
Registered: Jun 2004
Location: Deux-Montagnes
Distribution: Gentoo 1.4/Slackware 10 RC2
Posts: 19

Original Poster
Rep: Reputation: 0
Thank you kindly. Worked like a charm
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
logon at console for root only DarReNz Solaris / OpenSolaris 2 05-29-2006 01:39 PM
Run program as root at logon? scottjwoodford Linux - Software 7 06-13-2005 04:30 AM
Can't logon to root on Kde 3.4 galliar Suse/Novell 3 04-09-2005 10:19 AM
slow root logon flash2613 Linux - General 1 11-27-2004 12:56 PM
black screen after root logon? eliguy Linux - Software 5 04-15-2002 02:49 PM


All times are GMT -5. The time now is 03:00 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration