ts-7000
[Top] [All Lists]

Re: [ts-7000] TS7500 DIO control while user is not root

To:
Subject: Re: [ts-7000] TS7500 DIO control while user is not root
From: Jonatan Olofsson <>
Date: Thu, 13 Jan 2011 12:10:04 +0100


Hi,

You should try to chmod /dev/mem to allow users to use the node. I'm not quite sure what permissions you want or what group to set, but a quick search on google for "chmod /dev/mem" should yield a few interesting results

Best regards
//Jonatan

On Thu, Jan 13, 2011 at 12:03, frankvd99 <> wrote:
 

Hello,

I have a TS7500 board and trying to control the digital IO lines from Debian-linux on the sd-card.

When running the script below as user "root" it works fine. When doing the same thing as user eclipse (or any other user) I get below message.

#!/bin/sh
. /initrd/ts7500.subr
#
echo "IO value of pin 5:"
getdiopin 5
#

Response when user root:
IO value of pin 5:
1

Response when user eclipse:
ts7500ctl: ts7500ctl.c: 771 main: Assertion 'dev/mem !=-1' failed

I've traced this back to the ts7500ctl.c file which is trying to open /dev/mem, which is not allowed.

Is there another way how I can get this done. My goal is to run TS7500 digital IO control from a CGI script in the Apache webserver. Apache does not allow you to run it as root, so that is not a workaround.

Thanks for your help
Frank




__._,_.___


Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU