LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 09-05-2008, 11:35 PM   #16
anarchic_birdsong
Member
 
Registered: Sep 2008
Distribution: OpenGEU, Slackware
Posts: 36

Original Poster
Rep: Reputation: 15

Okay, I've tried to add sync, and it lets me sync... But the problem I keep running into is that no matter how emphatically I yell at it and type single-user mode, and try to not make it go into read-only mode, it still complains that it is in read-only mode and won't let me do anything.

It complains of that in passwd by telling me "passwd: authentication token lock busy", and pico complains of read-only anytime I try to edit anything. It just won't get that I want to do stuff not in read-only, though I've deleted the "ro" and typed "single" during boot time.
 
Old 09-08-2008, 02:25 AM   #17
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 655

Rep: Reputation: 40
Quote:
Originally Posted by anarchic_birdsong View Post
Okay, I've tried to add sync, and it lets me sync... But the problem I keep running into is that no matter how emphatically I yell at it and type single-user mode, and try to not make it go into read-only mode, it still complains that it is in read-only mode and won't let me do anything.

It complains of that in passwd by telling me "passwd: authentication token lock busy", and pico complains of read-only anytime I try to edit anything. It just won't get that I want to do stuff not in read-only, though I've deleted the "ro" and typed "single" during boot time.
If your file system is mounted read-only you can run "mount -o remount,rw <device>" where <device> is the path to your file system device (for example /dev/VolGroup00/lv_root or /dev/sda2).
 
Old 09-11-2008, 04:15 PM   #18
anarchic_birdsong
Member
 
Registered: Sep 2008
Distribution: OpenGEU, Slackware
Posts: 36

Original Poster
Rep: Reputation: 15
Talking

Quote:
Originally Posted by kenneho View Post
If your file system is mounted read-only you can run "mount -o remount,rw <device>" where <device> is the path to your file system device (for example /dev/VolGroup00/lv_root or /dev/sda2).
Aha!! That was the missing piece. I ended up trying so many things, but I evidently blanked when it came to combining remount,rw with the other methods. I couldn't get passwd to work within this context because even though in single-user rw mode, it accepted a new password and acted like there was no problem, then upon trying to use that password in the normal system, forgot that it had supposedly changed it a minute ago. Anyway, the editing of /etc/shadow did work for me, because of your helpful reminder.

Thank you so much! I love it when penguins help each other.
 
Old 09-11-2008, 04:24 PM   #19
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
When I installed SuSE 11 on my new laptop, I realized just after the install that I never entered the root password. I tried clearing the password hash in /etc/shadow and was locked out from root logins and sudo. I ended up copying my regular user's password hash to root's and then logging in with my users password; running "passwd" as root to change it again.
 
Old 09-11-2008, 06:30 PM   #20
anarchic_birdsong
Member
 
Registered: Sep 2008
Distribution: OpenGEU, Slackware
Posts: 36

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jschiwal View Post
When I installed SuSE 11 on my new laptop, I realized just after the install that I never entered the root password. I tried clearing the password hash in /etc/shadow and was locked out from root logins and sudo. I ended up copying my regular user's password hash to root's and then logging in with my users password; running "passwd" as root to change it again.
That's a good idea. For me, though, the root and user password were the same and this would have been moot. I'm sure other people will find this helpful though.
 
Old 09-12-2008, 02:14 AM   #21
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 655

Rep: Reputation: 40
Quote:
Originally Posted by anarchic_birdsong View Post
Aha!! That was the missing piece. I ended up trying so many things, but I evidently blanked when it came to combining remount,rw with the other methods. I couldn't get passwd to work within this context because even though in single-user rw mode, it accepted a new password and acted like there was no problem, then upon trying to use that password in the normal system, forgot that it had supposedly changed it a minute ago. Anyway, the editing of /etc/shadow did work for me, because of your helpful reminder.

Thank you so much! I love it when penguins help each other.
Glad I could help.
 
  


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
Password resetting xcore2soul Linux - Newbie 1 11-28-2007 02:38 AM
resetting th root password on rh9 hamza11050 Linux - Software 4 09-30-2004 08:21 PM
Resetting Root password lorddecker Linux - Software 4 06-18-2004 03:48 PM
Resetting MySQL root password b200306 Linux - Software 3 02-08-2004 04:21 PM
resetting root password. Reaps^ Linux - Security 1 07-06-2003 04:46 PM

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

All times are GMT -5. The time now is 02:32 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