ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] pppd conection under user
@ 2003-02-05 18:03 Alexey Morsov
  2003-02-06  4:05 ` Maxim.Savrilov
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Alexey Morsov @ 2003-02-05 18:03 UTC (permalink / raw)
  To: Сообщество

Привет,

У меня сложилась такая ситуация, что знаний моих (и нервов) уже не хватает, хотя все вроде бы просто до неприличия.
Имеем на данный момент следующее:

смотрим права на pppd:

[alex@localhost alex]$ ls -l /usr/sbin/pppd
-rwsr-xr-x    1 root     root       210536 Май 21  2002 /usr/sbin/pppd

т.е. suid-бит установлен (командой chmod u+s аки в pppd-howto писано было.

Далее запускаем wvdialconf и получаем файл

[alex@localhost alex]$ cat /etc/wvdial.conf

[Dialer Defaults]
Modem = /dev/modem
Baud = 115200
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem
Phone = 1055555
Username = guest
Password = mtu

Смотрим права на /dev/modem

[alex@localhost alex]$ ls -l /dev/modem 
lrwxrwxrwx    1 root     root            5 Янв  1  2000 /dev/modem -> ttyS2
                                                                      ^^^^^^

смотрим права на /dev/ttyS2

[alex@localhost alex]$ ls -l /dev/ttyS2
crw-rw----    1 root     uucp       4,  66 Фев  5 01:01 /dev/ttyS2

Смотрим файл /etc/group для пользователя alex

[alex@localhost alex]$ cat /etc/group | grep alex
uucp:x:14:alex
alex:x:500:
cdwriter:x:80:alex
rpminst:x:33:alex
rpm:x:16:alex

Т.е. группа uucp[alex@localhost alex]$ cat /etc/group | grep alex
uucp:x:14:alex
alex:x:500:
cdwriter:x:80:alex
rpminst:x:33:alex
rpm:x:16:alex

т.е. группа uucp есть и alex принадлежит ей.

По идее (насколько я ее понял) wvdial теперь должен соединиться красиво и гладко (и не только он, строго говоря).

А по факту имеем, точнее нас имеют =)

[alex@localhost alex]$ wvdial 
--> WvDial: Internet dialer version 1.53
--> 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: ATDP1055555
--> Waiting for carrier.
ATDP1055555
CONNECT 31200/ARQ
C
Welcome to MTU-Online phones:
995-5555(K56flex,V.90),995-5556(x2,V.90)
Login as "guest" with password "mtu" for beginning
and go to http://dialup.mtu.ru for registration
Use proxy.mtu.ru with port 3128, DNS 195.34.32.11(10)
APAS20 line 6/83 
User Access Verification
login:
--> Carrier detected.  Waiting for prompt.
login:
--> Looks like a login prompt.
--> Sending: guest
guest
Password:
--> Looks like a password prompt.
--> Sending: (password)
Entering PPP mode.
Async interface address is unnumbered (Loopback0)
Your IP address is 192.168.10.186. MTU is 1500 bytes
~[7f]}#@!}!Q} }4}"}&} }*} } }%}&%?> }'}"}(}"OF~
--> PPP negotiation detected.
--> Starting pppd at Wed Feb  5 20:58:22 2003
--> pid of pppd: 18597
--> Disconnecting at Wed Feb  5 20:58:23 2003
--> The PPP daemon has died: pppd options error (exit code = 2)
--> man pppd explains pppd error codes in more detail.
--> I guess that's it for now, exiting
--> The PPP daemon has died. (exit code = 2)
[alex@localhost alex]$ apt-cache show pppd
W: Невозможно найти пакет pppd
[alex@localhost alex]$ rpm -q pppd
предупреждение: пакет pppd не установлен

Версия pppd

[alex@localhost alex]$ rpm -q ppp 
ppp-2.4.1-alt7

По man pppd - код 2 значит что ему (pppd) были даны две взаимоисключающие команды (параметры).
Ничего не понимаю. Из под root все естественно работает, а из под user-а вот такое вот кино.


Может кто-нибудь подсказать, что я упустил?


-- 
With best regards,
Alexey.

---------------------------------------------------------
When world has going to madness, someone must die for it.

He, who refused the past, will be refused by the future.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Comm] pppd conection under user
  2003-02-05 18:03 [Comm] pppd conection under user Alexey Morsov
@ 2003-02-06  4:05 ` Maxim.Savrilov
  2003-02-06 11:29   ` Максим Ярушин
  2003-02-06 19:27   ` Alexey Morsov
  2003-02-06  6:37 ` Sergey V. Golovin
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 10+ messages in thread
From: Maxim.Savrilov @ 2003-02-06  4:05 UTC (permalink / raw)
  To: community

On Wed, 5 Feb 2003 21:03:05 +0300
Alexey Morsov <thebeast@fromru.com> wrote:

> Привет,
> 
> У меня сложилась такая ситуация, что знаний моих (и нервов) уже не хватает, хотя все вроде бы просто до неприличия.
> Имеем на данный момент следующее:
> 
[skip]
> 
> 
> Может кто-нибудь подсказать, что я упустил?
> 

а если на wvdial suid поставить?
или попробуйте через draknet сделать dialup соединение


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Comm] pppd conection under user
  2003-02-05 18:03 [Comm] pppd conection under user Alexey Morsov
  2003-02-06  4:05 ` Maxim.Savrilov
