Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
12-04-2006, 02:41 AM
|
#16
|
Member
Registered: Jan 2006
Location: Romania
Distribution: Suse 12.0, Slackware 12.1, Debian, Ubuntu, Gentoo
Posts: 301
Rep:
|
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.
|
|
|
12-04-2006, 03:07 AM
|
#17
|
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:
|
/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.
|
|
|
12-04-2006, 05:33 AM
|
#18
|
Moderator
Registered: May 2001
Posts: 29,415
|
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?
|
|
|
12-04-2006, 06:50 PM
|
#19
|
LQ Newbie
Registered: Nov 2006
Location: Naval Air Weapons Station China Lake, CA
Posts: 8
Original Poster
Rep:
|
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.
|
|
|
12-04-2006, 07:20 PM
|
#20
|
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:
|
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.
|
|
|
12-15-2006, 07:51 PM
|
#21
|
LQ Newbie
Registered: Nov 2006
Location: Naval Air Weapons Station China Lake, CA
Posts: 8
Original Poster
Rep:
|
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
|
|
|
12-17-2006, 05:19 PM
|
#22
|
Member
Registered: Jan 2006
Location: Romania
Distribution: Suse 12.0, Slackware 12.1, Debian, Ubuntu, Gentoo
Posts: 301
Rep:
|
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".
|
|
|
12-20-2006, 06:35 PM
|
#23
|
LQ Newbie
Registered: Dec 2006
Posts: 8
Rep:
|
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!!!!!
|
|
|
|
12-25-2006, 01:59 PM
|
#24
|
Member
Registered: Feb 2006
Location: Mars
Posts: 124
Rep:
|
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 ..
|
|
|
All times are GMT -5. The time now is 11:30 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|