On Sat, Nov 02, 2002 at 06:02:33PM +0100, Peter Hanusiak wrote:
> On Sat, Nov 02, 2002 at 08:57:04AM +0000, Brian Candler wrote:
> > 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);
> Yes! It works. Thank you. You help me a lot!
You can also look at the sudo command, or djb's setuidgid program as
ways of not having to write your own setuid wrapper.
-Peter
--
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.
-------------------------------------------------------
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