Subject: Re: pkg/19063: xcdplayer works under root account only
To: None <shnek@chemi.muni.cz>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-bugs
Date: 11/17/2002 20:23:50
On Fri, Nov 15, 2002 at 08:46:10AM +0100, shnek@chemi.muni.cz wrote:
>
> >Number: 19063
> >Category: pkg
> >Synopsis: xcdplayer works under root account only
> >Confidential: no
> >Severity: non-critical
> >Priority: low
> >Responsible: pkg-manager
> >State: open
> >Class: sw-bug
> >Submitter-Id: net
> >Arrival-Date: Fri Nov 15 00:29:00 PST 2002
> >Closed-Date:
> >Last-Modified:
> >Originator: Lubos Vrbka
> >Release: NetBSD 1.6
> >Organization:
> Masaryk university
> >Environment:
>
>
> System: NetBSD snail.chemi.muni.cz 1.6 NetBSD 1.6 (GENERIC) #0: Sun Sep 8 19:43:40 UTC 2002 autobuild@tgm.daemon.org:/autobuild/i386/OBJ/autobuild/src/sys/arch/i386/compile/GENERIC i386
> Architecture: i386
> Machine: i386
> >Description:
> /usr/X11R6/bin/xcdplayer build from source (/usr/pkgsrc/audio/xcdplayer) doesn't have the SUID bit set. if executed under non-root user, then reports only
> open: : Permission denied
> >How-To-Repeat:
> cd /usr/pkgsrc/audio/xcdplayer && make install
> xcdplayer
> >Fix:
> chmod 4755 /usr/X11R6/bin/xcdplayer
> and everything works fine...
I don't think this is the right solution. You should probably fix the
perms on the /dev/*cd* devices, so that non-root users can open them
read/write.
Either make then 666, or 660 and put users allowed to play CD in
group operator, or make them 600 and change the owner when a user
logs in on the console (either via xdm scripts, or via /etc/ttyaction).
--
Manuel Bouyer <bouyer@antioche.eu.org>
NetBSD: 23 ans d'experience feront toujours la difference
--