-------- Original Message --------
Subject: Re: initial bash script
Date: Fri, 04 Aug 2000 13:29:46 +0200
From: Stephan Linz <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Organization: MAZeT GmbH, NL Jena
To: Clemens Kühnle <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>



Clemens Kühnle wrote:

> Hello
>
> I'm using LEM Distribution an a small system.
> I want to run a special bash script after init has finished ( e.g.
> started from a rc script ).
> This script should then start my applications.
> The applications should start without any user input.
> ( embedded system without keyboard ... )
> I want to run the applications not by root!
>
> How can i run a bash script with a special user?
> The way i know is that i have to login with user and password.
> How can i avoid this?

USE:

    su <username> -c <bash_script> -s /bin/bash


DESCRIPTION:

    -c    the command su will run
    -s    the shell su will use for command



good luck
Stephan

>
>
> Thanks for any suggestions
> Clemens

--

======================================================================
Stephan Linz
Software Engineer

MAZeT GmbH                   Email:   mailto:[EMAIL PROTECTED]
Branche office Jena          Phone:   +49-3641-2809-55
Göschwitzer Straße 32        Fax  :   +49-3641-2809-12
D-07745 JENA
Germany

Visit our web-pages: http://www.MAZeT.de
======================================================================

S/MIME Cryptographic Signature

Reply via email to