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 :newbie: |
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. |
Quote:
|
@logan:
"Adding a shell script" is not the right answer to this problem. init(8) already has a means for solving this. Read the inittab(5) manpages. For further clarification, read (under the heading -- Enable Authentication for Single-User Mode): http://www.cyberciti.biz/tips/tips-t...le-access.html Point is, don't reinvent the wheel. It is as simple as: Code:
~:S:wait:/sbin/sulogin |
All times are GMT -5. The time now is 11:43 AM. |