/dev/ttyS0 - Permission denied.

Alexander Dalloz ad+lists at uni-x.org
Wed Mar 30 23:18:42 UTC 2005


Am Do, den 31.03.2005 schrieb kamarudin samsudin um 0:08:

> 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.

> kamarudin samsudin

Any chance SELinux is interfering? Please check your syslog file
/var/log/messages for avc / audit messages when you try to access the
serial device through Apache.

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.10-1.771_FC2smp 
Serendipity 01:17:36 up 22:44, 18 users, 0.49, 0.48, 0.46 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20050331/e56a111b/attachment-0001.sig>


More information about the fedora-list mailing list