From owner-freebsd-questions Mon Jan 10 6:27: 3 2000 Delivered-To: freebsd-questions@freebsd.org Received: from willamette.cbn.net.id (willamette.cbn.net.id [202.158.3.6]) by hub.freebsd.org (Postfix) with SMTP id CFCAB151E6 for ; Mon, 10 Jan 2000 06:26:56 -0800 (PST) (envelope-from m4v3r1ck@bigfoot.com) Received: (qmail 83064 invoked by uid 1016); 10 Jan 2000 21:27:12 +0700 Received: from unknown (HELO mona.viper.com) (202.158.25.15) by willamette.cbn.net.id with SMTP; 10 Jan 2000 21:27:12 +0700 Received: (qmail 900 invoked by uid 1001); 10 Jan 2000 14:20:59 -0000 Date: Mon, 10 Jan 2000 21:20:59 +0700 From: John Indra To: FreeBSD Questions Subject: Re: /etc/ppp/ppp.linkup not working Message-ID: <20000110212059.C757@bigfoot.com> Mail-Followup-To: FreeBSD Questions References: <20000109160531.A529@bigfoot.com> <20000109124940.C327@marder-1> <20000109143335.A6814@sr.se> <20000109171850.D327@marder-1> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20000109171850.D327@marder-1>; from mark@ukug.uk.freebsd.org on Sun, Jan 09, 2000 at 05:18:50PM +0000 X-Homepage: http://www.bigfoot.com/~m4v3r1ck Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG -----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