/dev/ttyS0 - Permission denied.

From: kamarudin samsudin (kamarudin_at_gmail.com)
Date: 03/31/05

  • Next message: Aad Rijnberg: "Re: Cant detect Hard Drive while installing Fedora Core 3 on Dell 8400"
    Date: Wed, 30 Mar 2005 23:08:15 +0100
    To: fedora list <fedora-list@redhat.com>
    
    

    Hi all,

    I need to run python script that read/write to serial port
    (/dev/ttyS0). As root, i can run the script without problem but when i
    tried to involke it via browser ( apache2. PHP 4.3) i got error. The
    error is
       /dev/ttyS0 - Permission denied.

    i tried chmod go+wr /dev/ttyS0...but it not working. Please help me.

    BTW - im using Core 3 on i386, pySerial python module and apache2.

    Thanks in advance.

    -- 
    regards,
    kamarudin samsudin
    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Aad Rijnberg: "Re: Cant detect Hard Drive while installing Fedora Core 3 on Dell 8400"

    Relevant Pages

    • Re: pexpect with apache
      ... first i don't think it is a good idea to have the python script ... An other way to make your script run as root is to set the setuid bit ... I use a bit of php to ... print "Making dir: %s" % sharepath ...
      (comp.lang.python)
    • logging as root using python script
      ... Is it possible to login as a root in linux using python script? ... execute my command and logout from root to my existing account. ...
      (comp.lang.python)
    • Python script produces "sem_trywait: Permission denied"
      ... I have just recently build python 2.3.3 on an AIX 5.2 version using gcc ... When we run any python script as root they work. ...
      (comp.unix.aix)
    • Calling a C program from a Python Script
      ... call the C program from a Python script like this: ... for root, files, dirs in os.walk ... how much faster would this be over a pure Python solution? ... Brad ...
      (comp.lang.python)