Suse 7.3 Personal It works in root not as user User is in Dialout and uucp groups In help center "modem" --Configure Modem Anew this worked as root --Wvdial Permission Denied /dev/ttyS? all permissions 660 Root uucp --Netscape Unable to locate server tested with numeric address for Suse http://194.112.123.200 Error: "Connection refused" What is left to get user permission to access the internet and email? CWSIV ________________________________________________________________ The best thing to hit the internet in years - Juno SpeedBand! Surf the web up to FIVE TIMES FASTER! Only $14.95/ month - visit www.juno.com to sign up today!
On 09/23/2003 11:18 AM, Carl William Spitzer IV wrote:
--Wvdial Permission Denied /dev/ttyS? all permissions 660 Root uucp
--Netscape Unable to locate server tested with numeric address for Suse http://194.112.123.200 Error: "Connection refused"
What is left to get user permission to access the internet and email?
Check the permissions on /etc/wvdial.conf. Maybe you edited this file and changed the group by accident. -- Joe Morris New Tribes Mission Email Address: Joe_Morris@ntm.org Web Address: http://www.mydestiny.net/~joe_morris Registered Linux user 231871 God said, I AM that I AM. I say, by the grace of God, I am what I am.
According to this i can get in when I first log in as root I can then access the web. Changing wvdial.conf permissions to 655 worked but I still must run it in console first. Now I have a curious question how do I get the system to dial when go to www.oclug.org ??? See OUTPUT: below CWSIV On Tue, 23 Sep 2003 21:44:56 +0800 "Joe Morris (NTM)" <Joe_Morris@ntm.org> writes:
On 09/23/2003 11:18 AM, Carl William Spitzer IV wrote:
--Wvdial Permission Denied /dev/ttyS? all permissions 660 Root uucp
--Netscape Unable to locate server tested with numeric address for Suse http://194.112.123.200 Error: "Connection refused"
What is left to get user permission to access the internet and email?
Check the permissions on /etc/wvdial.conf. Maybe you edited this file
and changed the group by accident.
OUTPUT: linux:/home/cwsiv # cat /etc/wvdial.conf [Dialer Defaults] Area Code = Password = [[[[[edited]]]]] Baud = 115200 Init1 = ATZ Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 Auto DNS = 1 Phone = 2052041 Tonline = 0 Modem = /dev/ttyS0 Modem Name = Dial Command = ATDT Idle Seconds = 0 Compuserve = 0 Modem Type = Analog Modem Username = cwsiv Stupid Mode = 1 ISDN = 0 Force Address = linux:/home/cwsiv # wvdial --> WvDial: Internet dialer version 1.42 --> Initializing modem. --> Sending: ATZ ATZ OK --> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 OK --> Modem initialized. --> Sending: ATDT2052041 --> Waiting for carrier. ATDT2052041 CONNECT 115200 --> Carrier detected. Starting PPP immediately. --> Starting pppd at Tue Sep 23 11:49:56 2003 --> pid of pppd: 1780 --> pppd: Using interface ppp0 --> pppd: Authentication (PAP) started --> pppd: Authentication (PAP) successful --> pppd: local IP address 66.81.178.16 --> pppd: remote IP address 69.19.219.69 --> pppd: primary DNS address 66.81.7.70 --> pppd: secondary DNS address 66.81.0.252 --> pppd: Script /etc/ppp/ip-up run successful --> Default route Ok. --> Nameserver (DNS) Ok. --> Connected... Press Ctrl-C to disconnect Caught signal #2! Attempting to exit gracefully... --> pppd: Terminating on signal 15. --> pppd: Script /etc/ppp/ip-down started --> pppd: Terminate Request (Message: "User request") --> pppd: Connect time 11.4 minutes. --> Disconnecting at Tue Sep 23 12:01:20 2003 linux:/home/cwsiv # whereis wvdial wvdial: /usr/bin/wvdial /usr/bin/wvdial.lxdialog /usr/bin/wvdial.tcl /etc/wvdial .conf /usr/share/wvdial /usr/share/man/man1/wvdial.1.gz Permissions ls /dev/ttyS* -l crw-rw---- 1 root uucp 4, 64 Sep 23 11:49 /dev/ttyS0 crw-rw---- 1 root uucp 4, 65 Sep 23 2001 /dev/ttyS1 crw-rw---- 1 root uucp 4, 74 Sep 23 2001 /dev/ttyS10 crw-rw---- 1 root uucp 4, 75 Sep 23 2001 /dev/ttyS11 crw-rw---- 1 root uucp 4, 76 Sep 23 2001 /dev/ttyS12 crw-rw---- 1 root uucp 4, 77 Sep 23 2001 /dev/ttyS13 crw-rw---- 1 root uucp 4, 78 Sep 23 2001 /dev/ttyS14 crw-rw---- 1 root uucp 4, 79 Sep 23 2001 /dev/ttyS15 crw-rw---- 1 root uucp 4, 80 Sep 23 2001 /dev/ttyS16 crw-rw---- 1 root uucp 4, 81 Sep 23 2001 /dev/ttyS17 crw-rw---- 1 root uucp 4, 82 Sep 23 2001 /dev/ttyS18 crw-rw---- 1 root uucp 4, 83 Sep 23 2001 /dev/ttyS19 crw-rw---- 1 root uucp 4, 66 Sep 23 2001 /dev/ttyS2 crw-rw---- 1 root uucp 4, 84 Sep 23 2001 /dev/ttyS20 crw-rw---- 1 root uucp 4, 85 Sep 23 2001 /dev/ttyS21 crw-rw---- 1 root uucp 4, 86 Sep 23 2001 /dev/ttyS22 crw-rw---- 1 root uucp 4, 87 Sep 23 2001 /dev/ttyS23 crw-rw---- 1 root uucp 4, 67 Sep 23 2001 /dev/ttyS3 crw-rw---- 1 root uucp 4, 68 Sep 23 2001 /dev/ttyS4 crw-rw---- 1 root uucp 4, 69 Sep 23 2001 /dev/ttyS5 crw-rw---- 1 root uucp 4, 70 Sep 23 2001 /dev/ttyS6 crw-rw---- 1 root uucp 4, 71 Sep 23 2001 /dev/ttyS7 crw-rw---- 1 root uucp 4, 72 Sep 23 2001 /dev/ttyS8 crw-rw---- 1 root uucp 4, 73 Sep 23 2001 /dev/ttyS9 linux:/home/cwsiv # ls /etc/wvdial* -l -rw------- 1 root root 336 Sep 22 19:20 /etc/wvdial.conf linux:/home/cwsiv # linux:/home/cwsiv # ls /usr/bin/wvdial -l -rwxr-xr-x 1 root root 114780 Sep 19 2001 /usr/bin/wvdial linux:/home/cwsiv # linux:/home/cwsiv # exit exit cwsiv@linux:~> wvdial --> Can't read config file /etc/wvdial.conf: Permission denied cwsiv@linux:~> cwsiv@linux:~> su Password: linux:/home/cwsiv # chmod 655 /etc/wvdial.conf linux:/home/cwsiv # exit exit cwsiv@linux:~> wvdial --> WvDial: Internet dialer version 1.42 --> Initializing modem. --> Sending: ATZ ATZ OK --> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 OK --> Modem initialized. --> Sending: ATDT2052041 --> Waiting for carrier. ATDT2052041 CONNECT 115200 --> Carrier detected. Starting PPP immediately. --> Starting pppd at Tue Sep 23 12:24:09 2003 --> pid of pppd: 2034 --> pppd: Using interface ppp0 --> pppd: Authentication (PAP) started --> pppd: Authentication (PAP) successful --> pppd: local IP address 66.81.192.224 --> pppd: remote IP address 69.19.219.69 --> pppd: primary DNS address 66.81.7.70 --> pppd: secondary DNS address 66.81.0.252 --> pppd: Script /etc/ppp/ip-up run successful --> Default route Ok. --> Nameserver (DNS) Ok. --> Connected... Press Ctrl-C to disconnect Caught signal #2! Attempting to exit gracefully... --> pppd: Terminating on signal 15. --> pppd: Script /etc/ppp/ip-down started --> pppd: Terminate Request (Message: "User request") --> pppd: Terminate Request (Message: "User request") --> Disconnecting at Tue Sep 23 12:26:19 2003 ________________________________________________________________ The best thing to hit the internet in years - Juno SpeedBand! Surf the web up to FIVE TIMES FASTER! Only $14.95/ month - visit www.juno.com to sign up today!
I looked for that program in 7.3 personal and did not find it. Did the program have another name in 7.3? CWSIV On Wed, 24 Sep 2003 00:37:32 +0200 (CEST) "Carlos E. R." <robin1.listas@tiscali.es> writes:
The 03.09.23 at 13:43, Carl William Spitzer IV wrote:
Now I have a curious question how do I get the system to dial when go to www.oclug.org ???
configure autodial.
-- Cheers, Carlos Robinson
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
________________________________________________________________ The best thing to hit the internet in years - Juno SpeedBand! Surf the web up to FIVE TIMES FASTER! Only $14.95/ month - visit www.juno.com to sign up today!
The 03.09.24 at 11:04, Carl William Spitzer IV wrote:
I looked for that program in 7.3 personal and did not find it. Did the program have another name in 7.3?
It is not a program, but a setting. A quick browse found an article about autodial in the SDB, but it is in german and I don't read german. It is also known as "dial on demand", and there are several articles on it: 8 articles were found for DEMAND: * Dial-on-Demand Connection Does Not Stop (25.06.2003) * Dial-on-Demand Causes Error Messages During the Boot Process (25.03.2003) * ADSL in SuSE 7.0 or Later Version, Dial on Demand (28.02.2002) * DSL and Dial on Demand 7.2 (15.01.2002) * SuSE6.4: Dial on demand with wvdial doesn't work (19.04.2000) * ISDN: Switch on/off dial on demand (06.02.1998) * * Seting up ISDN with YaST1 And finally, read the SuSE documentation. Yast will configure it. -- Cheers, Carlos Robinson
What I have is a normal external 56k modem. I need more memory on the box before I can use 8.2 I checked Yast1 and did not find autodial perhaps thats for the Pro versions. BElow is what i found under Dialup in the sdb on the box. As you can see it refers to obsolete directory structures not all of which migrated from /sbin to /etc Suggestions or corrections? CWSIV On Thu, 25 Sep 2003 01:20:33 +0200 (CEST) "Carlos E. R." <robin1.listas@tiscali.es> writes:
The 03.09.24 at 11:04, Carl William Spitzer IV wrote:
I looked for that program in 7.3 personal and did not find it. Did the program have another name in 7.3?
It is not a program, but a setting. A quick browse found an article about autodial in the SDB, but it is in german and I don't read german.
It is also known as "dial on demand", and there are several articles on it:
8 articles were found for DEMAND:
* Dial-on-Demand Connection Does Not Stop (25.06.2003) * Dial-on-Demand Causes Error Messages During the Boot Process (25.03.2003) * ADSL in SuSE 7.0 or Later Version, Dial on Demand (28.02.2002) * DSL and Dial on Demand 7.2 (15.01.2002) * SuSE6.4: Dial on demand with wvdial doesn't work (19.04.2000) * ISDN: Switch on/off dial on demand (06.02.1998) * * Seting up ISDN with YaST1
And finally, read the SuSE documentation. Yast will configure it.
========================================================================= wvdial and dial-on-demand Support knowledgebase (hoe_wv_dod_start)Applies to SuSE Linux: Version 6.3 Object: The connection to the internet has to be made automatically, for example when Netscape is asked to retrieve an external URL. It should disconnect when the link has been idle for a certain amount of time. Proceed as follows: A script to initiate Login as user root Save the script mentioned below as /sbin/init.d/wvdial.dod Change the rights of the file to make it executable: chmod 744 /sbin/init.d/wvdial.dod Make the following link so the script can be reache more easily ln -s /sbin/init.d/wvdial.dod /sbin/wvdial.dod The script can be started using the following syntax: wvdial.dod start [subsection ...] subsection is the name of the parameter section for your non default provider. This is optional. There is further information in the man-pages of wvdial (man wvdial) on using more providers. Although the scrip can only be started as root, any user can use the connection. wvdial.dod restart Stop the running deamon and start a new one. wvdial.dod hangup Break the connection manually. This can only be done as root wvdial.dod stop Stop the deamon If the script should be started automatically at boot time, make the following links: ln -s /sbin/init.d/wvdial.dod /sbin/init.d/rc2.d/S20wvdial.dod ln -s /sbin/init.d/wvdial.dod /sbin/init.d/rc3.d/S20wvdial.dod ln -s /sbin/init.d/wvdial.dod /sbin/init.d/rc2.d/K20wvdial.dod ln -s /sbin/init.d/wvdial.dod /sbin/init.d/rc3.d/K20wvdial.dod The provider mentioned in [Dialer Defaults] will be called. Extra options for configuring in the configuration file of wvdial/etc/wvdail.conf /etc/wvdail.conf can be expanded with the following options: Remote IP=nnn.nnn.nnn.nnn Stores the IP of your povider In most cases (dynamic IP-assigning) this is a dummy address that is replaced by your provider during the login/startup of the ppp link. This is preconfigured with 192.168.99.99 In most cases you do not need to change this. Local IP=nnn.nnn.nnn.nnn Stores your local IP-address, used by your ppp connection. Again in most cases this is changed during loging, so it contains a dummy. This is preconfigured with 192.168.99.1 and need not to be changed in most cases. Idle=n If for n seconds no traffic passes the link. The connection wil be terminated. This is preconfigured for 180 seconds Defaultroute=yes|no When this is yes the PPP-connection is the gateway for all non-local connections, as is preconfigured. Important: In the file /etc/wvdail.conf comments (startin with ;) may not be used when you use the /sbin/init.d/wvdial.dod script. #! /bin/bash # # Copyright (c) 1999 SuSE GmbH Nuernberg, Germany. All rights reserved. # # # parameters # start section section section # restart section section section # start or restart the daemon with parameters found in /etc/wvdial.conf # section is the name of a section in the /etc/wvdial.conf file # (see man wvdial) # stop # stop the pppd # hangup # hang up the telephone line # additional Parameters in /etc/wvdial.conf could be # Idle: sets the idle-time for waiting before hang up (deafult 180s) # Remote IP: remote IP-address (default 192.168.99.99) # Local IP: local IP-address (default 192.168.99.1) # Defaultroute: no: pppd will not set the default route to the remote ip # (default yes) function log() { # logs the messages to system log HEAD=$0[$$] echo $MESSAGE logger -t $HEAD "$MESSAGE" } function setpppdparam() { # time to sleep for pppd to come up WAITFORPPPD=2 CONFFILE="/etc/wvdial.conf" TMPFILE="/tmp/wvdial.dod.tmp" # extract subsection cat /etc/wvdial.conf | sed -n "/Dialer.*$SECTION/{:x;p;n;/Dialer/q;bx}" > $TMPFILE VALUE=`cat $TMPFILE | grep "Modem" | cut -f2 -d"="` if [ ! -z "$VALUE" ]; then Modem=$VALUE; fi VALUE=`cat $TMPFILE | grep "Baud" | cut -f2 -d"="` if [ ! -z "$VALUE" ]; then Baud=$VALUE; fi VALUE=`cat $TMPFILE | grep "Username" | cut -f2 -d"="` if [ ! -z "$VALUE" ]; then Username=$VALUE; fi VALUE=`cat $TMPFILE | grep "Remote IP" | cut -f2 -d"="` if [ ! -z "$VALUE" ]; then Remote_IP=$VALUE; fi VALUE=`cat $TMPFILE | grep "Local IP" | cut -f2 -d"="` if [ ! -z "$VALUE" ]; then Local_IP=$VALUE; fi VALUE=`cat $TMPFILE | grep "Idle" | cut -f2 -d"="` if [ ! -z "$VALUE" ]; then Idle=$VALUE; fi VALUE=`cat $TMPFILE | grep "Defaultroute" | cut -f2 -d"="` if [ X$VALUE = XNo -o X$VALUE = XNO -o X$VALUE = Xno ]; \ then DEFAULTROUTE="nodefaultroute"; fi rm -f $TMPFILE } function killpppd() { if [ -e $PIDFILE ]; then MESSAGE="killing pppd process " PID=`cat $PIDFILE` MESSAGE=$MESSAGE"PID=$PID" log kill -15 $PID 2>/dev/null #kill -9 $PID 2>/dev/null rm $PIDFILE fi } function startpppd() { # set defaults, no defaults for # Username, Modem, Baud Local_IP="192.168.99.1" Remote_IP="192.168.99.99" Idle=180 DEFAULTROUTE="defaultroute" # get params from section "Dialer Default" SECTION=Defaults setpppdparam # parse given section ([Dailer xxx]) parameters while [ ! -z $1 ]; do SECTION=$1 setpppdparam shift done # start pppd in demand mode PPPPDPARAMS="$Local_IP:$Remote_IP $Modem $Baud modem crtscts $DEFAULTROUTE -detach user $Username ipcp-accept-local ipcp-accept-remote call wvdial demand idle $Idle" MESSAGE="starting pppd $PPPPDPARAMS connect \"/usr/bin/wvdial --chat $WVPARAMS\"... " pppd $PPPPDPARAMS connect "/usr/bin/wvdial --chat $WVPARAMS" &>/dev/null & PPPDPID=$! echo $PPPDPID > $PIDFILE MESSAGE=$MESSAGE"PID=$PPPDPID" log # setting dynamic - parameter for ppp - device # waiting pppd to come up sleep $WAITFORPPPD ls /var/run/ppp?.pid | while read PIDFILE ; do if [ X$PPPDPID = X`cat $PIDFILE` ]; then DEVICE=`echo $PIDFILE | cut -c 10-13` MESSAGE="setting $DEVICE dynamic " ifconfig $DEVICE dynamic ifconfig $DEVICE | grep "DYNAMIC" -q RES=$? if [ $RES -gt 0 ]; then MESSAGE=$MESSAGE"failed" exit 1 fi MESSAGE=$MESSAGE"done" log fi done exit 0 } # main LINKNAME=dod PIDFILE=/var/run/pppd.$LINKNAME.pid ACTION=$1 shift WVPARAMS=$@ case "$ACTION" in start) # make sure to start even when uncleanly stopped killpppd netstat --inet -p startpppd $@ netstat --inet -p ;; stop) # handle stop killpppd exit 0 ;; reload|restart) killpppd startpppd $@ ;; hangup) if [ -e $PIDFILE ]; then MESSAGE="hangup pppd connection " PID=`cat $PIDFILE` MESSAGE=$MESSAGE"PID=$PID" log kill -SIGHUP $PID #2>/dev/null exit 0 fi MESSAGE="no pppd connection" log exit 1 ;; # status) # ;; *) echo "Usage: /sbin/init.d/wvdial.dod {start [section [section [..]]]|hangup|stop|restart}" exit 1 ;; esac Keywords: MODEM, INTERNET, PPPD, WVDIAL, PROVIDER, DIALONDEMAND, DIAL-ON-DEMAND Categories: Network SDB-hoe_wv_dod_start, Copyright SuSE GmbH, Nrnberg, Germany - Version: 27. Okt 1999 SuSE GmbH - Last generated: 12. Jul 2000 by shoelcker (sdb_gen 1.40.0) ________________________________________________________________ The best thing to hit the internet in years - Juno SpeedBand! Surf the web up to FIVE TIMES FASTER! Only $14.95/ month - visit www.juno.com to sign up today!
The 03.09.25 at 18:13, Carl William Spitzer IV wrote:
What I have is a normal external 56k modem.
No problem :-)
I need more memory on the box before I can use 8.2 I checked Yast1 and did not find autodial perhaps thats for the Pro versions.
Ah, then it must be yast2 that has it. I forgot you have suse 7.3. I can't try it now, I have another machine with 7.3, but not here.
BElow is what i found under Dialup in the sdb on the box.
No, search for "demand". Be sure your local sdb is updated.
As you can see it refers to obsolete directory structures not all of which migrated from /sbin to /etc
Search the docs of wvdial directly, there is a setting for it somewhere. I can not check myself right now, sorry. [...] The method you copied here would work, I think, mutandis mutandi, of course. -- Cheers, Carlos Robinson
On 09/24/2003 04:43 AM, Carl William Spitzer IV wrote:
According to this i can get in when I first log in as root I can then access the web. Changing wvdial.conf permissions to 655 worked but I still must run it in console first.
Not quite what I meant.
Now I have a curious question how do I get the system to dial when go to www.oclug.org ???
Do you want dial on demand?
<snip>
linux:/home/cwsiv # ls /etc/wvdial* -l -rw------- 1 root root 336 Sep 22 19:20 /etc/wvdial.conf linux:/home/cwsiv #
This is wrong. i.e. joe@jmorris:~> ls -l /etc/wvdial* -rw-r----- 1 root dialout 302 2003-03-14 08:38 /etc/wvdial.conf In case you're wondering, I made that mistake in 6.4. If you edit it, and the editor makes a backup, it saves the file and changes the group owner. Change it to dialout, and 640. -- Joe Morris New Tribes Mission Email Address: Joe_Morris@ntm.org Web Address: http://www.mydestiny.net/~joe_morris Registered Linux user 231871 God said, I AM that I AM. I say, by the grace of God, I am what I am.
Yes I want dial on demand for both the internet and evolution. Is this a security issue? CWSIV On Wed, 24 Sep 2003 08:39:06 +0800 "Joe Morris (NTM)" <Joe_Morris@ntm.org> writes:
On 09/24/2003 04:43 AM, Carl William Spitzer IV wrote:
According to this i can get in when I first log in as root I can then access the web. Changing wvdial.conf permissions to 655 worked but I still must run it in console first.
Not quite what I meant.
Now I have a curious question how do I get the system to dial when go to www.oclug.org ???
Do you want dial on demand?
<snip>
linux:/home/cwsiv # ls /etc/wvdial* -l -rw------- 1 root root 336 Sep 22 19:20 /etc/wvdial.conf linux:/home/cwsiv #
This is wrong. i.e. joe@jmorris:~> ls -l /etc/wvdial* -rw-r----- 1 root dialout 302 2003-03-14 08:38 /etc/wvdial.conf In case you're wondering, I made that mistake in 6.4. If you edit it,
and the editor makes a backup, it saves the file and changes the group
owner. Change it to dialout, and 640.
-- Joe Morris New Tribes Mission Email Address: Joe_Morris@ntm.org Web Address: http://www.mydestiny.net/~joe_morris Registered Linux user 231871 God said, I AM that I AM. I say, by the grace of God, I am what I am.
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
________________________________________________________________ The best thing to hit the internet in years - Juno SpeedBand! Surf the web up to FIVE TIMES FASTER! Only $14.95/ month - visit www.juno.com to sign up today!
participants (3)
-
Carl William Spitzer IV
-
Carlos E. R.
-
Joe Morris (NTM)