LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 06-08-2017, 10:02 AM   #16
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406

i suppose another way to do it with a live cd would be to mount the target system on say /repair, then

Code:
# for dir in {proc,sys,dev}
> do
> mount --bind /$dir /repair/$dir
> done
# chroot /repair
# passwd
  *change password*
# exit
then reboot the computer and test
 
Old 06-08-2017, 10:55 AM   #17
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,619
Blog Entries: 19

Rep: Reputation: 4462Reputation: 4462Reputation: 4462Reputation: 4462Reputation: 4462Reputation: 4462Reputation: 4462Reputation: 4462Reputation: 4462Reputation: 4462Reputation: 4462
Yes, that would work too. And it means you can use the passwd command without the -R option.

@OliviaVictoria: Are you familiar with the chroot command? It's incredibly useful for fixing problems while booted from an external drive. Basically it changes your root directory to the specified one (in your case the mounted hard drive partition where Xubuntu lives). Then you can use any command as if you'd booted that drive directly. You have to be root to use it, but you are root automatically when you boot from an installation disk.

Last edited by hazel; 06-08-2017 at 11:02 AM.
 
Old 06-14-2017, 12:59 PM   #18
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,673
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
My thoughts are with you and with your family ...

(The good news is, there is no Microsoft Windows in Heaven ...)
 
  


Reply



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
Server admin passed away... Help! Jay1969 Linux - Newbie 82 10-30-2017 04:27 AM
how do I fix heartbleed on my computers rob.rice Slackware 3 04-20-2014 07:31 AM
Using C API; first query passed passed by program to MySQL is successful, second quer weibullguy Programming 2 06-12-2007 10:45 PM
LXer: Father of an admin LXer Syndicated Linux News 0 03-28-2006 08:21 PM
Windows computers cannot see me or print, help fix it. Slovak Linux - Networking 2 11-27-2004 10:26 AM

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

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