On Sat, Nov 02, 2002 at 12:15:02AM +0100, Peter Hanusiak wrote:
> > su xxx -c "/path/to/courier-imap/libexec/authlib/authdaemond start"
>
> Yes it works perfectly. Thank you. But now I have issue with authdaemond
> processes. They start only when the user which owns them has in
> /etc/passwd as shell /bin/bash . When I change it to /bin/true it does
> not work. Is it possible to start it as user which don't have a shell?

Under FreeBSD, there is a '-m' option to su which makes the login happen as
_your_ shell rather than the account's shell. I don't know about other OSes.

Otherwise, write a C program which just calls
   setgid(n);
   setuid(m);
   execl("/path/to/authdaemond", "authdaemond", "start", 0);


-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm 
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to