Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79913 - gnome-ppp / wvdial / wvstream can't access modem as non privledeged user.
Summary: gnome-ppp / wvdial / wvstream can't access modem as non privledeged user.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Dialup Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-28 17:45 UTC by Stephen Gunnell
Modified: 2005-02-17 21:38 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Gunnell 2005-01-28 17:45:43 UTC
Running gnome-ppp or wvdial as an unprivileged user dies with the error: "Cannot set information for serial port".
I've checked permissions and ownership of /dev/tts/1 (via /dev/ttyS1) , /var/lock , /etc/resolv.conf , and /etc/ppp/*

The problem has been compounded because the previous (correctly working) versions of wvdial and wvstream have had theit e-builds removed.

The problem originates in a call to ioctl in wvmodem.cc in the wvstream package. I dont know enough C to find the actual error which is not being reported.

Running wvdial manually as root works vor very inconvenient values of work.


Reproducible: Always
Steps to Reproduce:
1. emerge gnome-ppp
2. add user to groups uucp and dialout
3. verify group dialout can write to /etc/wvdial.conf, /etc/ppp/chap-secrets , /etc/ppp/pap-secrets , and the serial port at /dev/tts/1
4. verify group uucp can write to /var/lock
5. setup gnome-ppp: I have an analogue dialup modem on /dev/ttyS1. This appears to setup ~/.wvdial.conf which appears to be a valid wvdial.conf file
6. try to connect using gnome-ppp with log window open : result is error
7. try to run wvdial --config ~/.wvdial.conf : result is error
8. su - to root. run wvdial --config ~steveg/.wvdial.conf : success

Actual Results:  
--> WvDial: Internet dialer version 1.54.0
--> Cannot open /dev/ttyS1: Cannot set information for serial port.
--> Cannot open /dev/ttyS1: Cannot set information for serial port.
--> Cannot open /dev/ttyS1: Cannot set information for serial port.
(from the command line invocation of wvdial)

Expected Results:  
Connected to my internet provider.

This is going to be an in-your-face major show stopper for a non-technical user.

wvdial-1.53-r1 with wvstreams-3.70-r2 worked correctly.

Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5,
glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r9 i686)
=================================================================
System uname: 2.6.9-gentoo-r9 i686 Celeron (Coppermine)
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jan 29 2005, 04:05:11)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.21-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe -march=pentium3 -mfpmath=sse -mieee-fp -mmmx -msse
-fforce-addr -fomit-frame-pointer -ftracer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -march=pentium3 -mfpmath=sse -mieee-fp -mmmx -msse
-fforce-addr -fomit-frame-pointer -ftracer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.ccccom.com
http://gentoo.scphost.com ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/
http://www.gigaload.org/gentoo.org/ ftp://ftp.ecc.u-tokyo.ac.jp/GENTOO"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm avi berkdb bitmap-fonts bonobo cdr crypt cups curl
dvd encode esd f77 fam fftw font-server foomaticdb fortran gdbm gif gnome
gphoto2 gpm gtk gtk2 gtkhtml guile imagemagick imlib java jpeg junit libg++
libwww mad mbox mikmod mmap mmx motif mpeg ncurses nls opengl pam pda pdflib
perl pic png python quicktime readline sdl slang spell sse ssl svga tcltk tcpd
tiff truetype truetype-fonts type1-fonts unicode usb vim-with-x xml xml2 xmms xv
zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Stephen Gunnell 2005-02-13 06:33:24 UTC
Problem still present in latest update:
net-dialup/gnome-ppp-0.3.19
net-libs/wvstreams-4.0.1
Comment 2 Alin Năstac (RETIRED) gentoo-dev 2005-02-13 13:19:54 UTC
Your virtual/os-headers is wrong. You should install linux26-headers, not linux-headers.

Correct that and re-build glibc, wvstreams, gnome-ppp and wvdial.
Please report here your results.
Comment 3 Stephen Gunnell 2005-02-14 01:28:03 UTC
unmerged linux-headers
emerged linux26-headers
emerged wvstreams
emerged wvdial
emerged gnome-ppp
tested gnome-ppp - FAILED
Comment 4 Alin Năstac (RETIRED) gentoo-dev 2005-02-14 02:20:03 UTC
I've told you to reemerge following:
  - glibc
  - wvstreams
  - gnome-ppp
Your test is not conclusive.
Comment 5 Stephen Gunnell 2005-02-14 16:10:24 UTC
Ah ... my fumble fingers  ... add an "emerge glibc" between emerge "linux26-headers" and "emerge wvstreams".

Comment 6 Alin Năstac (RETIRED) gentoo-dev 2005-02-17 12:01:30 UTC
fixed by net-libs/wvstreams-4.0.1-r1
Comment 7 Stephen Gunnell 2005-02-17 21:38:40 UTC
Fix confirmed.