LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > 4MLinux
User Name
Password
4MLinux This forum is for the discussion of 4MLinux.

Notices


Reply
  Search this Thread
Old 02-19-2017, 03:56 AM   #1
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 649

Rep: Reputation: 133Reputation: 133
Lost password


This post is to answer the question asked here today:
http://4mlinux.blogspot.com/2013/01/...27569066483627

Let's say that your 4MLinux is installed on /dev/sda1. Boot the 4MLinux live CD or USB. Open terminal and execute:

Code:
cd /mnt/sda1
rm etc/*
Now boot 4MLinux from your hard disk drive. 4MLinux will say "Oh my God !" and it will repair itself within a few seconds :-) You will be asked for a new password.

WARNING:
4MLinux is the only distro, which will survive the "rm /etc/*" command executed by root. Do not try it unless you are running 4MLinux.


.

Last edited by zk1234; 02-19-2017 at 08:05 AM.
 
Old 02-19-2017, 07:44 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 6,430
Blog Entries: 2

Rep: Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559
Quote:
Originally Posted by zk1234 View Post
Code:
cd /mnt/sda1
rm /etc/*
isn't the 'cd' command pointless here, since you're giving an absolute path to the 'rm' command???
 
1 members found this post helpful.
Old 02-19-2017, 08:06 AM   #3
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 649

Original Poster
Rep: Reputation: 133Reputation: 133
Quote:
Originally Posted by ondoho View Post
isn't the 'cd' command pointless here, since you're giving an absolute path to the 'rm' command???
Oops! Code edited.

Thanks!

.
 
  


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
lost password Dr. D Linux - Newbie 3 05-02-2013 04:28 PM
Linux 2.6.15.1 The password lost , RESET PASSWORD ANDYCHAN Linux - General 2 08-18-2012 08:05 AM
I have lost my password. can you help me to recover my password in ubuntu croosnaya Linux - Newbie 4 04-17-2012 06:52 PM
[SOLVED] WD Elite - Lost Password - How -To Remove the lost password? fixcom1 Linux - General 3 03-06-2011 05:23 PM
lost password waxiem Linux - Software 5 07-04-2003 10:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > 4MLinux

All times are GMT -5. The time now is 10:05 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration