Thank you all for your suggestions,
i think i have now enough ways to solve my problem.
i will try the suggestions and take one...
Clemens
Tomasz Motylewski wrote:
> On Mon, 7 Aug 2000, Clemens [iso-8859-1] K�hnle wrote:
>
> > It supports su but not with parameter -c!
> > So su <user> changes the login without any more necc. input, but how can i
> > start now an application?
>
> Check which shell is being run, and add the application to the startup script
> for that shell and user like .profile .bashrc .bash_profile etc.
>
> OR
>
> write a simple "wrapper" program calling your application.
> (this is really around 3-4 lines of C code)
>
> setuid(users_id);
> execlp("/full/path/program","argument 1", NULL);
>
> OR (probably best solution)
>
> make your application the default shell of your user in /etc/passwd
> and use su without any options.
> Tomek
--
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>.