Skip to main content

How-To: Recover root password under linux with single user mode.

It happens sometime that you can't remember root password. On Linux, recovering root password can be done by booting Linux under a specific mode: single user mode.
This tutorial will show how to boot Linux in single user mode when using GRUB and finally how to change root password.

During normal usage, a Linux OS runs under runlevels between 2 and 5 which corresponds to various multi-user modes. Booting Linux under runlevel 1 will allow one to enter into a specific mode, single user mode. Under such a level, you directly get a root prompt. From there, changing root password is a piece of cake. read more

Comments

Popular posts from this blog

Fixing Unix/Linux/POSIX Filenames

Traditionally, Unix/Linux/POSIX filenames can be almost any sequence of bytes, and their meaning is unassigned. The only real rules are that "/" is always the directory separator, and that filenames can't contain byte 0 (because this is the terminator). Although this is flexible, this creates many unnecessary problems. In particular, this lack of limitations makes it unnecessarily difficult to write correct programs (enabling many security flaws), makes it impossible to consistently and accurately display filenames, causes portability problems, and confuses users. more ....

Many Companies Hold Vast Data but Are Unprepared for LLM Fine-Tuning: How to Solve It and What to Do About It

  Many Companies Hold Vast Data but Are Unprepared for LLM Fine-Tuning: How to Solve It and What to Do About It In today’s data-driven world, companies across various industries generate and store vast amounts of data. From customer interactions and sales transactions to sensor readings and user-generated content, organizations are sitting on treasure troves of information. However, when it comes to leveraging this data for fine-tuning large language models (LLMs), many companies find themselves unprepared. The growing need for AI-powered solutions requires adapting these models to specific organizational needs—a task that demands both the right infrastructure and expertise. The Challenge: Vast Data, But Lacking Readiness for LLM Fine-Tuning Large language models, such as OpenAI’s GPT or Google’s Bert, have revolutionized industries by providing AI capabilities for natural language understanding, generation, and analysis. However, these models are typically pre-trained on generaliz...

Backing up MySQL data.

Backing up files and directories is relatively easy; databases, however, have some special quirks that you need to address. Our examples use MySQL, but the same principles apply to PostgreSQL and other relational databases. This article is excerpted from O'Reilly's recently published book Linux System Administration .