me wants 2 boot to the shell WITHOUT AUTHENTICATION!
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
me wants 2 boot to the shell WITHOUT AUTHENTICATION!
how can i manage to boot up my linux box straight to the shell prompt WITHOUT any authentication, directly as the root user??
it might sound crazy, but im the only one in my universe, and i want to use this box as a node on a cluster...but please dont let that influence ur answer !!
As far as I know this isn't possible. Don't think there is any way around it without probably alot of hacking, etc.
Is there any reason you need this done? Is it that hard to type in a password or even just stayed logged in? This isn't very secure you know and I truly wouldn't recommend it.
Have you tried changing your runlevel to 1? That might work. Also, you can mess with your inittab so that instead of dumping you into a regualr terminal it would dump you right into bash after boot. Lemme know if you want more info on that.
well..lemme get this straight first....i want to do this because i have two pcs but only a single monitor.....i want to be able to access the other pc which does not have a monitor, with the one that does...so i want to configure it to boot up without any need for i/p, upto the bash prompt so that i can access the disks and all, and even form a cluster for experiments...
and security isnt an issue...both are private issues..and i really dont care if someone hacks into my system and looks at my girl`s pics..:-D..or messes it up, for that matter..but that dosent mean i welcome it! :-o
anyway, thanx for ur time and suggestions, any more are welcome....
PS...Guru, if i screw up my inittab, how do i recover from it? i dont suppose a boot floppy wud be of any help if the system refuses to boot after that?
If your innittab file get's messed, there is a thing called Zool Linux which boots from a floppy and allows you to fix things like that. Second of all, with what you want to do, you should be able to have it set itself up automatically at boot time. I don't really see why you would go through all the trouble to get just bash when you could just setup what you want automatically. Or maybe I am confused about exactly what you are trying todo...
Also you could get a KVM, 1 monitor, mouse and keyboard, many computers.
What makes you think you can't access the machine with no monitor and it has to autologin? If you have the correct services started like ssh or telnet, etc, you could access and login that way or maybe setup NFS or Samba to access the disks. But you don't need to have an autologin to access your computer at all.. that's just crazy...
I realize the point is moot now...but if you really did want to start your system without a login (for a test machine, or some other reason..) you could pass:
Code:
init=/bin/sh
on the kernel command-line. This would drop you strait into bash (or whatever your default shell is...)
WARNING: this is really unsafe, as mentioned above...don't do this on your father's linux box...only on one that is NOT publically accessable, or an embedded project you may be working on or similar.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.