Solved

Startup script for single-user mode

Posted on 2003-10-22
2
286 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

932 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now