Still can't get fetchmail to run as user "mail"
OK I tried making my /etc/ppp/ip-up.d/fetchmail-up script as follows:
#!/bin/sh
su - -c '/usr/bin/fetchmail --fetchmailrc /etc/ppp/.fetchmailrc --idfile
/etc/ppp/.fetchids' mail
Here is the error I get when trying to run this script as user root:
# ./fetchmail-up
fetchmail: couldn't time-check the run-control file
fetchmail: lstat: /etc/ppp/.fetchmailrc: Permission denied
Here is the listing of the .fetchids and .fetchmailrc files
-rw------- 1 mail mail 1 Mar 27 01:08
/etc/ppp/.fetchids
-rw------- 1 mail mail 560 Mar 27 00:23
/etc/ppp/.fetchmailrc
Is there some problem with what I have done?
Regards.
Mark.
Reply to: