Date: Mon, 10 Jan 2000 21:20:59 +0700 From: John Indra <m4v3r1ck@bigfoot.com> To: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: /etc/ppp/ppp.linkup not working Message-ID: <20000110212059.C757@bigfoot.com> In-Reply-To: <20000109171850.D327@marder-1>; from mark@ukug.uk.freebsd.org on Sun, Jan 09, 2000 at 05:18:50PM %2B0000 References: <20000109160531.A529@bigfoot.com> <20000109124940.C327@marder-1> <20000109143335.A6814@sr.se> <20000109171850.D327@marder-1>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sun, Jan 09, 2000 at 05:18:50PM +0000, Mark Ovens wrote: | > > Try changing it to ``bg! /usr/local/bin/maildirsmtp........'' | > Sorry to interfere, but it should be !bg shouldn't it?! | Yes, you are right. These old fingers just aren't as co-ordinated as | they used to be ;) Thanx for the help... Now... report time... After doing some debugging, it turned out that there was nothing wrong with my /etc/ppp/ppp.linkup. Permission of 600 root.wheel perfectly OK, even if I run ppp as user john. I changed the /usr/local/bin/maildirsmtp to /sbin/ping bla.bla.bla... It worked! Now, what happened here is: on normal condition, I must be root to issue maildirsmtp. So, I guess... when I run ppp as user john, ppp have tried to execute maildirsmtp, but maildirsmtp refused to run... Hmmm... this is getting weird though, cause, even with permission 600 for /etc/ppp/ppp.linkup (root.wheel), ping is running automatically even if I run ppp as user john! I'm confused here as I don't fully understand the mechanism of who execute what and what is the power of the program executed afterwards... So if all of you ladies and gentlemen might still care to help me, please lighten me up... ;) Review of problem: I don't want to execute ppp as root. Logging as usual user then invoking su -m just to run ppp and exit, then when I have to shut ppp up, I must su -m again, kill ppp then release the root power one more time... I find this... not practical ;) So, in my /etc/ppp/ppp.conf entry, I add allow user john, and of course user john has already been added to the network group [john@mona john]$ id uid=1001(john) gid=1001(john) groups=1001(john), 0(wheel), 69(network) [john@mona john]$ ls -l /etc/ppp/ppp.linkup - -rw------- 1 root wheel 87 Jan 9 22:18 /etc/ppp/ppp.linkup [john@mona john]$ cat /etc/ppp/ppp.linkup cbn: !bg /usr/local/bin/maildirsmtp blah... blah... blah... [john@mona john]$ grep maildirsmtp /var/log/ppp.log ... Jan 9 21:38:45 mona ppp[1536]: tun0: IPCP: myaddr 202.158.62.174 hisaddr = 202.158.2.228 Jan 9 21:38:45 mona ppp[1536]: tun0: Command: cbn: !bg /usr/local/bin/maildirsm tp ~alias/pppdir alias-ppp- 202.158.3.6 `hostname` ... Hmmm... Vim wrap those lines... ;) As I've said, maybe, just a hunch... maildirsmtp was executed by ppp, but, it won't run... I've tried to add Error entry to set log in /etc/ppp/ppp.conf, but I guess, the Error is not for looking whether the program executed or not, cause, I ain't seeing it... Sorry... for the confusion I've made ;) Thanx... for any replies... Regards, John Indra -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.0 (FreeBSD) Comment: Be the best! iD8DBQE4eerLxcp0HIxafmQRAlHaAJ9hyFFwn5Tnh+n+4zGKe/gj1PvA+gCaA9sb eRTg/45BTvrwrmlCuGMLHAs= =m9kM -----END PGP SIGNATURE----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000110212059.C757>