Adding a shell script in start up of single user mode..
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
Adding a shell script in start up of single user mode..
please help me out ...
I want to add a shell script of passwd prompt in the single user mode runlevel at the start up.
i am working on red hat v5.
i have already made my shell scripts
Last edited by logan_the_wolverine; 02-21-2012 at 03:17 AM.
I'd expect that this is not a good solution to your problem, can you explain more about what you want here? If you're doing this from a security perspective, I would suggest using a boot loader password to prevent unauthorized boot configs, e.g. going into init 1 in the first place. Messing with the runlevel setup itself is very likely to bring up other issues.
yes you are right my friend...acid_kewpie
that going in runlevel and init file is massive work. and also boot loader configuration is best way in the security perspective.
but i only have to add a shell script in the startup of single user mode. shell script is for printing a massage on system screen using echo command. please tell me formal step for adding a shell script in the startup of single user mode.
yes you are right my friend...acid_kewpie
that going in runlevel and init file is massive work. and also boot loader configuration is best way in the security perspective.
but i only have to add a shell script in the startup of single user mode. shell script is for printing a massage on system screen using echo command. please tell me formal step for adding a shell script in the startup of single user mode.
Ahh...so a homework question, then?? Consider looking in the /etc/init.d/rc1.d directory, and putting a link to your shell-script in that.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.