Clemens,
For many purposes, it is sufficient to define the environment variable
USER in your bash startup script:
USER="specialusername" # or whatever
export USER
make sure you have a /etc/passwd file with at least
specialusername::0:0:::
in it; you shouldn't need a password, home or shell defined; the 0,0
entry gives your special user the same permissions as root.
Peter Johnson
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?
>
> Thanks for any suggestions
> Clemens
--
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the command "unsubscribe linux-embedded" in the message body.
For more information, see <http://waste.org/mail/linux-embedded>.