8 messages in net.sourceforge.lists.courier-usersRe: [courier-users] Run courier-imap ...
FromSent OnAttachments
Peter HanusiakNov 1, 2002 8:45 am 
Brian CandlerNov 1, 2002 1:41 pm 
Sam VarshavchikNov 1, 2002 3:03 pm 
Peter HanusiakNov 1, 2002 3:08 pm 
Brian CandlerNov 2, 2002 12:59 am 
Peter HanusiakNov 2, 2002 8:59 am 
Peter C. NortonNov 2, 2002 10:01 am 
Peter HanusiakNov 2, 2002 12:58 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] Run courier-imap as non-root userActions...
From:Peter C. Norton (spac@lenin.nu)
Date:Nov 2, 2002 10:01:36 am
List:net.sourceforge.lists.courier-users

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