Article View: comp.mail.sendmail
Article #3650Re: How does sendmail/majordomo work??
From: Dave Addison
Date: Fri, 25 Aug 2000 00:00
Date: Fri, 25 Aug 2000 00:00
46 lines
1639 bytes
1639 bytes
You could try /usr/sbin/pppd su - fred -c /usr/bin/fetchmail /etc/ppp/stop as the su man page says that "-c /usr/bin/fetchmail" should be passed as parameters to the shell started as user fred or /usr/sbin/pppd su fred /usr/bin/fetchmail exit /etc/ppp/stop as the exit command should return control to the root shell that ran su I haven't been able to try either of these as I'm at work and haven't got root access Dave Geoff Cox <geoff.cox@cableinet.co.uk> wrote in message news:88hcqs4d9f19k1qph2vf32nfhvcnnlk2dm@4ax.com... > Thanks for the info - finally got majordomo working !! > > Cheers > > Geoff > > PS I am trying to write a script to automate this (via crontab) but do > not know how to su root and pass the password in the script ? > > /usr/sbin/pppd > su fred > /usr/bin/fetchmail > su root > /etc/ppp/stop > > Any ideas? > > Cheers > > Geoff
Technical Details
Message-ID:
<8o5ibg$m1g$1@mosquito.HL.Siemens.DE>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<vovnps0hq8ukp4lrrucc6c18dui8531083@4ax.com> <39A19174.420090C4@coruscant.demon.co.uk> <88hcqs4d9f19k1qph2vf32nfhvcnnlk2dm@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 108f6a,da7735bbb1614bc X-Google-Attributes: gid108f6a,public X-Google-Thread: 10de99,da7735bbb1614bc X-Google-Attributes: gid10de99,public From: "Dave Addison" <dave@phaedra1.demon.co.uk> Subject: Re: How does sendmail/majordomo work?? Date: 2000/08/25 Message-ID: <8o5ibg$m1g$1@mosquito.HL.Siemens.DE> X-Deja-AN: 662311412 References: <vovnps0hq8ukp4lrrucc6c18dui8531083@4ax.com> <39A19174.420090C4@coruscant.demon.co.uk> <88hcqs4d9f19k1qph2vf32nfhvcnnlk2dm@4ax.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: Siemens AG, Munich X-MSMail-Priority: Normal Newsgroups: comp.mail.sendmail,demon.ip.support.unix