Linux - SecurityThis 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.
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.
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.
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$
-----------------------------
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.
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?
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.
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!!!!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.