Solved

Startup script for single-user mode

Posted on 2003-10-22
2
295 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

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…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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.:
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.
Suggested Courses

739 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