On Fri, Nov 01, 2002 at 05:52:15PM +0100, Peter Hanusiak wrote:
> I want to ask how to setup courier-imap service to run as non-root
> user on RedHat box. I tried to change
> /usr/lib/courier-imap/libexec/pop3d.rc (also ssl and imap stuff)
> script to start
> /usr/lib/courier-imap/libexec/couriertcpd
> with additional params
> -user
> -group
> then I saw that all imap processes are running under my user, except the
> /usr/lib/courier-imap/libexec/authlib/authdaemond.mysql
> they was running under root. When I tried to log in thru the imap or po3
> I saw in maillog message
> Nov  1 11:23:13 klifton imapd: Connection, ip=[::ffff:192.168.0.121]
> Nov  1 11:23:13 klifton imapd: authdaemon: connect: Permission denied
> 
> So it was not working. Can you tell what I am doing wrong? I really
> don't want to run courier-imap as a root user from certain reasons.

Probably wrong permissions on the .../var/authdaemon/ subdirectory. Try
chown'ing the directory to the user which you are running courier as.

Incidentally, you don't need to modify the .rc scripts for this, just add
the -user=xxx command to TCPDOPTS in the 'pop3d' and 'imapd' config files.

If you want authdaemond to run as a non-root user too, then you will need to 
use su:

su xxx -c "/path/to/courier-imap/libexec/authlib/authdaemond start"

(which you can do by modifying pop3d.rc), and make sure that all the config
files which authdaemon needs to read are visible to this user.

Regards,

Brian.


-------------------------------------------------------
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