i have borrowed an external d-link modem, which i've configured thru wvdial (thanx 4 answering my previous mail 2 help me do that) when i try 2 use kppp, it says "sorry, can't open modem"
how do i configure the modem (d-link dfm 560-e (external)) in kppp. also i was able 2 configure my internal modem thru kppp in rhl 7.1 but every time i ran kppp, it asked me for the root passwd. i tried changing the access permissions of /usr/bin/kppp & also /usr/sbin/kppp to 777, but it did not make the problem go. b'coz of the need 2 provide the root passwd every time it is reqd 2 connect 2 the net, i can't have my younger brother access the net thru linux
Hi ,
Just check what is the device ur kppp is trying to connect to... and see whether it is available in /dev/ directory... Check in the steup -> devices ........ of kppp
Just set the 's' bit for kppp , i think then u should be able to connect to net using normal user account.... u canset the bit using " chmod u+s `which kppp` " this command . You got to be root to do this.
Well n joy Tapesh
--- Pradnyesh Sawant pradnyesh@gmx.net wrote:
i have borrowed an external d-link modem, which i've configured thru wvdial (thanx 4 answering my previous mail 2 help me do that) when i try 2 use kppp, it says "sorry, can't open modem"
how do i configure the modem (d-link dfm 560-e (external)) in kppp. also i was able 2 configure my internal modem thru kppp in rhl 7.1 but every time i ran kppp, it asked me for the root passwd. i tried changing the access permissions of /usr/bin/kppp & also /usr/sbin/kppp to 777, but it did not make the problem go. b'coz of the need 2 provide the root passwd every time it is reqd 2 connect 2 the net, i can't have my younger brother access the net thru linux
-- _______________________________________________
__________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
On Wed, 15 Jan 2003, Tapeshwar Nath wrote:
Just set the 's' bit for kppp , i think then u should be able to connect to net using normal user account....
setting uid may be risky IMHO instead u can try this (as i do with my RHL 7.2 ): use visudo to edit sudoers file :
#visudo
User_Alias NETUSERS=brother # use ur brother's login name here
Cmnd_Alias CONNECTPROG=/usr/bin/wvdial # use kppp here in ur case
NETUSERS ALL=NOPASSWD:CONNECTPROG
now save the file and all the users in NETUSERS will be able to connect without furnishing the root password. see also : man visudo
HTH
On Wednesday 15 January 2003 10:22 pm, Pradnyesh Sawant wrote:
i have borrowed an external d-link modem, which i've configured thru wvdial (thanx 4 answering my previous mail 2 help me do that) when i try 2 use kppp, it says "sorry, can't open modem"
how do i configure the modem (d-link dfm 560-e (external)) in kppp. also i was able 2 configure my internal modem thru kppp in rhl 7.1 but every time i ran kppp, it asked me for the root passwd. i tried changing the access permissions of /usr/bin/kppp & also /usr/sbin/kppp to 777, but it did not make the problem go. b'coz of the need 2 provide the root passwd every time it is reqd 2 connect 2 the net, i can't have my younger brother access the net thru linux
There is only one problem... kppp uses "/dev/modem" as the default modem device, whereas an external modem on Linux is identified by /dev/ttySx port. ( /dev/ttyS0 => COM1, /dev/ttyS1 => COM2, /dev/ttyS2 => COM3 etc..) Any external modem in Linux does not need to be "installed" (like Windows) explicitly. Hence, there is nothing which will create this symlink for you.
You have two choices to solve the problem. 1. Create the symlink manually by logging in as root and doing #ln -si /dev/ttySx /dev/modem Replace ttySx with your com port.
2. Configure kppp to use the serial port device instead of the standard /dev/modem. Go to kppp setup. Go to "device" tab. Select the "Modem device" as the serial port where your modem is connected.
You don't need any superuser rights to do this(except if you're creating the symlink manually).... Also, the program kppp is run under consolehelper about which I guess Philip has already discussed. So for running kppp as well you don't need any su permissions.