From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-out4.iol.cz ([194.228.2.92]) by speech.braille.uwo.ca with esmtp (Exim 3.36 #1 (Debian)) id 1Gzzzm-0004W6-00; Thu, 28 Dec 2006 13:28:51 -0500 Received: from smtp-out4.iol.cz (unknown [192.168.30.31]) by smtp-out4.iol.cz (Postfix) with ESMTP id 119FB16582C; Thu, 28 Dec 2006 18:28:18 +0000 (UTC) Received: from [192.168.1.34] (77.93.broadband2.iol.cz [83.208.93.77]) by smtp-out4.iol.cz (Postfix) with ESMTP id CD7CC47DF7; Thu, 28 Dec 2006 19:28:13 +0100 (CET) Subject: Permissions for /dev/softsynth From: Hynek Hanke To: Speakup Content-Type: text/plain Date: Thu, 28 Dec 2006 19:25:51 +0100 Message-Id: <1167330352.3337.23.camel@chopin> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Thu, 28 Dec 2006 14:33:34 -0500 Cc: Kirk Reiser X-BeenThere: speakup@braille.uwo.ca X-Mailman-Version: 2.1.9 Precedence: list Reply-To: "Speakup is a screen review system for Linux." List-Id: "Speakup is a screen review system for Linux." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Dec 2006 18:28:51 -0000 Hello, I'm preparing a Debian package for SpeechD-Up and I'm puzzled with the permissions to the /dev/softsynth device and the /proc/speakup/ controlls. The device is sometimes created by the user and sometimes automatically, the proc tree is allways created when loading Speakup. Is there some convention about who should be the owner and group of /dev/softsynth and /proc/speakup? I've been using the device as root so far, but this doesn't allow me to run SpeechD-Up under a different user (e.g. speechd-up). Making /dev/softsynth world readable is not an option too as it will typically contain a complete log of users activity on the system consoles, so it must be protected. One more thing to consider is that there might be other interfaces than SpeechD-Up wanting to access /dev/softsynth and /proc/speakup/ . So it seems to me that it would be most sensible to create a group with the name ''speakup'' and make /dev/softsynth and /proc/speakup readable/writable by this group. Include user speechd-up in group speakup and run SpeechD-Up with this user. Should this be the correct approach, who will set the group ownership for /dev/softsynth and /proc/speakup ? Should Speakup do it? Should it be some user-space script? Which one? The ownership change cannot be made in time of installation of SpeechD-Up as there is not any guarantee that Speakup will already be installed and that the device won't be deleted/re-created later (in case of dynamically created device, it will). I'd like to know your opinion. Thank you, Hynek Hanke