Solved

Startup script for single-user mode

Posted on 2003-10-22
2
287 Views
Last Modified: 2013-12-16
Hi,

i setup my Linux RH8 instalation in single user mode in /etc/iniitab. What i'm looking for is how can i start an interactive script to get some user input right after the boot process has finished and the system prompt is shown.

I checked out scripts in /etc/rc1.d and scripts in ~/.profile, ~/.bash_profile and so on. But the scripts in rc1.d execute and does not wait for user input and the profile scripts does not execute at all (i guess the shell is no login-shell).

I need this to automate a process for end-user with minimal interaction. The user at least must confirm to continue.

Thank you, Peter.
0
Comment
Question by:adminpeter
2 Comments
 
LVL 1

Accepted Solution

by:
AgelmarJagad earned 50 total points
ID: 9618448
Are you having your system boot up into single user mode?  The point of that mode is you are logged in as root and have no scripts to run.  It is a maintenance runlevel.  You should be booting you machine in runlevel 3 (no X) or 5.
0
 

Author Comment

by:adminpeter
ID: 9625507
Ok, after thinking about that question it is not so hard to do a logon script for each task and each task will be a user with no passwd. So end user must type only the user name.

Thank you so far, Peter.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question