Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Here is the snippet of the script that I am trying to run some shell scripts on a TS7800 Arm Board through a non-root user:

echo    > /dev/ttts4
    echo "    `hostname`" > /dev/ttts4;
    echo "`/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print
$1}' `" > /dev/ttts4;
    # read ns
        ns=`/usr/local/bin/peek8 0xe8000011 | sed 's/^0x//'`

    let "noise_source = ${ns} & 0x00000001"

    if [ $ns -eq 1 ]; then
     echo "NS:ON" > /dev/ttts4
     /usr/local/bin/peekpoke 32 0xe8000010 0x00000100 > /dev/null
    else
     echo "NS:OFF" > /dev/ttts4
     /usr/local/bin/peekpoke 32 0xe8000010 0x00000000 > /dev/null
    fi

Trying to write to /dev/ttts4 and a non-root gives me "permission denied" error. Running peek8 and peekpoke commands gives me segmentation fault. I can get it the script by changing the permissions for each of these, but i am wondering if there is another way to do it. My final goal is to be able to run such scripts through a webpage.

Any help is greatly appreciated Thanks

share|improve this question
    
You want a webpage to have write access to /dev? No you don't. –  terdon Mar 2 '13 at 11:14
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.