@ 2003-02-06  6:37 ` Sergey V. Golovin
  2003-02-06 19:19   ` Alexey Morsov
  2003-02-06 10:39 ` [Comm] " Alexey Tourbin
  2003-02-06 20:00 ` [Comm] " ginger
  3 siblings, 1 reply; 10+ messages in thread
From: Sergey V. Golovin @ 2003-02-06  6:37 UTC (permalink / raw)
  To: community

On  5 Feb Wed 21:03, Alexey Morsov wrote:
> Привет,
> Может кто-нибудь подсказать, что я упустил?

Некоторые опции  у pppd привилегированные(только root) - может оно?

-- 
Sergey V. Golovin


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Comm] Re: pppd conection under user
  2003-02-05 18:03 [Comm] pppd conection under user Alexey Morsov
  2003-02-06  4:05 ` Maxim.Savrilov
  2003-02-06  6:37 ` Sergey V. Golovin
@ 2003-02-06 10:39 ` Alexey Tourbin
  2003-02-06 20:08   ` Alexey Morsov
  2003-02-06 20:00 ` [Comm] " ginger
  3 siblings, 1 reply; 10+ messages in thread
From: Alexey Tourbin @ 2003-02-06 10:39 UTC (permalink / raw)
  To: Сообщество

[-- Attachment #1: Type: text/plain, Size: 263 bytes --]

On Wed, Feb 05, 2003 at 09:03:05PM +0300, Alexey Morsov wrote:
> --> The PPP daemon has died: pppd options error (exit code = 2)
> --> man pppd explains pppd error codes in more detail.

А что на этом месте в сислоге?

-- 
WBR, Alexey Tourbin
BIOZAK Ltd., Russia

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Comm] pppd conection under user
  2003-02-06  4:05 ` Maxim.Savrilov
@ 2003-02-06 11:29   ` Максим Ярушин
  2003-02-06 19:18     ` Alexey Morsov
  2003-02-06 19:27   ` Alexey Morsov
  1 sibling, 1 reply; 10+ messages in thread
From: Максим Ярушин @ 2003-02-06 11:29 UTC (permalink / raw)
  To: community

On Thu, 6 Feb 2003 10:05:58 +0600
Maxim.Savrilov@socenter.ru wrote:

--------<skip>

У меня была похожая ситуация...
Всё было из-за прав на /dev/ttyS0  -  640
Поставил 660 - и всё бегает...


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Comm] pppd conection under user
  2003-02-06 11:29   ` Максим Ярушин
@ 2003-02-06 19:18     ` Alexey Morsov
  0 siblings, 0 replies; 10+ messages in thread
From: Alexey Morsov @ 2003-02-06 19:18 UTC (permalink / raw)
  To: community

On Thu, 6 Feb 2003 16:29:04 +0500
Максим Ярушин <max@r8.kg> wrote:

> On Thu, 6 Feb 2003 10:05:58 +0600
> Maxim.Savrilov@socenter.ru wrote:
> 
> --------<skip>
> 
> У меня была похожая ситуация...
> Всё было из-за прав на /dev/ttyS0  -  640
> Поставил 660 - и всё бегает...

У меня ttyS2 (мой модем) - имеет как раз права 660... не помогает

-- 
With best regards,
Alexey.

---------------------------------------------------------
When world has going to madness, someone must die for it.

He, who refused the past, will be refused by the future.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Comm] pppd conection under user
  2003-02-06  6:37 ` Sergey V. Golovin
