Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-27-2003, 02:54 AM   #1
LQ Newbie
Registered: Mar 2003
Location: Switzerland
Posts: 4

Rep: Reputation: 0
cannot login as root /etc/passwd mistake


I'have make a big mistake in my /etc/passwd file, i'have removed the r to root and saved the file, and.. Logged off ..

There is the currently line of the root user in my /etc/passwd

And.. When i'want to log in root

swen@TupperWare:/etc$ su root
Unknown id: root

And, wen i'try to log as: oot

swen@TupperWare:/etc$ su oot
su: Authentication service cannot retrieve authentication info.

How i'can repair this without shutting down the computer, and mount the harddisk in another box?


Old 03-27-2003, 03:08 AM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
just reboot the machine and boot to single user mode. add "single" to the end of either the lilo boot coption, or the grub command before running it and that should log you in fine, then you can just edit passwd directly. then just run "init 3" to boot the thing all back to normal.
Old 03-27-2003, 03:14 AM   #3
LQ Newbie
Registered: Mar 2003
Location: Switzerland
Posts: 4

Original Poster
Rep: Reputation: 0
Yeah, but to reboot or edit lilo.conf i'must to be root, i'dont have any other user who have the right to do this except root

there is possible to make a su like command with UID?
Old 03-27-2003, 09:41 AM   #4
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444

Rep: Reputation: 31
I tried to boot into single user mode and i didn't have any root privelages. I tried

linux single
linux -s

If i would try and log in with root, i would get asked the pass...
When i logged in with my account wouldn't have root privelages. What else do i need to do??

One more thing that i noticed is i was still able to switch about tty's but when i would log in it was like 'myname'@(none) or soemthing.


Last edited by wr3ck3d; 03-27-2003 at 09:43 AM.


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
Stupid mistake - changed root shell to /bin/false Kholnuu Linux - General 8 01-04-2005 04:48 AM
login problem - i made a mistake ballam Linux - Newbie 18 07-15-2004 09:12 AM
root passwd Prasanth Linux - General 0 03-17-2003 06:12 AM
can't login (corrupt etc/passwd ?) nimrod Linux - General 4 03-01-2003 11:26 PM
root login incorrect ,then passwd root,but error sunnycn Linux - Security 6 05-20-2002 11:54 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:19 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration