LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 12-04-2006, 02:41 AM   #16
Valkyrie_of_valhalla
Member
 
Registered: Jan 2006
Location: Romania
Distribution: Suse 12.0, Slackware 12.1, Debian, Ubuntu, Gentoo
Posts: 301

Rep: Reputation: 30

yup, seems you don't have a root user. I thought that maybe just the name or the group was changed. There were 3 more lines in the file (if you press down), but I doubt there was anything useful there.

Try what chort said, and if it doesn't work, I have no idea other than reinstall (or maybe booting into... what was that runlevel... if I remember it and sudo doesn't work, I'll post it)

BTW, wasn't it supposed to be /bin/bash ?

Last edited by Valkyrie_of_valhalla; 12-04-2006 at 02:42 AM.
 
Old 12-04-2006, 03:07 AM   #17
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
/bin/sh is the default root shell on most UNIX-like systems for compatibility sake. Often it's linked to /bin/bash on Linux OSs.
 
Old 12-04-2006, 05:33 AM   #18
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Why not boot a Live CD? You could then verify the integrity of the installed SW, check the logs and add the lines to passwd and shadow?
 
Old 12-04-2006, 06:50 PM   #19
ruxban
LQ Newbie
 
Registered: Nov 2006
Location: Naval Air Weapons Station China Lake, CA
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by chort
You apparently no longer have a root user.

Hopefully you setup sudo... you could do
Code:
$ sudo useradd -d /root -g 0 -u 0 -s /bin/sh root
$ sudo passwd root
If you don't have sudo setup, you have a real problem.
___________________________________________________________________

It looks like I don't have sudo setup.
It now reads this:
-----------------------------------------------------------------
ruxban@linux:~> sudo useradd -d /root -g 0 -u 0 -s /bin/sh root
sudo: no passwd entry for root!
ruxban@linux:~> sudo passwd root
sudo: no passwd entry for root!
ruxban@linux:~>
-----------------------------------------------------------------
It appears that I'm screwed. What should my next plan of action be? Go buy Windows XP? Re-install Linux? Write letters from now on?

What does this mean though?:
-----------------------------
ruxban@linux:~> /bin/sh
sh-3.00$
-----------------------------

Last edited by ruxban; 12-04-2006 at 06:57 PM.
 
Old 12-04-2006, 07:20 PM   #20
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Heh, sudo doesn't work if root isn't defined. I suppose that makes sense.

Time to use unSpawn's idea. Boot from a liveCD, then mount your existing partitions on the hard disk drive and edit the password file to put root back in there.
 
Old 12-15-2006, 07:51 PM   #21
ruxban
LQ Newbie
 
Registered: Nov 2006
Location: Naval Air Weapons Station China Lake, CA
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by chort
Heh, sudo doesn't work if root isn't defined. I suppose that makes sense.

Time to use unSpawn's idea. Boot from a liveCD, then mount your existing partitions on the hard disk drive and edit the password file to put root back in there.
_______________________________________________________________________________________

Well It took a little time, and alot of curse words, but I was finally able to regain control of my computer. I ended up formating my C:/ using a windows 98 start-up disk I forgot I had. After that, I simply installed Linux. 5 start up disks later, I had "god mode" again. Thank you to everyone for their ideas and help. Sorry it wasn't an easier fix. My advise is to stear clear of Linux plug-ins unless you absolutely need them (if your running SuSE 9.0). But maybe, thats just my luck.

Question- What is Sudo, what are its advantages, and how do I install it?

--Ted Ritter
 
Old 12-17-2006, 05:19 PM   #22
Valkyrie_of_valhalla
Member
 
Registered: Jan 2006
Location: Romania
Distribution: Suse 12.0, Slackware 12.1, Debian, Ubuntu, Gentoo
Posts: 301

Rep: Reputation: 30
sudo just runs a program as root (or another user, with specfic parameters). You have it installed by default, it didn't work because you didn't have a root account.

Try typing "man sudo".
 
Old 12-20-2006, 06:35 PM   #23
bbjmmj
LQ Newbie
 
Registered: Dec 2006
Posts: 8

Rep: Reputation: 0
Guys here are warmhearted , i'm feeling .

Use linux installation disk1 , boot PC from CD-ROM ,when you see :

linux:

type " linux rescue " and press return . now ,linux is running in rescue mode , follow the prompt , it'll bring you to single user mode , it's a shell mode without password ,in whitch , you can VI /etc/shadow , delete md5 encrypted password , and then , set password again.


Quote:
Originally Posted by ruxban
Does anybody know how to re-install a root user ID? To login into administration mode (super-user) I would use this information on the prompt screen:

all Linux. Is there a generic Login Name you could use along with your Root

Simple Terms: No Root access. Remember Root password. Need Root Login name. Help. SOS. AFLAC!!!!!
 
Old 12-25-2006, 01:59 PM   #24
raven4d
Member
 
Registered: Feb 2006
Location: Mars
Posts: 124

Rep: Reputation: 15
never heared about similar issue before !
dude !! what did u try at yr box recently ??


just as a thought ..did u try booting rescue mode ? it gives u a root shell ..
 
  


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
Why Scourge (2nd computer) isn't getting ip address from Misery (1st computer) dhcp? pslave Linux - Networking 2 04-09-2006 05:58 AM
while loop too cpu hungry unholy Programming 6 09-07-2004 06:01 PM
CPU Utilization too Low With Cycle Hungry App sgovind Linux - Software 3 03-09-2004 06:29 PM
RH9 Memory Hungry? Can I SLim it down? tombomb300 Red Hat 2 11-23-2003 04:01 AM
x server is cpu hungry ? juby Linux - General 2 02-17-2003 10:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:30 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration