Linuxathome.net - Linux news and help for home broadband internet users
 Home | Files | Case Mods | Reviews | Forum | Search | Links | RDF Feed | Contact
Sections

Installation Guide
Setting Up
Internet Sharing
Port Forwarding
Services Config
Installing Programs
Game Servers
Using IPTables
Useful Commands
Kernel Upgrading
System Recovery
Red Hat 7.2 Setup
OpenBSD Setup
BPA Login Setup
PPPoE Setup
Add New Hardware
Using PPTP VPN
VMware ESX Cmds
Our RC5 Team
Folding@Home
Help Support Us

 
Articles
Linux Security
NetStats FAQ
Linux KIS Trojan
CAT5/LAN Cables
Domain Names
Presario RH Install APC Debian DVD
 
Slashdot.org
  • Python Developer Survey: 55% Use Linux, 6% Use Python 2
  • 'Is It Ethical to Have Children in the Face of Climate Change?'
  • Tech Worker Builds Free AI-Powered Tool For Fighting US Health Insurance Denials
  • Oceanographers Mapping Underwater Mountain Find Flying Spaghetti Monster
  • Washington Post Calls Telegram 'a Haven for Free Speech - and Child Predators'
  • Inside Boeing's Factory Lapses That Led To the Alaska Air Blowout
  • Long Covid Knocked a Million Americans Off Their Career Paths
  • How Not To Hire a North Korean IT Spy
  • How a Group of Teenagers Pranked 'One Million Checkboxes'
  • Woman Mailed Herself an Apple AirTag To Help Catch Mail Thieves
  • Google Play Store Can Finally Update Multiple Apps At Once
  • Scientists Detect Invisible Electric Field Around Earth For First Time
  • US Government Opens Up 31 Million Acres of Federal Lands For Solar
  • Apple Stands By Decision To Terminate Account Belonging To WWDC Student Winner
  • Wells Fargo Worker Dies At Desk, Nobody Notices For Four Days
  •  
    Affiliates

    TweakTown.com
    ZGeek.com
    pebkac-consulting.com.au

      Linux System Recovery

     

    As with any system you are bound to run into trouble every now and then (it is unfortunate but true), on this page we aim to provide solutions to many different problems that you might come across while using your Linux system so that you may be able to easily overcome them without further problems.

     

      Recovery Solutions

     
    Forgotten ROOT Password

    1. At the LILO boot prompt, enter (boot) into your system using single user mode with your preferred method:

    • linux 1
    • linux single
    • linux init=1

    Some distros actually need the root password to boot into single user mode, in this case bypass with linux init=/bin/sh.

    2. Type passwd to reset the root password. Once again, some distros will ask you for the old root password before you can set a new one. If this is the case, you have to manually edit /etc/shadow and remove the encrypted password like the following example:

    Original /etc/shadow:
    root:abcdefghijklmnopqrstuvwxyz01234567890:11596:0:99999:7:-1:-1:134539268

    Basically you need to remove the bold text from the above example (this should be the first line of your file), since it is your password in encrypted form everyone's will be different.

    Modified /etc/shadow:
    root::11596:0:99999:7:-1:-1:134539268

    Reboot your system and log with no password then reset with passwd. Now your system should be back up and running with the new root password, this time try not to forget it, but if you do at least now you know how to get around it.

     

    Preventing System Booting Into X11

    Alot of the time people will install X11 and then want to change their system configuration so that it doesn't load by default when the system boots, this is rather easy and can be done by the following few steps:

    1. Edit /etc/inittab with your favourite text editor (e.g. pico /etc/inittab).

    2. Change this line:

    id:5:initdefault:

    to this:

    id:3:initdefault:

    This will boot to run level 3... Multi-user, network, command line. Right above the line will be a section of comments explaining the run levels.

    3. Save the changes and your done, the next time you reboot the system you will no longer have X11 starting on boot. To run it later, simply type startx (e.g. startx kde or startx gnome if you have both installed).

    Something similar can be done if you want your LILO boot loader to change from graphics to text when the system boots, just follow these quick steps:

    1. Edit /etc/lilo.conf with your favourite text editor (e.g. pico /etc/lilo.conf).

    2. Find the following line:

    message=/boot/message

    and add a # infront of it so it looks like this:

    #message=/boot/message

    3. Save the file and then run LILO by typing /sbin/lilo.

    Next time you reboot you will get a text only boot loader.

    Proudly Hosted By:
    Hosted by PEBKAC Consulting

    Please read our Legal Notice for information concerning our site and its content.
    All logos and trademarks in this site are property of their respective owner. All the rest © 2000 - 2016 by Linuxathome.net

    Reviews

    D-Link DI-704P
    VIA EPIA-M 9000
    Tux Applique
    Ricoh MP5125A
    AMD XP 2600+
    3DProphet 9000Pro
    Radeon 9700 Pro
    XTNDAccess IrDA
    Netgear FS-524s
    DSR2161 KVM
    Game TheaterXP & XPS-510 Speakers
    3D Prophet 4000XT
    AutoView 400
    Back-UPS CS 350
    Dual Neon Kit
    SwitchView KVM
    20x4 LCD Kit
    Window Kit

     
    LinuxSecurity
  • 5 Open-Source Blockchain Technologies That Linux Users Need to Know About
  • The Three Best Tools You Need to Scan Your Linux System for Malware
  • Navigating the Linux Kernel's Latest DMA Security Vulnerability
  • Staying a Step Ahead of Adversaries: Mitigating Chromium's Security Flaws on Linux
  • Slackware: 2024-244-01: libpcap Security Advisory Update
  • Fedora 40: microcode_ctl 2024-5c5c384fa7 Security Advisory Updates
  • Fedora 40: python3.11 2024-985017d277 Security Advisory Updates
  • Fedora 40: xen 2024-91ddad6c8b Security Advisory Updates
  • Fedora 39: xen 2024-ed546e3543 Security Advisory Updates
  • Debian: DSA-5762-1: webkit2gtk Security Advisory Updates
  •  
    Google Search
    Enter Keywords:

     
    Bash Jokes

    % got a light?

    No match.

     
    Virtualization, Virtual Machine & Virtual Server Consolidation - VMware

    The Community ENTerprise Operating System

    Get Slackware Linux

    Use OpenOffice.org

    Use Asterisk