Atlantic.Net Cloud – How to enter single user mode for Centos Cloud servers

Atlantic.Net NOC
by (68posts) under Cloud Hosting
0 Comments
Verified and Tested 02/28/2015

Introduction

This article will show you how to enter single user mode for maintenance of multi-user environments or changing/resetting a lost superuser password of Centos servers.

Why do I need this?

My cloud server will only enter read-only mode, FSCK complains about permissions, or I need to make sure no one can access my server while I make security changes.

I forgot my cloud server password and I would not like to use the automated password reset feature (see https://www.atlantic.net/cloud-hosting/how-to-resetting-atlantic-net-cloud-server-password/).

You will need to access your cloud server using the provided VNC. See the following URL on how to access the server: https://www.atlantic.net/cloud-hosting/how-to-using-vnc-access-cloud-server/.

Entering Single User mode for Centos

Once you have decided that single user mode is the only way you can, or want to proceed, you will need to VNC to the server. Don’t worry about logging into the server at this point, since this process will need you to reboot the server.

From the cloud portal issue a hard reboot, instructions here: https://www.atlantic.net/community/howto/soft-or-hard-reboot-a-atlantic-net-cloud-server/

Once you issue the hard reboot, you will need to click refresh at the top right of the VNC screen since the hard reboot will reset that connection. You need to click this refresh very quickly otherwise you will miss the boot screen where you can interrupt the boot process.

SUM_1

When the server starts to boot, you will see a GRUB menu/screen. You will need to interrupt the boot by pressing any key.

SUM_2

Now you can edit the default kernel your system boots to. By default, the most recently added kernel is at the top of the list and is the default kernel. This kernel should already be highlighted for you.

Press e to edit.

SUM_3

Go to the line that starts with kernel, and press e to edit.

SUM_4

Add the word “single”, no quotes needed, to the end of the line and then press Enter.

SUM_5

SUM_6

Press b to boot into the newly edited kernel.

SUM_7

Now you are in single user mode. You may perform actions such as FSCK, passwd, and other commands for maintenance.


Related Posts


Free Consultation

Are you searching for a solution to tackle a unique strategic challenge, but unsure where to start?

Atlantic.Net can assist your organization in developing a customized hosting plan from design to implementation.

Get Free Consultation Today!

New York, NY

100 Delawanna Ave, Suite 1

Clifton, NJ 07014

United States

Dallas, TX

2323 Bryan Street,

Dallas, Texas 75201

United States

San Francisco, CA

2820 Northwestern Pkwy,

Santa Clara, CA 95051

United States

Orlando, FL

440 W Kennedy Blvd, Suite 3

Orlando, FL 32810

United States

London, UK

14 Liverpool Road, Slough,

Berkshire SL1 4QZ

United Kingdom

Toronto, Canada

20 Pullman Ct, Scarborough,

Ontario M1X 1E4

Canada

Resources