[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Exim4 sendmail problem {permission denied}



On Fri, Jun 17, 2005 at 12:54:57PM +0200, Michal Sedlak wrote:
> Hello
>  I have problem with exim4. It looks like exim do not have permission
> to write to log files. I have googled and find out to check if it is
> runned with root suid, or something, but I do not know how.

Just check the file permissions of the executable:

$ ls -l /usr/sbin/exim4
-rwsr-xr-x    1 root     root       669752 May 27 00:00 exim4
   ^            ^^^^
The marked elements mean it is "suid root" (set UID root), i.e. that
the process will run as root, even if the program is executed by a
non-root user.

> 
> I have got theese errors:
> 2005-06-17 12:35:20 1DjEC0-0000iB-7Q Cannot open main log file "/var/log/exim4/mainlog": Permission denied: euid=102 egid=102

The "euid=102" indicates it is _not_ running as root...
The easiest way to fix this is probably to reinstall exim4 properly,
in particular package exim4-daemon-(light|heavy), which contains
/usr/sbin/exim4 -- not sure what went wrong in your case.

HTH,
Almut



Reply to: