[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ppp: allow users



Hi,

when I run ppp as root to access my ADSL provider,
everything works fine. But I can't connect, when
running it as a normal user "alex":

  pref# chmod go+rw /dev/tun[012]
  pref# ll /dev/tun[012]
  crw-rw-rw-  1 root  wheel   40,   0 Aug  1 17:24 /dev/tun0
  crw-rw-rw-  1 root  wheel   40,   1 Jun 30 13:27 /dev/tun1
  crw-rw-rw-  1 root  wheel   40,   2 Jun 30 13:27 /dev/tun2
  pref# exit

  pref:alex {117} ppp tdsl
  Working in interactive mode
  Using interface: tun0
  Warning: Add route failed: 0.0.0.0: errno: No such process
  ppp ON pref> dial
  ppp ON pref>
  ppp ON pref>

The "tail -f /var/log/ppp.log" shows following:

  Aug  1 17:32:31 pref ppp[19064]: Phase: Using interface: tun0
  Aug  1 17:32:31 pref ppp[19064]: Phase: deflink: Created in closed state
  Aug  1 17:32:32 pref ppp[19064]: tun0: Command: tdsl: set device !/usr/sbin/pppoe -i fxp1
  Aug  1 17:32:32 pref ppp[19064]: tun0: Command: tdsl: disable acfcomp protocomp vjcomp deflate pred1
  Aug  1 17:32:32 pref ppp[19064]: tun0: Command: tdsl: deny acfcomp
  Aug  1 17:32:32 pref ppp[19064]: tun0: Command: tdsl: set mru 1492
  Aug  1 17:32:32 pref ppp[19064]: tun0: Command: tdsl: set mtu 1490
  Aug  1 17:32:32 pref ppp[19064]: tun0: Command: tdsl: set crtscts off
  Aug  1 17:32:32 pref ppp[19064]: tun0: Command: tdsl: set speed sync
  Aug  1 17:32:32 pref ppp[19064]: tun0: Command: tdsl: accept lqr
  Aug  1 17:32:32 pref ppp[19064]: tun0: Command: tdsl: set dial
  Aug  1 17:32:32 pref ppp[19064]: tun0: Command: tdsl: set login
  Aug  1 17:32:32 pref ppp[19064]: tun0: Command: tdsl: set timeout 0
  Aug  1 17:32:32 pref ppp[19064]: tun0: Command: tdsl: set redial 180 0
  Aug  1 17:32:32 pref ppp[19064]: tun0: Command: tdsl: set authname ************************#0001@t-online.de
  Aug  1 17:32:32 pref ppp[19064]: tun0: Command: tdsl: set authkey ********
  Aug  1 17:32:32 pref ppp[19064]: tun0: Command: tdsl: set ifaddr 10.0.0.1/0 10.0.0.2/0 0.0.0.0 0.0.0.0
  Aug  1 17:32:32 pref ppp[19064]: tun0: Command: tdsl: add default HISADDR
  Aug  1 17:32:32 pref ppp[19064]: tun0: Warning: Add route failed: 0.0.0.0: errno: No such process
  Aug  1 17:32:32 pref ppp[19064]: tun0: Command: tdsl: enable dns
  Aug  1 17:32:32 pref ppp[19064]: tun0: Command: tdsl: nat enable yes
  Aug  1 17:32:32 pref ppp[19064]: tun0: Phase: PPP Started (interactive mode).
  Aug  1 17:32:39 pref ppp[19064]: tun0: Command: /dev/tty: dial
  Aug  1 17:32:39 pref ppp[19064]: tun0: Phase: bundle: Establish
  Aug  1 17:32:39 pref ppp[19064]: tun0: Phase: deflink: closed -> opening
  Aug  1 17:32:39 pref ppp[19064]: tun0: Phase: deflink: Connected!
  Aug  1 17:32:39 pref ppp[19064]: tun0: Phase: deflink: opening -> dial
  Aug  1 17:32:39 pref ppp[19064]: tun0: Phase: deflink: dial -> carrier
  Aug  1 17:32:39 pref ppp[19064]: tun0: Phase: deflink: carrier -> login
  Aug  1 17:32:39 pref ppp[19064]: tun0: Phase: deflink: login -> lcp
  Aug  1 17:32:39 pref ppp[19064]: tun0: LCP: FSM: Using "deflink" as a transport
  Aug  1 17:32:39 pref ppp[19064]: tun0: LCP: deflink: State change Initial --> Closed
  Aug  1 17:32:39 pref ppp[19064]: tun0: LCP: deflink: State change Closed --> Stopped
  Aug  1 17:32:39 pref ppp[19064]: tun0: Phase: deflink: read (2): Connection reset by peer
  Aug  1 17:32:39 pref ppp[19064]: tun0: LCP: deflink: State change Stopped --> Closed
  Aug  1 17:32:39 pref ppp[19064]: tun0: LCP: deflink: State change Closed --> Initial
  Aug  1 17:32:39 pref ppp[19064]: tun0: Phase: deflink: Disconnected!
  Aug  1 17:32:39 pref ppp[19064]: tun0: Phase: deflink: lcp -> logout
  Aug  1 17:32:39 pref ppp[19064]: tun0: Phase: deflink: logout -> hangup
  Aug  1 17:32:39 pref ppp[19064]: tun0: Phase: deflink: Disconnected!
  Aug  1 17:32:39 pref ppp[19064]: tun0: Phase: deflink: Connect time: 0 secs: 36 octets in, 0 octets out
  Aug  1 17:32:39 pref ppp[19064]: tun0: Phase: deflink: : 4 packets in, 0 packets out
  Aug  1 17:32:39 pref ppp[19064]: tun0: Phase:  total 36 bytes/sec, peak 0 bytes/sec on Wed Aug  1 17:32:39 2001
  Aug  1 17:32:39 pref ppp[19064]: tun0: Phase: deflink: HUPing 4672
  Aug  1 17:32:39 pref ppp[19064]: tun0: Phase: deflink: hangup -> closed
  Aug  1 17:32:39 pref ppp[19064]: tun0: Phase: bundle: Dead

And here are my config files:

  pref:alex {104} grep alex /etc/{group,passwd}
  /etc/group:wheel:*:0:root,alex
  /etc/passwd:alex:*:1000:0:Alex Farber:/home/alex:/usr/local/bin/tcsh

  pref:alex {106} cat /etc/ppp/ppp.conf
  default:
	  set log Phase Chat LCP IPCP CCP tun command Warning Error Alert

  tdsl:
	  allow users alex
	  set device "!/usr/sbin/pppoe -i fxp1"
	  disable acfcomp protocomp vjcomp deflate pred1
	  deny acfcomp
	  set mru 1492
	  set mtu 1490
	  set crtscts off
	  set speed sync
	  accept lqr
	  set dial
	  set login
	  set timeout 0
	  set redial 180 0
	  set authname "************************#0001@t-online.de"
	  set authkey ********
	  set ifaddr 10.0.0.1/0 10.0.0.2/0 0.0.0.0 0.0.0.0
	  add default HISADDR
	  enable dns
	  # nat log yes
	  nat enable yes

Does anyone have an idea, what am I doing wrong? TIA!

Regards
Alex

PS: I wonder also, how to get rid of the

      Warning: Add route failed: 0.0.0.0: errno: No such process

    message at the ppp's start?