[97211] in RedHat Linux List
Re: Initiating pppd as a user
daemon@ATHENA.MIT.EDU (Matthew Saltzman)
Sun Nov 1 22:33:57 1998
From: Matthew Saltzman <mjs@math.clemson.edu>
Date: Sun, 1 Nov 1998 22:33:09 -0500 (EST)
To: redhat-list@redhat.com
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
Rich Shepard <rshepard@appl-ecosys.com> wrote:
>> The RedHat admin tools work just fine to set this up. Follow the
>> menus
>>
>> Linxconf-->Networking-->PPP/SLIP/PLIP-->ppp0-->Hardware
>>
>> and select "Allow any user...". Or
>
>Matthew,
>
> I'm part way there. Did the above and tried running /etc/ppp/if-up ppp0 as
>a user. I wasn't allowed to because when I let linuxconf make the changes
>(and, BTW, allowing users to initiate pppd had already been set), it took
>off the suid bit on /usr/sbin/pppd. The error message was that one had to be
>root to run the program.
The RedHat network management tools include a wrapper program
(/usr/sbin/usernetctl) that takes care of setting the uid when network
interfaces are managed by users (see below). pppd need not be setuid
root unless it is invoked directly.
> In /etc/ppp/if-up it says to not modify that file, but to make changes in
^^ip
>a local version. Could it be that I need to copy the file to each user's
>/home directory and modify it for use there? If so, what does each copy need
>to contain? And, what is the syntax to invoke pppd as a user?
>/usr/ppp/if-up ppp0 and /usr/ppp/if-down ppp0? I suppose that I could add
^^ip ^^ip
>/usr/ppp to each user's path.
RedHat network management is handled by a set of scripts and config
files in /etc/sysconfig. The "normal" /etc/ppp scripts are bypassed.
This method supports the unified management of networks using the
RedHat admin tools. The scripts /sbin/ifup and /sbin/ifdown manage
all the interfaces configured by Linuxconf or Control-panel. So once
you've configured using these tools, use exactly "ifup ppp0" and
"ifdown ppp0" (assuming you named the interface ppp0).
Matthew Saltzman
Clemson University Math Sciences
mjs@clemson.edu
http://www.math.clemson.edu/~mjs
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.