LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-15-2003, 09:06 PM   #1
Goody1959
LQ Newbie
 
Registered: Jul 2003
Location: New England
Distribution: Slackware
Posts: 4

Rep: Reputation: 0
Angry Lost root user


Well, Slackware is Fun!
I had a problem when shutting down, the system hung when, "saving time to hardware clock (localtime)".
When I restarted root was not a valid ID. ????????
I CAN login as my only other user in the root group and tried was able to 'su' and edit /etc/passwd.
Still no root.
I logged everybody out, my super and the surfer. When I tried to reboot I got the same hangup and then after it started root was not recognized a s a valid user. My superuser was able to login, but, could not 'su' since root was not valid.
Do I re-install or is there hope for what I have already gotten together on this system?

I am using Slackware 8.0, K6350, 256MB, a couple of small WD for a total of 5gb, USB trackball. Not that the hardware has much to do with this.
 
Old 07-15-2003, 10:07 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,865

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
The first line in /etc/passwd describes root. Check to see if this line is still intact.

If /etc/passwd is ok then you might try using the useradd command to add a user called root.

If you are really brave, or desperate, you could try userdel root followed by useradd root.

Last edited by jailbait; 07-15-2003 at 10:16 PM.
 
Old 07-16-2003, 08:44 AM   #3
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
You may need to boot the system in RunLevel 1.
 
Old 07-19-2003, 04:46 PM   #4
Goody1959
LQ Newbie
 
Registered: Jul 2003
Location: New England
Distribution: Slackware
Posts: 4

Original Poster
Rep: Reputation: 0
Angry Still no root!

Sorry it took so long to get back!
Okay,
the new development is that since I rebooted after editing /etc/passwd as was mentioned in one of the replies, I can not edit, chmod, mount or anything that requires root (su).
So I can use the system as is just to play or surf, but, cannot mount a CD or floppy so that I can make new boot disks to re-install if that is the final answer to this problem. The floppy set that I used to do the initial install will only load part of the way thru the 1st disk and then it panics after asking for the root disk that will be loaded into RAMDISK. It used all four disks when I did the install, but, it seems to recognize the system on hda and then gets confused.
Any other suggestions???
BTW, thanks for the passwd suggestion, but, it didn't work.
 
Old 07-19-2003, 05:12 PM   #5
Goody1959
LQ Newbie
 
Registered: Jul 2003
Location: New England
Distribution: Slackware
Posts: 4

Original Poster
Rep: Reputation: 0
Angry Still no root user.

Quote:
Originally posted by Mathieu
You may need to boot the system in RunLevel 1.
How does one boot runlevel 1? I just read the document for BOOTPROMPT and there was no mention there of how to do that. Thanks.
 
Old 07-19-2003, 09:19 PM   #6
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,865

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
" How does one boot runlevel 1?"

Edit /etc/inittab and change the line that says:

id:5:initdefault

to:

id:1:initdefault

The comments in /etc/inittab will tell you what the various runlevels mean. Also by now you may not have a default runlevel of 5. It may have been switched to 3.
 
Old 07-20-2003, 05:58 AM   #7
Goody1959
LQ Newbie
 
Registered: Jul 2003
Location: New England
Distribution: Slackware
Posts: 4

Original Poster
Rep: Reputation: 0
No good on the runlevel change. cannot edit the file. Cannot change the permissions of anything. No mount, so I can't make any new disks to boot with, and, the disks that I have do not work the way they did when I did the install. X@#$!$@%!!!
 
Old 07-20-2003, 06:02 AM   #8
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
try 'init 1'
 
Old 07-20-2003, 10:34 AM   #9
laxi
Member
 
Registered: Jun 2003
Distribution: Linux
Posts: 48

Rep: Reputation: 15
maybe you can boot from floppy with a mini-linux on a disk,it do have the function with operating your harddisk.then edit the password file
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Lost user previlages as root yesfixit SUSE / openSUSE 6 03-02-2005 03:30 PM
Scanner to work as USER and not forced as ROOT Root (Suse 9.1) 1kyle Linux - Hardware 0 07-10-2004 08:51 AM
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
Lost Root User Michael2003 Mandriva 4 12-13-2003 08:20 AM
Why does kppp.desktop require root userid for non-root user? rdaves@earthlink.net Linux - Networking 4 08-27-2001 09:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration