SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Use the instructions of our beloved Slackware maintainer
It's in the first cd, in Slackware-HOWTO file. (in slack 10.1 at least)
Quote:
Passwords and security
----------------------
When choosing passwords for a Linux system that is connected to a network
you should pick a strong password. However, passwords only help protect a
system from remote trespassing. It's easy to gain access to a system if
someone has physical access to the console.
If you forget the root password, you can use a rescue disk to mount your
root partition and edit the files containing the password information.
If you have a bootable CD-ROM drive, the second CD-ROM provides a full
bootable version of Linux (with no root password) and makes an excellent
rescue disk. Otherwise, use the bootdisk that you used to install Linux
to load the "rescue.dsk" rootdisk image. At the prompt, you can manually
mount the root Linux partition from your hard drive and remove the root
password. For example, if your root linux partition is /dev/hda2, here
are the commands to use after logging into the rescue disk as "root":
mount /dev/hda2 /mnt
cd /mnt/etc
Next, you'll need to edit the "shadow" file to remove root's password.
Editors which might be available include "vi", "emacs", and "pico". "vi"
and "emacs" might be more of an adventure than you need unless you've used
them before. The "pico" editor is easy for beginners to use.
pico shadow
At the top of the file, you'll see a line starting with root. Right after
root, you'll notice the encrypted password information between two colons.
Here's how root's line in /etc/shadow might look:
root:EnCl6vi6y2KjU:10266:0:::::
To remove root's password, you use the editor to erase the scrambled text
between the two colons, leaving a line that looks like this:
root::10266:0:::::
Save the file and reboot the machine, and you'll be able to log in as root
without a password. The first thing you should do is set a new password
for root, especially if your machine is connected to a network.
*EDIT*
the command to set a new password is passwd
Last edited by perfect_circle; 03-07-2005 at 08:39 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.