Michael McLeod wrote:
> There is one problem I am having and I cannot seem to
> find the answer. I have created a user so I won't have to log in all
> the time as "root". I have given this user the maximum permissions (all
> those listed in Gnome) but, this user, "mmcl" cannot access the modem
> and dial out.
There are several ways to fix this. The way I fixed it depends on the fact
that I use Red Hat's usernet and usernetctl commands to establish the PPP
connection. I did the initial PPP configuration as root by running the
netcfg utility, which I like much more than Linuxconf. Then I added
selected family members to the pppusers group in /etc/group. Then I
changed the group ownership and execution permissions of usernetctl:
chown root.pppusers /usr/sbin/usernetctl
chmod g+x /usr/sbin/usernetctl
chmod u+s /usr/sbin/usernetctl
The resulting permissions should be:
-rwsr-x--- 1 root pppusers 5896 Nov 30 20:51
/usr/sbin/usernetctl
This allows the owner and anyone in the group "pppusers" to execute the
usernetctl program. It also makes the program setuid, which means it
assumes the privileges of its owner (in this case, root) when it runs.
That way it can run pppd, ifconfig, and route, as required to establish
the connection.
I use the modemlights GNOME panel applet to call usernetctl to start/stop
the connection. The commands are:
/usr/sbin/usernetctl ppp0 up
and
/usr/sbin/usernetctl ppp0 down
Tony
--
Anthony E. Greene <[EMAIL PROTECTED]>
Homepage & PGP Key <http://www.pobox.com/~agreene/>
Linux: The choice of a GNU Generation.
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.