-----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/
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
[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:[/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.
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/
[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