Re: IO permission problem
A long time ago, in a galaxy far, far way, someone said...
> I've downloaded and compiled the latest stable quakeforge project.
> I've a problem: I can run qw-client-svga only as root.
>
> I've the following permissions:
>
> lrwxrwxrwx 1 root root 7 AUG 10 15:19 /dev/mouse -> gpmdata
> prw-r--r-- 1 root root 0 AUG 11 13:05 /dev/gpmdata
> -rwsr-sr-x 1 attila staff 872936 AUG 11 12:57 /usr/local/bin/qw-client-svga
^^^^^^^^^^ ^^^^^^
> Here is the 'strace' output of running 'qw-client-svga'
>
> read(6, "# Configuration file for svgalib"..., 16082) = 16082
> close(6) = 0
> open("/home/attila/.svgalibrc", O_RDONLY) = 6
> fstat(6, {st_mode=S_IFREG|0664, st_size=39, ...}) = 0
> read(6, "mouse MouseSystems\nmdev /dev/mou"..., 39) = 39
> close(6) = 0
> ioperm(0x3b4, 0x2c, 0x1) = -1 EPERM (Operation not permitted)
> write(1, "svgalib: Cannot get I/O permissi"..., 37) = 37
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> munmap(0x40014000, 4096) = 0
> _exit(1) = ?
SVGAlib programs need to be SUID root.
--
----------------------------------------------------------------------
Phil Brutsche pbrutsch@tux.creighton.edu
"There are two things that are infinite; Human stupidity and the
universe. And I'm not sure about the universe." - Albert Einstien
Reply to: