# Disable root password in run level 1 mode

**URL:** <https://forums.suse.com/t/disable-root-password-in-run-level-1-mode/23383>\
**Category:** SLED Configure-Administer\
**Created:** [December 7, 2012, 4:20pm UTC](https://forums.suse.com/t/disable-root-password-in-run-level-1-mode/23383 "2012-12-07T16:20:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![c0nsaw](https://avatars.discourse-cdn.com/v4/letter/c/91b2a8/32.png) [@c0nsaw](https://forums.suse.com/u/c0nsaw)\
**Post date:** [December 7, 2012, 4:20pm UTC](https://forums.suse.com/t/disable-root-password-in-run-level-1-mode/23383/1 "2012-12-07T16:20:57Z")

</div>

Hi folks,

Id like to disable root password request when booting in single user mode. (like its done in fedora etc 🙂 )

Ive tried to edit inittab in a vm to test, but I keep breaking it :-p

any advise on how to do it appreciated

Regards

SLES 11 SP1 btw

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [December 7, 2012, 4:29pm UTC](https://forums.suse.com/t/disable-root-password-in-run-level-1-mode/23383/2 "2012-12-07T16:29:36Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1  
[color=blue]

> Id like to disable root password request when booting in single user  
> mode. (like its done in fedora etc 🙂 )[/color]

Interesting question… why?  
[color=blue]

> SLES 11 SP1 btw[/color]

This is the forum for SLED… Desktop version of SLE vs. the Server  
version of SLE.

Anyway, have you tried putting the following in grub as an alternative:

init=/bin/bash

That should drop you directly to a basic shell from which you can access  
the system.

The purpose, in my mind, of runlevel 1 is to (as we all know) have a  
single user, but since there is a “user” and not just a shell that user  
should still need to authenticate since, by definition, that user is  
‘root’. Anybody walking past the terminal, otherwise, who can reboot  
the machine, can do anything. With a password there at least somebody  
needs to be able to tweak grub or the bios or something outside the OS  
which usually means they not only can access the terminal but also the  
internals.

Good luck.  
-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v2.0.19 (GNU/Linux)  
Comment: Using GnuPG with undefined - [http://www.enigmail.net/](http://www.enigmail.net/)

iQIcBAEBAgAGBQJQwf1PAAoJEF+XTK08PnB5XcEQAJ8SHhGfMHc2BhxgEyv+GqV+  
C81LHrMEngOxelbVQsgOAtEVabafpLoH+0GRRqV5xjRGG3l9En2y+Z88jO4ntOC+  
36hTHkg9S/fgw9c3oiuRDCO8YfU3YhSwt3qkV26lUjrjQsn+62BkQ9tp/4QsGsER  
2eCxQdkya6VNm38h6BdaG+7IC+CmBLZPe3KZo7Ogu8k4+0HSf5BLWbxRdA6aNF0R  
c0wLozbyfbw7HiwEGDeVmRH9exMW3pitqAXnbMw3iS5qYPnfXs4NB1E2kqAH5w53  
wm3HiMrP7/OYp7Vwqfb1H1i5SL92kiqYYpfwoCCrjwwa9scbWWmOQG4LEA8EYYEP  
mxsUVITZC+wxapk10tppji591FMUMOBtdGKF7m4vQXkx0TumqFlnwUbumPL5zAV3  
3PCLVheN+KiAeAJugKssuovbdztV+xtUhv7SegAF3+fiNVnxNaEvmX3QwghXZu2M  
msvGa1ME5sdFDiO+TXXYVC8xJLe6AvpzfKGXvN3zBe2uoPPpgbEr7uS/hr7RGOTR  
C/wtc46V7cARt6VxAHOYbb55gLrsW1Q3T8yuUF0u8xjYWuPM/FsJCC2B6nhq0LIY  
BCareofTlcE06BtIEnTkPYDYSz6zFA5j8MvgiRYv23MRr8afAUDKbUdj7yKF3HHi  
O+TPJe26s0xxrCRwPIRY  
=J4bo  
-----END PGP SIGNATURE-----

---

<div class="post-metadata">

**Author:** ![c0nsaw](https://avatars.discourse-cdn.com/v4/letter/c/91b2a8/32.png) [@c0nsaw](https://forums.suse.com/u/c0nsaw)\
**Post date:** [December 7, 2012, 5:13pm UTC](https://forums.suse.com/t/disable-root-password-in-run-level-1-mode/23383/3 "2012-12-07T17:13:56Z")

</div>

Apologies for the wrong forum 🙂

I’m a student intern, and at my company in my role I provide a lot of vm’s for customers etc, usually this is a manual process and I manage all parts of the OS deployments.  
We are currently moving to in house made vm deployment tool that our customers can use a webpage and select and deploy their own vm’s with a couple of clicks of the mouse.

So currently I’m preparing a SLES 11 vm template, and first thing I need it to be able do after install is for run level 1 be passwordless so i can run a post install config script we have that sets up our nis logins autofs etc…quite easy in fedora as I said, as run level 1 is passwordless.

Im fairly new to linux, so this is good learning, I do understand the implications of a more insecure run level 1, but in this instance its controlled 🙂

Thanks for getting back to me so fast

---

<div class="post-metadata">

**Author:** ![mikewillis](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@mikewillis](https://forums.suse.com/u/mikewillis)\
**Post date:** [December 7, 2012, 10:13pm UTC](https://forums.suse.com/t/disable-root-password-in-run-level-1-mode/23383/4 "2012-12-07T22:13:35Z")

</div>

> [@c0nsaw;10533](#):
>
> …so i can run a post install config script we have that sets up our nis logins autofs etc…

You may want to look at AutoYaST. You can configure stuff like NIS and Autofs in the AutoYaST profile. You can also have it run post install scripts.

You ought to be using with SP2, not SP1. According to [SP2 release notes](https://www.suse.com/releasenotes/x86_64/SUSE-SLES/11-SP2/#rnotes-purpose):

> [@](#):
>
> At the end of the six-month parallel support period, on 2012-08-31, support for SUSE Linux Enterprise Server 11 Service Pack 1 will be discontinued.

---

<div class="post-metadata">

**Author:** ![c0nsaw](https://avatars.discourse-cdn.com/v4/letter/c/91b2a8/32.png) [@c0nsaw](https://forums.suse.com/u/c0nsaw)\
**Post date:** [December 7, 2012, 10:26pm UTC](https://forums.suse.com/t/disable-root-password-in-run-level-1-mode/23383/5 "2012-12-07T22:26:19Z")

</div>

[QUOTE=mikewillis;10538]You may want to look at AutoYaST. You can configure stuff like NIS and Autofs in the AutoYaST profile. You can also have it run post install scripts.

You ought to be using with SP2, not SP1. According to [SP2 release notes](https://www.suse.com/releasenotes/x86_64/SUSE-SLES/11-SP2/#rnotes-purpose):[/QUOTE]

SP1 (Amongst many other distros and kernel vesrions ) is used for running nightly builds, its all lab environment not our production, so no problems there, I just want to be able run a bash script that bangs out our post install configs, so Im really only looking at getting single user mode, paswordless. 😃

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [December 7, 2012, 11:02pm UTC](https://forums.suse.com/t/disable-root-password-in-run-level-1-mode/23383/6 "2012-12-07T23:02:38Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

I wasted an hour this morning looking into this and so now I’m back for  
more information.

How do you access this in an automated fashion (I assume it’s automated,  
anyway… it’s a VM after all, and presumably the first boot)?

Any reason you want to do this from a shell and not without any kind of  
login at all… for example using a one-time init script? SUSE Studio  
does this kind of thing (which you can use for free to build your VM for  
use wherever) but you can do it on your own by dropping your script in  
something like /etc/init.d/boot.d/S99boot.firsttime so that it’s  
executed automatically without needing your login at all, and without  
modifying SUSE to be less-secure like other distros, and stuff. Have  
the last line in that script clean itself up (`rm /etc/init.d/boot.d/S99boot.firsttime`).

Good luck.  
-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v2.0.19 (GNU/Linux)  
Comment: Using GnuPG with undefined - [http://www.enigmail.net/](http://www.enigmail.net/)

iQIcBAEBAgAGBQJQwlluAAoJEF+XTK08PnB5kMsP/3QEQoDYz7lJR3ZF69bQyOQO  
iT2rDks6diah2Nfe6o9UkArox7yPoKocOyWM+Z8cRPykBdj2pmk2mTovQIMKLNbX  
Ah6aNPsTXUtgg9u0IkB2ZVNRl0T1DxvmEoL+RIDHmpXvgKp21R/HPoAkinrqXgLu  
u1hDlMMKGWJ8f9EYYgy+NHB+9OOtsSVdY6aED7hJNCMoAH5rSas2z4KVhFhWig2n  
NiVRZnvlompnkedJaoIwhGPHWfBKYmPrYur+s9lqJg5KlNpKkiHI+1GctyTbdiWH  
t4GVcU9Tm4hf7ZjeyARaw8WQOc1fdRLt20hPEaC3Ubf0HD4e1Pg4HoxN8UPW1zst  
v0E6EHdAPM8taBvTvFiuJ0e/st0nWN3ljuWeFphqfsx/HfIKDaVFSYW/XdlTkcjz  
b0OYCQrk8zR4AHy+iaoUGZA4rjY083/3fqs6KVrtXtqM67S19zBqYSqk1/WjC+h6  
OnqddsTvHvINVtKM508Nepwjw5flucE//Hj7dphl1TNP+q2M+fSpCT4vyiqkr3k0  
zeTGpX43S2TV+0dE8V3EwSXGI4QufuMU0FdlDa3bJF1oUebR2+BVjMwDtYOShdet  
SLM4AxWt8lvkUP0f0eRp0swd8cExsNSJuZGTNWcPmxDhbKQVQucBBNd35zggZFQr  
gV4Y3BR3+Im3JJghZHMU  
=86zI  
-----END PGP SIGNATURE-----

---

<div class="post-metadata">

**Author:** ![c0nsaw](https://avatars.discourse-cdn.com/v4/letter/c/91b2a8/32.png) [@c0nsaw](https://forums.suse.com/u/c0nsaw)\
**Post date:** [December 7, 2012, 11:26pm UTC](https://forums.suse.com/t/disable-root-password-in-run-level-1-mode/23383/7 "2012-12-07T23:26:52Z")

</div>

[QUOTE=ab;10542]  
I wasted an hour this morning looking into this and so now I’m back for  
more information. [/quote] ha, dont waste your time, was hoping for a quick fix 🙂

[quote]How do you access this in an automated fashion (I assume it’s automated,  
anyway… it’s a VM after all, and presumably the first boot)? [/quote]Im sorry, could you be clearer, Im not sure what part you are referring to 🙂

[quote]Any reason you want to do this from a shell and not without any kind of  
login at all… for example using a one-time init script? SUSE Studio  
does this kind of thing (which you can use for free to build your VM for  
use wherever) but you can do it on your own by dropping your script in  
something like /etc/init.d/boot.d/S99boot.firsttime so that it’s  
executed automatically without needing your login at all, and without  
modifying SUSE to be less-secure like other distros, and stuff. Have  
the last line in that script clean itself up (`rm /etc/init.d/boot.d/S99boot.firsttime`).[/quote]I dont want to get into too much detail, lets just say I work for a company, the largest manufacturer of cpu’s in the world, all our Lab OS distros are pre configured by IT Global specifically for lab environment, and we deliver them via PXE boot to the vm, so a custom build, with SUSE studio isnt an option, I need to boot the single user shell on first instance of the newly created vm, which runs the post config but also on first boot allows the customer to set their own hostname, vm will then reboot into normal run level 3

thanks for your time