@ 2003-02-06 19:19   ` Alexey Morsov
  0 siblings, 0 replies; 10+ messages in thread
From: Alexey Morsov @ 2003-02-06 19:19 UTC (permalink / raw)
  To: community

On Thu, 6 Feb 2003 10:37:22 +0400
"Sergey V. Golovin" <svgol@samkon.ru> wrote:

> On  5 Feb Wed 21:03, Alexey Morsov wrote:
> > Привет,
> > Может кто-нибудь подсказать, что я упустил?
> 
> Некоторые опции  у pppd привилегированные(только root) - может оно?
Так почему же у некоторых людей (ау!) wvdial работает? Или они все от root-а его пускают =)

-- 
With best regards,
Alexey.

---------------------------------------------------------
When world has going to madness, someone must die for it.

He, who refused the past, will be refused by the future.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Comm] pppd conection under user
  2003-02-06  4:05 ` Maxim.Savrilov
  2003-02-06 11:29   ` Максим Ярушин
@ 2003-02-06 19:27   ` Alexey Morsov
  1 sibling, 0 replies; 10+ messages in thread
From: Alexey Morsov @ 2003-02-06 19:27 UTC (permalink / raw)
  To: community

On Thu, 6 Feb 2003 10:05:58 +0600
Maxim.Savrilov@socenter.ru wrote:

> On Wed, 5 Feb 2003 21:03:05 +0300
> Alexey Morsov <thebeast@fromru.com> wrote:
> 
> > Привет,
> > 
> > У меня сложилась такая ситуация, что знаний моих (и нервов) уже не
> > хватает, хотя все вроде бы просто до неприличия. Имеем на данный
> > момент следующее:
> > 
> [skip]
> > 
> > 
> > Может кто-нибудь подсказать, что я упустил?
> > 
> 
> а если на wvdial suid поставить?
> или попробуйте через draknet сделать dialup соединение

Не помогает. =( Увы.

-- 
With best regards,
Alexey.

---------------------------------------------------------
When world has going to madness, someone must die for it.

He, who refused the past, will be refused by the future.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Comm] pppd conection under user
  2003-02-05 18:03 [Comm] pppd conection under user Alexey Morsov
                   ` (2 preceding siblings ...)
  2003-02-06 10:39 ` [Comm] " Alexey Tourbin
@ 2003-02-06 20:00 ` ginger
  3 siblings, 0 replies; 10+ messages in thread
From: ginger @ 2003-02-06 20:00 UTC (permalink / raw)
  To: Alexey Morsov

Hello Alexey,

Wednesday, February 5, 2003, 9:03:05 PM, you wrote:

AM> Привет,

AM> У меня сложилась такая ситуация, что знаний моих (и нервов) уже не хватает, хотя все вроде бы просто до неприличия.
AM> Имеем на данный момент следующее:

<skip>


У меня были идентичные проблемы с wvdial на Debian Woody, так и не смог
понять в чем дело. Плюнул, и с pppconf за две минуты все настроил.

-- 
Best regards,
 ginger                            mailto:gb@fromby.net



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Comm] Re: pppd conection under user
  2003-02-06 10:39 ` [Comm] " Alexey Tourbin
@ 2003-02-06 20:08   ` Alexey Morsov
  0 siblings, 0 replies; 10+ messages in thread
From: Alexey Morsov @ 2003-02-06 20:08 UTC (permalink / raw)
  To: community

On Thu, 6 Feb 2003 13:39:34 +0300
Alexey Tourbin <at@turbinal.org> wrote:

> On Wed, Feb 05, 2003 at 09:03:05PM +0300, Alexey Morsov wrote:
> > --> The PPP daemon has died: pppd options error (exit code = 2)
> > --> man pppd explains pppd error codes in more detail.
> 
> А что на этом месте в сислоге?
Не очень понимаю что есть сислог, но если это то что на консоли 
Alt-Ctrl-F12, то там по моему стоит 
"Can't open /etc/ppp/peer/wvdial: Permission denied"

-rw-------    1 root     daemon         30 Окт 21 18:01
/etc/ppp/peers/wvdial

И что это может значить? 


-- 
With best regards,
Alexey.

---------------------------------------------------------
When world has going to madness, someone must die for it.

He, who refused the past, will be refused by the future.


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2003-02-06 20:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-05 18:03 [Comm] pppd conection under user Alexey Morsov
2003-02-06  4:05 ` Maxim.Savrilov
2003-02-06 11:29   ` Максим Ярушин
2003-02-06 19:18     ` Alexey Morsov
2003-02-06 19:27   ` Alexey Morsov
2003-02-06  6:37 ` Sergey V. Golovin
2003-02-06 19:19   ` Alexey Morsov
2003-02-06 10:39 ` [Comm] " Alexey Tourbin
2003-02-06 20:08   ` Alexey Morsov
2003-02-06 20:00 ` [Comm] " ginger

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git