www linux magazine com online features resetting passwords w
TRANSCRIPT
-
7/28/2019 Www Linux Magazine Com Online Features Resetting Passwords w
1/17
pdfcrowd comopen in browser PRO version Are you a developer? Try out the HTML to PDF API
Desktop Development Hardware Security Server Programming Operating System Software
Network Administration
Home linux-magazine.com Online Features Resetting Passw...
Subscribe To Our New sletter:
Email
Search:
Search
News Features Blogs White Papers Archives Special Editions
Resetting Passwords with SystemRescueCd
SystemRescueCd
By James Stanger
If youre locked out of your Linux or Windows system, a handy Live
Linux troubleshooting distro might be all you need to get back in. Well
show you how to pick the lock with SystemRescueCd.
Issue151/2013
Content
Order
Print Issue
Subscribe
http://www.linux-magazine.com/http://www.linux-magazine.com/http://www.linux-magazine.com/http://www.linux-magazine.com/http://www.linux-magazine.com/http://www.linux-magazine.com/http://www.linux-magazine.com/http://www.linux-magazine.com/tags/view/administrationhttp://www.linux-magazine.com/tags/view/hardwarehttp://www.linux-magazine.com/tags/view/programminghttp://engine.adzerk.net/r?e=eyJhdiI6MTkyOTAsImF0Ijo0LCJjbSI6MjcwNzUsImNoIjo3Mjk0LCJjciI6NjM5NzMsImRpIjoiZWRkNmM1Y2I5OWIyNGQ3MTlkNWUzOGMxYjFjM2U3NjgiLCJkbSI6MSwiZmMiOjkwNjE4LCJmbCI6NDUzNDIsImt3IjoiVDpIVFRQLFM6U3VicGFnZSIsIm53Ijo0NjY5LCJydiI6MCwicHIiOjE3NTIyLCJzdCI6MjA5NzcsInpuIjoxNjAzMywidXIiOiJodHRwOi8vd3d3LmxpbnV4bmV3bWVkaWEuY29tL2FkcmVkaXIvYXNwbjIwMTMwNGRpciJ9&s=HVxzWKOzsAf2Hk_rp4cKiarjjSohttp://engine.adzerk.net/r?e=eyJhdiI6MTkyOTAsImF0Ijo0LCJjbSI6MjcwNzUsImNoIjo3Mjk0LCJjciI6NjM5NzMsImRpIjoiZWRkNmM1Y2I5OWIyNGQ3MTlkNWUzOGMxYjFjM2U3NjgiLCJkbSI6MSwiZmMiOjkwNjE4LCJm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9&s=HVxzWKOzsAf2Hk_rp4cKiarjjSohttp://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.linux-magazine.com%2fOnline%2fFeatures%2fResetting-Passwords-with-SystemRescueCd&id=ma-130516195455-a60ff29ahttp://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdfhttp://engine.adzerk.net/r?e=eyJhdiI6MTkyOTAsImF0Ijo0LCJjbSI6MjcwNzUsImNoIjo3Mjk0LCJjciI6NjM5NzMsImRpIjoiZWRkNmM1Y2I5OWIyNGQ3MTlkNWUzOGMxYjFjM2U3NjgiLCJkbSI6MSwiZmMiOjkwNjE4LCJmbCI6NDUzNDIsImt3IjoiVDpIVFRQLFM6U3VicGFnZSIsIm53Ijo0NjY5LCJydiI6MCwicHIiOjE3NTIyLCJzdCI6MjA5NzcsInpuIjoxNjAzMywidXIiOiJodHRwOi8vd3d3LmxpbnV4bmV3bWVkaWEuY29tL2FkcmVkaXIvYXNwbjIwMTMwNGRpciJ9&s=HVxzWKOzsAf2Hk_rp4cKiarjjSohttp://www.linux-magazine.com/tags/view/desktophttp://www.linux-magazine.com/tags/view/developmenthttp://www.linux-magazine.com/tags/view/hardwarehttp://www.linux-magazine.com/tags/view/securityhttp://www.linux-magazine.com/tags/view/serverhttp://www.linux-magazine.com/tags/view/programminghttp://www.linux-magazine.com/tags/view/operating%20systemhttp://www.linux-magazine.com/tags/view/softwarehttp://www.linux-magazine.com/tags/view/networkhttp://www.linux-magazine.com/tags/view/administrationhttp://www.linux-magazine.com/rss/feed/lmi_newshttps://www.facebook.com/linuxpromagazinehttp://www.linux-magazine.com/http://www.linux-magazine.com/Onlinehttp://www.linux-magazine.com/Online/Featureshttp://www.linux-magazine.com/http://www.linux-magazine.com/Online/Newshttp://www.linux-magazine.com/Online/Featureshttp://www.linux-magazine.com/Online/Blogshttp://www.linux-magazine.com/Online/White-Papershttp://www.linux-magazine.com/Issueshttp://www.linux-magazine.com/Resources/Special-Editionshttp://www.medialinx-shop.com/?utm_source=LPM&utm_medium=Link&utm_campaign=SHOPhttp://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.linux-magazine.com%2FOnline%2FFeatures%2FResetting-Passwords-with-SystemRescueCd&title=Resetting%20Passwords%20with%20SystemRescueCd&description=If%20you%E2%80%99re%20locked%20out%20of%20your%20Linux%20or%20Windows%20system%2C%20a%20handy%20Live%20Linux%20troubleshooting%20distro%20might%20be%20all%20you%20need%20to%20get%20back%20in.%20We%E2%80%99ll%20show%20you%20how%20to%20pick%20the%20lock%20with%20SystemRescueCd.http://www.linux-magazine.com/Issues/2013/151http://www.linux-magazine.com/Issues/2013/151http://shop.linuxnewmedia.com/us/eh30151.htmlhttp://shop.linuxnewmedia.com/us/ -
7/28/2019 Www Linux Magazine Com Online Features Resetting Passwords w
2/17
pdfcrowd comopen in browser PRO version Are you a developer? Try out the HTML to PDF API
Getting locked out of your Linux or Windows system is a frustrating
experience. These days, not being able to log in to your system might
be worse than getting locked out of your car; at least with a car you can
get a ride home or contact a locksmith to get back in. However, if youre
locked out of your Linux system, youre really not going to find a
competent ready-made service to come to your rescue.
But never fear: The open source community offers some powerful tools
for helping you reset passwords. For instance, the GRUB and LILO boot
managers offer some recovery options. If you need something more
versatile, the SystemRescueCd disk project provides a number of tools
for resetting passwords and recovering your system. SystemRescueCd
doesnt just reset passwords in your Ubuntu, Red Hat, or Linux Mint
system: It can also help you recover access to your Windows computer.
GRUBs System Recovery Mode
Sometimes you dont need a specialized tool like SystemRescueCd to
get back on your system. The traditional Unix/Linux single-user mode
might be all you need. If your system uses the GRUB bootloader, you
can enter Linux single mode through GRUBs Recovery Mode and boot
menu options. (An equivalent process is also available for the LILO
bootloader; see the box titled Using LILO.)
BUY THIS ISSUE AS A PD
Tag Cloud
AndroidBruce ByfieldGnome
KDELinux Pro MagazineOpen
SourceProjectsRed Hat
Ubuntueventsfossfree
softwaregooglelinux
News
http://shop.linuxnewmedia.com/us/magazines/linux-magazine-linux-pro-magazine/digital-issues/di20151.htmlhttp://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.linux-magazine.com%2fOnline%2fFeatures%2fResetting-Passwords-with-SystemRescueCd&id=ma-130516195455-a60ff29ahttp://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdfhttp://shop.linuxnewmedia.com/us/magazines/linux-magazine-linux-pro-magazine/digital-issues/di20151.htmlhttp://engine.adzerk.net/r?e=eyJhdiI6MjQyNjAsImF0Ijo1LCJjbSI6MzM2MjMsImNoIjo3Mjk0LCJjciI6ODI1NDAsImRpIjoiNzgyZTdmODczZDhiNDMyOGIzNTQ1Zjg3ZTAzMGU1MTUiLCJkbSI6MSwiZmMiOjExNDk2NCwiZmwiOjU2MDc0LCJrdyI6IlQ6SFRUUCxTOlN1YnBhZ2UiLCJudyI6NDY2OSwicnYiOjAsInByIjoxNzUyMiwic3QiOjIwOTc3LCJ6biI6MTYwMzQsInVyIjoiaHR0cDovL3d3dy53aWtpZHN5c3RlbXMuY29tLz9sbWV4cGVuc2UmdXRtX3NvdXJjZT1saW51eCttYWcmdXRtX21lZGl1bT1iYW5uZXImdXRtX3Rlcm09ZXhwZW5zZSZ1dG1fY29udGVudD1oYXNzbGVmYWN0b3ImdXRtX2NhbXBhaWduPWxtZXhwZW5zZSJ9&s=2bq9Zzmb7o10W5qXR5GAShqvirkhttp://www.linux-magazine.com/tags/view/Operating+System/Androidhttp://www.linux-magazine.com/tags/view/Bruce+Byfieldhttp://www.linux-magazine.com/tags/view/Desktop/Gnomehttp://www.linux-magazine.com/tags/view/Desktop/KDEhttp://www.linux-magazine.com/tags/view/Linux+Pro+Magazinehttp://www.linux-magazine.com/tags/view/Open+Sourcehttp://www.linux-magazine.com/tags/view/Projectshttp://www.linux-magazine.com/tags/view/Operating+System/Red+Hathttp://www.linux-magazine.com/tags/view/Operating+System/Ubuntuhttp://www.linux-magazine.com/tags/view/eventshttp://www.linux-magazine.com/tags/view/fosshttp://www.linux-magazine.com/tags/view/Software/free+softwarehttp://www.linux-magazine.com/tags/view/googlehttp://www.linux-magazine.com/tags/view/linux -
7/28/2019 Www Linux Magazine Com Online Features Resetting Passwords w
3/17
pdfcrowd comopen in browser PRO version Are you a developer? Try out the HTML to PDF API
Recovery Mode is available to you no matter what Linux flavor you are
using (e.g., Ubuntu 12.04 Precise Pangolin, Red Hat Enterprise Linux
6, Fedora 16, or Linux Mint 12).
When using GRUB to enter Linux single-user mode, first, make sure you
have removed any and all external drives or connections. More than
once, Ive confused the issue by trying to mount external USB drives
and other devices when I was working to recover my primary hard disk.
When youre sure youve stripped things down to the bare bones, bootyour system so the GRUB menu is showing and choose the kernel into
which you want to boot. Usually, you will boot into the first kernel listed
on the menu, but you can make sure youre booting into the latest
version by reading the numbers the higher the number, the more
current. You can choose the kernel by simply hitting the Up or Down
arrow key.
FSF Outs the World WideWeb Consortium over DRMProposal
Richard Stallman calls for the
W3C to remain independent of
vendor interests.
Debian 7.0 Debuts
The new release supports nine
architectures, 73 human
languages, and zero non-Free
components.
Alpha Version of Fedora 19Released
Fedora developers release the
first alpha version of Fedora 19,
known as Schrdingers Cat, for
general testing. The final
release is expected in July 2013.
ack 2.0 Released
ack is a grep-like, command-line
tool that has been optimized for
programmers to search large
trees of source code.
SUSE Studio 1.3 Released
http://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.linux-magazine.com%2fOnline%2fFeatures%2fResetting-Passwords-with-SystemRescueCd&id=ma-130516195455-a60ff29ahttp://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdfhttp://www.linux-magazine.com/Online/News/FSF-Outs-the-World-Wide-Web-Consortium-over-DRM-Proposalhttp://www.linux-magazine.com/Online/News/Debian-7.0-Debutshttp://www.linux-magazine.com/Online/News/Alpha-Version-of-Fedora-19-Releasedhttp://www.linux-magazine.com/Online/News/ack-2.0-Releasedhttp://www.linux-magazine.com/Online/News/SUSE-Studio-1.3-Released -
7/28/2019 Www Linux Magazine Com Online Features Resetting Passwords w
4/17
pdfcrowd comopen in browser PRO version Are you a developer? Try out the HTML to PDF API
Once youve selected the kernel version, press the e key to edit the
entry. In the simple text editor, choose the line starting with the word
kernel(usually the second line on your screen). After selecting the
kernel line, press the e key to edit the kernel entry. Append the
following to the end of the kernel line:
S
Yes, just use the letterS, without quotes. You can also use the word
Single without quotes.
When you press Enter, you will exit the editor and be placed back at the
GRUB menu. The menu will now have the modified kernel line (e.g., the
line with the capital S at the end).
To boot into Linux single-user mode, press the b key. Youll know youve
entered Linux single-user mode once you see a simple root prompt,
denoted by the hash mark (#). You wont see any other information on
the prompt as you normally would (e.g., the username, system name, or
current directory).
SUSE
New features in SUSE Studio 1.3
include enhanced cloud
integration, VM platform support,
and lifecycle management.
Xen To Become LinuxFoundation CollaborativeProjectAMD , Citrix , google , Intel , Oracle
The Linux Foundation recently
announced that the Xen Project
is becoming a Linux Foundation
Collaborative Project.
RunRev Releases OpenSource Version of LiveCodeAndroid , linux , Mac , Windows
Open source version of
LiveCode is now available for
developing apps, games, and
utilities for all major platforms.
OpenDaylight ProjectFormedCitrix , IBM , Microsoft , Red Hat , VMware
OpenDaylight is an open source
software-defined networking
project committed to furthering
http://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.linux-magazine.com%2fOnline%2fFeatures%2fResetting-Passwords-with-SystemRescueCd&id=ma-130516195455-a60ff29ahttp://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdfhttp://www.linux-magazine.com/tags/view/Operating+System/SUSEhttp://www.linux-magazine.com/Online/News/Xen-To-Become-Linux-Foundation-Collaborative-Projecthttp://www.linux-magazine.com/tags/view/AMDhttp://www.linux-magazine.com/tags/view/Citrixhttp://www.linux-magazine.com/tags/view/googlehttp://www.linux-magazine.com/tags/view/Intelhttp://www.linux-magazine.com/tags/view/Oraclehttp://www.linux-magazine.com/Online/News/RunRev-Releases-Open-Source-Version-of-LiveCodehttp://www.linux-magazine.com/tags/view/Operating+System/Androidhttp://www.linux-magazine.com/tags/view/linuxhttp://www.linux-magazine.com/tags/view/Machttp://www.linux-magazine.com/tags/view/Windowshttp://www.linux-magazine.com/Online/News/OpenDaylight-Project-Formedhttp://www.linux-magazine.com/tags/view/Citrixhttp://www.linux-magazine.com/tags/view/IBMhttp://www.linux-magazine.com/tags/view/Microsofthttp://www.linux-magazine.com/tags/view/Operating+System/Red+Hathttp://www.linux-magazine.com/tags/view/VMware -
7/28/2019 Www Linux Magazine Com Online Features Resetting Passwords w
5/17
pdfcrowd comopen in browser PRO version Are you a developer? Try out the HTML to PDF API
Usually, you can simply reset the password using the passwdcommand
at this point (see the Warning: Dont Misuse This Information box).
However, depending on how your system is configured, you might need
to mount some partitions: /proc/, /var/, or the root directory itself (/):
# mount -t proc proc /proc
# mount -o remount,rw /
Once youre at the prompt, enter
passwd
and press Enter. You will be prompted to enter a new password, so goahead and do so and press Enter to confirm your choice. Next, you can
reboot the system with the rebootcommand, log in to the root account,
and change any other passwords as necessary.
Rescuing with SystemRescueCd
SystemRescueCd is a Live Linux distribution similar to Knoppix. The
distribution is designed for system troubleshooting, which means it lets
you:
change user passwords in Linux or Windows systems, including the
passwords for the root and Administrator accounts;
check the integrity of existing partitions;
create new partitions or format existing partitions using the parted
tool or the graphical equivalent, GParted (Figure 1); and
accelerating innovation in a
vendor-neutral and open
environment.
Gnome 3.8 ReleasedGnome , ownCloud
The new Gnome release
includes privacy and sharing
settings, allowing more user
control over access to personal
information.
Mozilla and SamsungCollaborate on New BrowserEngineMozilla , samsung
Mozilla is collaborating with
Samsung on a new web browser
engine called Servo.
http://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.linux-magazine.com%2fOnline%2fFeatures%2fResetting-Passwords-with-SystemRescueCd&id=ma-130516195455-a60ff29ahttp://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdfhttp://www.linux-magazine.com/Online/News/Gnome-3.8-Releasedhttp://www.linux-magazine.com/tags/view/Desktop/Gnomehttp://www.linux-magazine.com/tags/view/ownCloudhttp://www.linux-magazine.com/Online/News/Mozilla-and-Samsung-Collaborate-on-New-Browser-Enginehttp://www.linux-magazine.com/tags/view/Mozillahttp://www.linux-magazine.com/tags/view/samsung -
7/28/2019 Www Linux Magazine Com Online Features Resetting Passwords w
6/17
pdfcrowd comopen in browser PRO version Are you a developer? Try out the HTML to PDF API
recover files from unbootable Linux or Windows systems.
Figure 1: With GParted, you can create, edit, and format partitions.
Of course, most of the troubleshooting tools found on SystemRescueCd
are available for other Linux distributions as well.
The basic procedures described in this article will work with other LiveLinux troubleshooting distros, although the details might vary. In this
case, Im using SystemRescueCd as an example of how to reset
passwords by booting the system from a Linux Live disk.
http://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.linux-magazine.com%2fOnline%2fFeatures%2fResetting-Passwords-with-SystemRescueCd&id=ma-130516195455-a60ff29ahttp://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdf -
7/28/2019 Www Linux Magazine Com Online Features Resetting Passwords w
7/17
pdfcrowd comopen in browser PRO version Are you a developer? Try out the HTML to PDF API
I should add
that
SystemRescueCd uses the Zsh command shell by default, which could
be confusing for users who are accustomed to the Bash shell. Every
once in a while when using SystemRescueCd, I get a funky error
message that tells me I am using the wrong shell.
If you are not familiar with Zsh and would prefer to work in Bash, you
can easily change the shell from Zsh to Bash by entering the following
exportcommand:
export SHELL=/bin/bash
Once youve downloaded the SystemRescueCd image from the project
website, you can use any appropriate tool to burn the image to a CD or
http://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.linux-magazine.com%2fOnline%2fFeatures%2fResetting-Passwords-with-SystemRescueCd&id=ma-130516195455-a60ff29ahttp://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdfhttp://www.sysresccd.org/ -
7/28/2019 Www Linux Magazine Com Online Features Resetting Passwords w
8/17
pdfcrowd comopen in browser PRO version Are you a developer? Try out the HTML to PDF API
a Flash drive. See the Using UNetbootin sidebar for more on burning
the image to a USB stick.
Figure 2: Using UNetbootin to create a SystemRescueCd USB boot disk.
Resetting Passwords
Sometimes your system is damaged in a way that wont let you reset the
password using Linux single-user mode. To reset a Linux-based
password in SystemRescueCd, start by booting to the SystemRescueCd
Live system.
To find out which disk partition contains the /etcdirectory, use fdisk.
http://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.linux-magazine.com%2fOnline%2fFeatures%2fResetting-Passwords-with-SystemRescueCd&id=ma-130516195455-a60ff29ahttp://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdf -
7/28/2019 Www Linux Magazine Com Online Features Resetting Passwords w
9/17
df d mi b PRO i Are you a developer? Try out the HTML to PDF API
The /etc partition is usually on the root (/) drive. See the command and
output in Listing 1.
Listing 1: Listing Partitions with fdisk
01#fdisk-lDeviceBoot Start End Blocks Id System/dev/sda1 63 144584 72261 de DellUtility/dev/sda2 145408 4339711 2097152 7 HPFS/NTFS/exFAT
/dev/sda3 * 4339712 165822455 80741372 7 HPFS/NTFS/exFAT
/dev/sda4 165822930 234436544 34306807+ 5 Extended
/dev/sda5
165822993231528779
32852893+
83
Linux
/dev/sda6 231528843 234436544 1453851 82 Linuxswap/Solaris
In Listing 1, the /dev/sda5directory is the main partition, as revealed by
its size and partition type, so you will need to mount this partition. To do
so, first create a directory that will act as a mountpoint:
mkdir /mnt/bootdir
Now, mount the Linux partition to your SystemRescueCd partition:
mount /dev/sda5 /mnt/bootdir
The chrootcommand lets you access it easily:
http://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.linux-magazine.com%2fOnline%2fFeatures%2fResetting-Passwords-with-SystemRescueCd&id=ma-130516195455-a60ff29ahttp://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdf -
7/28/2019 Www Linux Magazine Com Online Features Resetting Passwords w
10/17
df di b PRO i Are you a developer? Try out the HTML to PDF API
chroot /mnt/system
Now, you can reset your password using the passwdcommand,
passwd
where newpassword is the new password you want to use.
The umountcommand unmounts the partition, after which you can
reboot. Once you log back in to your troubled Linux system, youll be
able to use the root account with the new password youve specified.
http://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.linux-magazine.com%2fOnline%2fFeatures%2fResetting-Passwords-with-SystemRescueCd&id=ma-130516195455-a60ff29ahttp://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdf -
7/28/2019 Www Linux Magazine Com Online Features Resetting Passwords w
11/17
df di b PRO i A d l ? T t th HTML t PDF API
Mounting Disks
Once you have accessed the system with SystemRescueCd, you dont
have to go stampeding to the passwdcommand and then rush out
again. If necessary, you can mount drives and edit key files. In fact,
once you enter Linux single-user mode, you can edit and browse
through directories or make changes to critical text files.
For example, instead of using the passwdcommand, you could edit the
/etc/shadowfile directly and remove the password information. To do
this, mount the partition that contains the /etcdirectory this is usually
the root partition and enter the command:
# mount -rw / /mnt/partition
If necessary, create the /mnt/partition directory. Once youve mounted
the /partition, simply use vi, Emacs, or another text editor to access the
/etc/shadowfile and edit the file so that the user account of your choice
(e.g., the root account) no longer contains the hashed password
information. Then, unmount this partition, reboot, and access your Linux
system in a standard session. At this point, youll be able to log in to the
account without specifying a password.
Resetting GRUB Boot Password Protection
But, you ask, what if you have password-protected GRUB and have
forgotten that password? Isnt it impossible to get past this password to
enter single-user mode? With SystemRescueCd, you can mount the
/boot partition, or the root (/) partition, as discussed above.
To begin, switch to the /boot/grub/ directory and copy the unedited file
http://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.linux-magazine.com%2fOnline%2fFeatures%2fResetting-Passwords-with-SystemRescueCd&id=ma-130516195455-a60ff29ahttp://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdf -
7/28/2019 Www Linux Magazine Com Online Features Resetting Passwords w
12/17df di b PRO i A d l ? T t th HTML t PDF API
to the same directory under a new name:
cp /boot/grub/menu.lst /boot/grub/menu.lst_bak
This is an important step, just in case you edit the file incorrectly. In a
text editor, edit the /boot/grub/menu.lst file and look for the following
line:
password -md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
Now, comment out the password entry and save your changes. Then,
unmount the directory and reboot your system. Once youve taken
these steps, youll be able to bypass the GRUB password.
Resetting Passwords on a Windows System
You can use the tools on your disk to boot into a Windows partition as
well. Suppose you want to boot into Windows and change the password
for a user account.
To begin, boot into SystemRescueCd and using fdisk to list existing
partitions like this:
fdisk -l
Next, look for an NTFS partition that appears to be the Windows system
partition. For example, you might see a line that reads:
/dev/sda3 (NTFS)
http://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.linux-magazine.com%2fOnline%2fFeatures%2fResetting-Passwords-with-SystemRescueCd&id=ma-130516195455-a60ff29ahttp://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdf -
7/28/2019 Www Linux Magazine Com Online Features Resetting Passwords w
13/17df di b PRO i
Are you a developer? Try out the HTML to PDF API
Once you have found the correct NTFS drive (Ill assume it is
/dev/sda3), use the ntfs command:
ntfs -3g /dev/sda3 /mnt/windows -o force
This command mounts the NTFS drive on /dev/sda3 onto your local
/mnt/windows/drive. If this drive isnt available, create it as follows:
mkdir /mnt/windows
Once youve mounted the NTFS drive onto the /mnt/windows/drive,
change to it:
cd /mnt/windows/Windows/System32/config
Now, you are ready to use the chntpwcommand to list the Windows
accounts in the SAM database:
chntpw -l SAM
The result of the preceding command will be a list of user account
names.
Next, you can select the account name that requires a password reset.
In this case, Ill assume you want to change the account of a user
named James Stanger:
chntpw -u "James Stanger"
http://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.linux-magazine.com%2fOnline%2fFeatures%2fResetting-Passwords-with-SystemRescueCd&id=ma-130516195455-a60ff29ahttp://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdf -
7/28/2019 Www Linux Magazine Com Online Features Resetting Passwords w
14/17df di b PRO iAre you a developer? Try out the HTML to PDF API
Once you issue the above command, you will see a menu of various
options. To reset the password, press 1 and Enter. You will be asked to
confirm that you want to reset this account, so press the ykey and
Enter. The account is now reset.
To reboot, enter the rebootcommand and press Enter. Youll find you
can get into your account (e.g., James Stanger) without entering a
password.
SystemRescueCd makes it pretty easy. The preceding steps will simply
change the password. If you want to get full read-write access to a
Windows disk, you can enter the command
ntfs-3g /dev/sda1 /mnt/windows
and then youll be able to mount the disk and copy or even write files to
it. I would recommend, however, simply copying files from your Windows
system; writing to another filesystem is always fairly r isky, especially one
that isnt based on Linux. Once you have mounted your Windows drive,
you can then simply navigate through it using the cdcommand as you
would a Linux system more or less.
Conclusion
Now you know how to give your system passwords the boot. Although
you might be able to reset your passwords in Linux single-user mode,
accessed through the GRUB (or LILO) bootloader, SystemRescueCd
offers another, more versatile alternative.
I suppose its worth reiterating
http://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.linux-magazine.com%2fOnline%2fFeatures%2fResetting-Passwords-with-SystemRescueCd&id=ma-130516195455-a60ff29ahttp://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdf -
7/28/2019 Www Linux Magazine Com Online Features Resetting Passwords w
15/17df di b PRO iAre you a developer? Try out the HTML to PDF API
I suppose it s worth reiterating
here that youre not supposed to
use these tools for malicious
purposes. And by malicious, I
mean youre not supposed to use
these tools to break into
someone elses system or view
information and data that isnt meant for you. If I need to spell this out
further, I suggest you get out of techie mode for a bit and take a good
ethics class. At any rate, SystemRescueCd is a powerful tool. Enjoy
using it responsibly!
Info
[1]UNetbootin
0 t
http://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.linux-magazine.com%2fOnline%2fFeatures%2fResetting-Passwords-with-SystemRescueCd&id=ma-130516195455-a60ff29ahttp://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdfhttp://unetbootin.sourceforge.net/ -
7/28/2019 Www Linux Magazine Com Online Features Resetting Passwords w
16/17
Are you a developer? Try out the HTML to PDF API
0 comments
Leave a message...
Best
No one has comment
2013 Medialinx AGGlossary
http://engine.adzerk.net/r?e=eyJhdiI6MTMzMTUsImF0IjozLCJjbSI6MTk2NjUsImNoIjo3Mjk0LCJjciI6NTE5MTEsImRpIjoiMjUzZWEyMWFlM2MyNGU3OTkwOGNiNjZiNWFiODA3MzciLCJkbSI6MSwiZmMiOjc0MTA4LCJmbCI6Mzc1NDgsImt3IjoiVDpIVFRQLFM6U3VicGFnZSIsIm53Ijo0NjY5LCJydiI6MCwicHIiOjE3NTI0LCJzdCI6MjA5NzcsInpuIjoxNjA5NywidXIiOiJodHRwOi8vc2hvcC5saW51eG5ld21lZGlhLmNvbS91cy9tYWdhemluZXMvbGludXgtbWFnYXppbmUtbGludXgtcHJvLW1hZ2F6aW5lL2RpZ2l0YWwtc3Vic2NyaXB0aW9uLmh0bWwifQ&s=xkJ0g6OoIRcIRY46Bouf2tOe548http://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.linux-magazine.com%2fOnline%2fFeatures%2fResetting-Passwords-with-SystemRescueCd&id=ma-130516195455-a60ff29ahttp://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdfhttp://disqus.com/http://linuxpromagazine.disqus.com/resetting_passwords_with_systemrescuecd/latest.rsshttp://engine.adzerk.net/r?e=eyJhdiI6MTMzMTUsImF0IjozLCJjbSI6MTk2NjUsImNoIjo3Mjk0LCJjciI6NTE5MTEsImRpIjoiMjUzZWEyMWFlM2MyNGU3OTkwOGNiNjZiNWFiODA3MzciLCJkbSI6MSwiZmMiOjc0MTA4LCJmbCI6Mzc1NDgsImt3IjoiVDpIVFRQLFM6U3VicGFnZSIsIm53Ijo0NjY5LCJydiI6MCwicHIiOjE3NTI0LCJzdCI6MjA5NzcsInpuIjoxNjA5NywidXIiOiJodHRwOi8vc2hvcC5saW51eG5ld21lZGlhLmNvbS91cy9tYWdhemluZXMvbGludXgtbWFnYXppbmUtbGludXgtcHJvLW1hZ2F6aW5lL2RpZ2l0YWwtc3Vic2NyaXB0aW9uLmh0bWwifQ&s=xkJ0g6OoIRcIRY46Bouf2tOe548http://www.medialinx-gruppe.de/ -
7/28/2019 Www Linux Magazine Com Online Features Resetting Passwords w
17/17
pdfcrowd.comopen in browser PRO version Are you a developer? Try out the HTML to PDF API
http://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.linux-magazine.com%2fOnline%2fFeatures%2fResetting-Passwords-with-SystemRescueCd&id=ma-130516195455-a60ff29ahttp://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdf