LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices

Reply
 
Search this Thread
Old 02-03-2005, 03:40 AM   #1
Phyrexicaid
Member
 
Registered: Aug 2004
Location: JHB - South Africa
Distribution: Kubuntu 7.04; openSUSE 10.1
Posts: 176

Rep: Reputation: 30
Broken root user


Hi,

I have Suse 9.2 Pro installed and was playing around a little with Linux from scratch. After one false start I deleted the lfs user and group and the binutils+gcc packages (the only two I had installed) because I wanted to start this thing from scratch. Now when I did an su the root user didn't goto /root. it stayed in my directory. When I typed 'groupadd lfs' it couldn't find the command! I had to do a whereis and type it from the directory. The same thing now for init, I had to go into the sbin directory and do a ./init

When I tried to do the configure for binutils using the new lfs user it said /bin/sh: Bad interpreter

What have I done?!? I ran Suse system check and it's still broke.

What has lfs (or me) done to the system to do this, and how can I fix it? Besides a full reinstall (not the end of the world, but I don't feel like redoing mplayer, quake3 and Nvidia).

My original user still seems to work fine, I ran a ./configure on mplayer with no issues.

Dave.
 
Old 02-03-2005, 08:22 AM   #2
drumvudu
Member
 
Registered: Jul 2004
Location: Houston, Texas USA
Distribution: Linux Mint
Posts: 57

Rep: Reputation: 15
Sounds like when you were entering commands as root that you weren't properly chrooted into the LFS environment so the commands you typed were applying themselves to your base SuSE system. Wouldn't be the first time I've seen that happen this week..Just a guess but it sure sounds like it.../p
 
Old 02-03-2005, 03:01 PM   #3
Phyrexicaid
Member
 
Registered: Aug 2004
Location: JHB - South Africa
Distribution: Kubuntu 7.04; openSUSE 10.1
Posts: 176

Original Poster
Rep: Reputation: 30
Hmm, the only thing is I followed the instructions in the book to the letter, one weird thing was when I added the lfs user with the command in the book -k /dev/null it said copy of skeleton directory failed.

I assumed that meant that it had worked, since we are trying to prevent that. Guess not, any ideas as to what went wrong?
 
Old 02-03-2005, 07:27 PM   #4
drumvudu
Member
 
Registered: Jul 2004
Location: Houston, Texas USA
Distribution: Linux Mint
Posts: 57

Rep: Reputation: 15
Well, yea, you are correct that you don't want the skeleton copied. Let me think on this a little more and i will let ya know what i come up with../p
 
Old 02-03-2005, 10:54 PM   #5
lappy512
LQ Newbie
 
Registered: Feb 2005
Posts: 8

Rep: Reputation: 0
It sounds like you have just installed SuSE.

Why not just reinstall?
 
Old 02-03-2005, 11:54 PM   #6
drumvudu
Member
 
Registered: Jul 2004
Location: Houston, Texas USA
Distribution: Linux Mint
Posts: 57

Rep: Reputation: 15
Dave, after looking over this post again, I think that you are assuming some things are wrong when they are not. When you say
"Now when I did an su the root user didn't goto /root. it stayed in my directory. "

That is the default behavior of <su>.

When you say:

"When I typed 'groupadd lfs' it couldn't find the command! I had to do a whereis and type it from the directory. The same thing now for init, I had to go into the sbin directory and do a ./init"

This sounds like a PATH issue and nothing more. If you try to run these commands as anyone other than root, they will behave EXACTLY as you describe.

You said:

"When I tried to do the configure for binutils using the new lfs user it said /bin/sh: Bad interpreter"

This can happen for a few reasons. Do you have a link between sh and bash?Try typing this:

sh ./configure

And tell me what happens.

Good Luck.../p
 
  


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
Broken X - Only works for root BigBadPenguin Slackware 11 02-25-2008 08:08 PM
Root Login Broken iraubergeek Ubuntu 2 03-29-2005 08:03 PM
SUSE 9.1 and broken gnome user wiresquire Linux - Software 4 08-10-2004 09:38 PM
IntelliMouse thumb buttons work as root, broken as non-root user, wheel works always digital vortex Linux - Hardware 7 03-02-2004 04:14 PM
rpm broken for root? ubien Linux - General 1 01-23-2003 01:07 AM


All times are GMT -5. The time now is 08:54 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