On Fri, Feb 25, 2000 at 11:20:46AM +1100, Melinda Taylor wrote:

> I don't want my network interface to be activated at boot time,
> but when I do want to activate it, is there an easier way to
> do it rather than su-ing, then opening up the control-panel
> and using the netcfg part, clicking on interfaces and activate?

I'm not entirely sure how netcfg works, but it does have an option
somewhere to allow any user to start the interface.  The scripts it runs
are in /etc/sysconfig/network-scripts.  netcfg can be run as a standalone
binary, it doesn't have to be started by control-panel, saving you a
couple of mouse clicks :-)

Now, having told you that, here's another way to do it:

A couple of weeks ago (9 Feb, subject "Re: [SLUG] PPP0 Autodial") I posted
some details on how to setup pppd to dial on boot and keep the link up
permanently.  With minor changes, this can be converted to dial on demand
and not redial automatically (remove the `persist' option in the peer
file, and don't start it from /etc/rc.d/rc.local).  Then do this (as
root):

  # create a group for users allowed to start pppd (it may already exist)
  groupadd pppusers
  # change group of pppd binary
  chgrp pppusers /usr/sbin/pppd
  # and make it suid and executable by the group and root only
  chmod 4750 /usr/sbin/pppd
  # add yourself to the pppusers group, keeping your existing group
  # memberships (this is important, the -G switch to usermod *replaces*
  # your current group memberships with the list you give it, so you need
  # to tell it all your current groups too)
  usermod $USER -G `groups|sed -e 's/ /,/g'`,pppusers

If you don't understand what these commands do, read the man pages first.

You can then start pppd with:

  pppd call <peer filename>

If you can't find my earlier reply in the archive let me know and I'll
send it to you.

Cheers,

John
-- 
whois [EMAIL PROTECTED]
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text

Reply via email to