LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-22-2008, 06:18 PM   #1
bsd13
LQ Newbie
 
Registered: Jul 2008
Distribution: CentOS
Posts: 4

Rep: Reputation: 0
Commented out the root account in /etc/passwd


Like a moron I commented out the root account in /etc/passwd and now of course I can't get back in to uncomment it. The problem is that I did this on a virtual machine (vmware) and now I'm lost as to how to mount the file system using knoppix live cd? It's not a physical drive being used for the vmware, but a virtual one.

Any help would be greatly appreciated!
 
Old 08-22-2008, 07:17 PM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Single User mode? you should be able to edit the file using single user mode.
 
Old 08-22-2008, 09:12 PM   #3
bsd13
LQ Newbie
 
Registered: Jul 2008
Distribution: CentOS
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by r3sistance View Post
Single User mode? you should be able to edit the file using single user mode.
Thanks I got it.
 
  


Reply

Tags
passwd, root, vmware


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
Change account passwd in one command christopher_c Linux - Newbie 11 10-19-2007 12:26 AM
Why is my common account can't open Terminal in XFCE4 but root account? notsay Slackware 4 08-18-2007 11:29 PM
accidentally commented root user at /etc/passwd karen.pertierra Linux - General 15 05-30-2007 10:21 PM
is it legitimate and allowed and can be done to make another user account set uid and gid to null 0 to make another root account with different name and possibly not damage the debian system creating and using that new account BenJoBoy Linux - Newbie 12 01-29-2006 10:02 AM
/etc/securetty --> I commented out all lines and I can still log in as root adamrau Linux - Security 2 05-30-2004 06:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:38 PM.

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
Open Source Consulting | Domain Registration