Clemens Kühnle wrote:
> > su <username> -c <bash_script> -s /bin/bash
>
> Thanks for all sugesstions
>
> LEM does not support su -c
> It supports su but not with parameter -c!
OH! BusyBox.
>
> So su <user> changes the login without any more necc. input, but how can i
> start now an application?
> I tried su <user> | application but the application is running again with
> the user root.
Pipe is wrong. Use a shell script as below in context of root:
#!/bin/sh
# first change user to <user>
# (have to call as root --> no password required)
su <user>
# now call your application here
/pathtoscript/script
# or source your script (bash or ksh)
. /pathtoscript/script
>
> Itried to copy a su from Suse 6.2 but it needs the libpam libs. After
> copiing the necc. libs no login with su was possible.
> Perhaps I can use login -f <user>.
PAM is a modular auth. system and not used in LEM. To use it, you have to copy
the several pam modules too.
> --snip--
Stephan Linz
--
======================================================================
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