Solved

Startup script for single-user mode

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

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). …
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

707 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

17 Experts available now in Live!

Get 1:1 Help Now