Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux Newbie
Reload this Page commented root user at /etc/passwd
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux Newbie If you're new to the wonderful world of Linux, start here!

Reply
 
Thread Tools Display Modes
Old 05-28-2007   #1 (permalink)
Just Joined!
 
Join Date: Mar 2007
Posts: 4
Send a message via AIM to karen.pertierra Send a message via Yahoo to karen.pertierra Send a message via Skype™ to karen.pertierra
commented root user at /etc/passwd

Hello,

Can anybody help me? Im a total newbie and I accidentally commented root user in the /etc/passwd.

NOw I could no longer SSH to the server because the command "su -" gives me:

su: user root does not exist

I guess Im messed up here.

Karen
karen.pertierra is offline   Reply With Quote
Old 05-28-2007   #2 (permalink)
Super Moderator
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, INDIA
Posts: 18,411
boot up from any LiveCD, mount partition OR boot up in rescue mode and remove comment sign.
__________________
New Users: Read This First


devils casper is offline   Reply With Quote
Old 05-28-2007   #3 (permalink)
Just Joined!
 
Join Date: Mar 2007
Posts: 4
Send a message via AIM to karen.pertierra Send a message via Yahoo to karen.pertierra Send a message via Skype™ to karen.pertierra
Smile

Thanks for that very quick reply, devils_casper.

How do I mount partition? Will I not lose any data or files in mounting? When I type df -h, I get the following:

Filesystem Size Used Avail Use% Mounted on
/dev/hda1 4.9G 206M 4.4G 5% /
none 121M 0 121M 0% /dev/shm
/dev/hda6 7.9G 786M 6.8G 11% /home
/dev/hda3 9.7G 1.5G 7.8G 16% /usr
/dev/hda2 9.7G 5.3G 4.0G 58% /var

Also, How can I boot up in a rescue mode?

I appreciate your help, really.
karen.pertierra is offline   Reply With Quote
Old 05-28-2007   #4 (permalink)
Super Moderator
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, INDIA
Posts: 18,411
Quote:
How do I mount partition? Will I not lose any data or files in mounting?
you wont loose any data. which linux distro do you have?
do you have any LiveCD?
for mounting any partition, execute this
Code:
mkdir first
mount -t <filesystem> /dev/<partition> first
__________________
New Users: Read This First


devils casper is offline   Reply With Quote
Old 05-28-2007   #5 (permalink)
Just Joined!
 
Join Date: Mar 2007
Posts: 4
Send a message via AIM to karen.pertierra Send a message via Yahoo to karen.pertierra Send a message via Skype™ to karen.pertierra
when I typed cat/proc/version, it gave me:

Linux version 2.6.9-42.ELsmp (buildcentos@build-i386) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-3)) #1 SMP Sat Aug 12 09:39:11 CDT 2006


Forgive my ignorance, but i dont know what to replace in the <partition> area. When you say,
mount -t <filesystem> /dev/<partition> first

do you mean, I have to type (as actual):
mount -t /dev/hda1 /dev/root first
karen.pertierra is offline   Reply With Quote
Old 05-28-2007   #6 (permalink)
Super Moderator
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, INDIA
Posts: 18,411
Quote:
mount -t <filesystem> /dev/<partition> first
replace <filesystem> with the actual filesystem in which you have formated partition. ext3, vfat for FAT32, ntfs for NTFS etc.

i asume that root partition (/dev/hda1) is formated in ext3 file system. execute this
Code:
mkdir first
mount -t ext3 /dev/hda1 first
cd first/etc
nano passwd
__________________
New Users: Read This First


devils casper is offline   Reply With Quote
Old 05-28-2007   #7 (permalink)
Just Joined!
 
Join Date: Mar 2007
Posts: 4
Send a message via AIM to karen.pertierra Send a message via Yahoo to karen.pertierra Send a message via Skype™ to karen.pertierra
Oh, ok I finally got it understood. I just have to finish downloading the LiveCD and Im all set.

Thanks for your help devils_casper!
karen.pertierra is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
 

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help! Konqueror won't listen to me... khinch SuSE Linux Help 12 04-03-2007 09:04 AM
Squid does not start AlexPal Redhat / Fedora Linux Help 2 02-09-2005 02:51 AM
Squid does not start AlexPal Servers 1 02-09-2005 02:39 AM
Proper way to install a game from a CDR? Mzzbizzsnatch Misc 9 09-01-2003 11:35 PM

Free Magazines
Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe
Systems Management News, the newspaper for IT systems administration and data center managers!
Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 03:16 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0