Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80998 - GNOKII Version 0.6.4 will only run as root
Summary: GNOKII Version 0.6.4 will only run as root
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Dialup Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-06 09:07 UTC by Colin Tinker
Modified: 2005-02-06 14:04 UTC (History)
0 users

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 Colin Tinker 2005-02-06 09:07:54 UTC
xgnokii
Please check permission on lock directory.
Lock file error. Exiting


Reproducible: Always
Steps to Reproduce:
1.run xgnokii or gnokii as a normal user
2.
3.

Actual Results:  
fails with a permissions error 

Expected Results:  
xgnokii or gnokii should run as a normal user 

emerge info 
Portage 2.0.51-r15 (default-linux/x86/2005.0, gcc-3.4.3, 
glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r7 i686) 
================================================================= 
System uname: 2.6.10-gentoo-r7 i686 AMD Athlon(tm) processor 
Gentoo Base System version 1.6.9 
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Oct 23 2004, 18:09:24)] 
ccache version 2.3 [enabled] 
dev-lang/python:     2.3.4 
sys-devel/autoconf:  2.59-r6, 2.13 
sys-devel/automake:  1.9.4, 1.5, 1.4_p6, 1.6.3, 1.8.5-r3, 1.7.9-r1 
sys-devel/binutils:  2.15.92.0.2-r2 
sys-devel/libtool:   1.5.10-r4 
virtual/os-headers:  2.6.8.1-r2 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-mtune=athlon-xp -march=athlon-xp -pipe -O2" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-mtune=athlon-xp -march=athlon-xp -pipe -O2" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig buildpkg ccache clean distcc distlocks 
fixpackages sandbox sfperms userpriv usersandbox" 
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ 
ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/" 
LANG="en_GB" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" 
USE="x86 3dnow 3dnowex X X509 a52 aac aalib acpi acpi4linux aim alsa apm arts 
artworkextra audiofile avantgo avi bash-completion berkdb bidi bitmap-fonts 
bluetooth bonobo bootsplash cddb cdparanoia cdr chroot codecs crypt css ctype 
cups dga dhcp dio directfb divx4linux dts dvb dvd dvdr dvdread eds encode esd 
ethereal evo exif ext-zlib extensions f77 fam fame fbcon fftw flac font-server 
foomaticdbfortran freetype gd gdbm gif gimp gimpprint gmail gnokii gnome 
gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal icq idea ieee1394 imagemagick imlib 
imlib2 innodb ipv6 irda irmc ithreads jabber java joystick jp2 jpeg jpeg2k 
junit justify kde kdexdeltas ldap libg++ libwww live lm_sensors lzo lzw-tiff 
mad mikmod mime mmx mmx2 mng monkey motif mozcalendar mozp3p mozsvg mozxmlterm 
mpeg msn mysql nas ncursesnetwork nls no-old-linux nocd nptl nvidia offensive 
ogg oggvorbis opengl opie oscar oss pam pcap pcre pda pdflib perl pic pie png 
postgres pthreads python qt quicktime rdesktop readline real ruby samba sblive 
scanner sdl silc skey slang smime sms snmp sockets sox speedo speex spell sse 
ssl svg svga t1lib tcltk tcpd test tga theora threads tiff transcode truetype 
truetype-fonts type1-fonts usb usepackagedmakefiles userlocales uudeview v4l 
v4l2 vim-with-x wifi wmf xanim xine xml xml2 xmms xosd xprint xscreensaver xv 
xvid xvmc yahoo zlib zvbi linguas_en_GB" 
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS
Comment 1 Alin Năstac (RETIRED) gentoo-dev 2005-02-06 12:01:49 UTC
Please set proper permissions on /var/lock directory (you must have w) and tell me if this solved your problem.
Comment 2 Colin Tinker 2005-02-06 12:22:02 UTC
Setting /var/lock to be writable by the user does fix this but would it not make more sense to have the application write its lock file in the users home directory?  On a multi user system /var/lock would have to be world writable which could be a security risk.
Comment 3 Colin Tinker 2005-02-06 12:26:43 UTC
Another issue with gnokki and xgnokii seems to be the amount of memory and cpu it uses.  I have 1gb of memory and it will use it all with around a gb of swap space pushing the cpu usage through the roof.
Comment 4 Alin Năstac (RETIRED) gentoo-dev 2005-02-06 14:04:27 UTC
I didn't say to set /var/lock world writable. I've suggested to have w right in this dir. The best way is to be member in uucp group (or whatever group is set on this dir).

The whole idea of locking mechanism is to make a specific resource globally unavailable for other applications, either if you lauch them or another user. If you set lock dir to be $HOME dependent, you loose the global efect, doesn't it?
You could set "use_locking = no", you know...

As for the second issue, I've just launched xgnokii on a lousy notebook with 256M. With xfce, xgnokii, firefox and thunderbird running, memory used is insignificant (a quarter of the entire physical memory).