On Thursday 14 Nov 2002 12:34 pm, Derek Jennings wrote:
> On Thursday 14 Nov 2002 4:22 am, Matthew Harrison wrote:
> > Hi all,
> >    I was just wondering if it is possible to use both my modem and my
> > ethernet for internet connectivity.  I have a Toshiba Laptop (Satellite
> > 1800-S204) and at work I use the built in ethernet card to get on the
> > internet via windows, but I want to start using linux.  At home I have
> > dial-up and I have a modem card installed and it is detected and will
> > connect, but I cannot do anything on the net.  I guess the question is
> > can linux be set up to know to use either/or for the net?  Thanks.
> >
> > -Matt
>
> Yes you can.
> Open Mandrake Control Centre>Network>Connection
>
> Near the top of the GUI you see a box marked profile which contains the
> entry 'default'   - This defines your default internet access, and is most
> likely currently set for 'lan' and in the box underneath you probably see
>
> Internet Access
> Type :  lan
>
> Now create a new profile - call it dialup or something , select the new
> profile in the drop down list, and then go through the Wizard. In the
> wizard unselect lan, and select modem, give the dial up parameters for your
> ISP. Exit with 'OK'
>
> Now when you click on the 'Internet' icon on your desktop you can select
> dialup from the Profile selection, and the button underneath will switch to
> 'Connect:modem'
>
> Thats it. Just switch between the two profiles any time you want to change
> your connect method.
>
> derek

While I was looking up the info to reply to this mail. It occurred to me that 
the big problem with the 'Internet' icon on the Mandrake desktop is that it 
has to be run as root, wheras the KDE dialler kppp can run as a user. So I 
took a look at it and found a way to run the Internet icon as a user.

The Internet icon ultimately calls a process called /usr/sbin/net_monitor  
which has its security managed by PAM (I mentioned that a few days ago)
By default the security is set up to only allow root to access net_monitor.
To fix it for all users edit the file
/etc/pam.d/net_monitor to look like this:-

#%PAM-1.0
auth       sufficient   /lib/security/pam_rootok.so
#auth       required /lib/security/pam_stack.so service=system-auth
account    required /lib/security/pam_permit.so
session    optional /lib/security/pam_xauth.so
#added dj to allow any user to dial out
auth            required /lib/security/pam_console.so

Thats it!

HTH

derek


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to