access to unix devices
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > access to unix devices




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    access to unix devices  
Mike


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 10:06 PM

Hi,
i'm trying to use the parallelport of my freebsd box as an cheap
binary io module from apache as a server side include.
So if i try, as user nobody, to fopen the /dev/lpt i get an error
"unable to open device permission denied". When i su to root it works.
How/where can i set the permission to access the device? Are there any
other hints?
Thanks in advance
Mike





[ Post a follow-up to this message ]



    Re: access to unix devices  
Jens.Toerring@physik.fu-berlin.de


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 10:06 PM

Mike <mike.koeppel@solnet.ch> wrote:
quote:
> i'm trying to use the parallelport of my freebsd box as an cheap > binary io module from apache as a server side include. > So if i try, as user nobody, to fopen the /dev/lpt i get an error > "unable to open device permission denied". When i su to root it works. > How/where can i set the permission to access the device? Are there any > other hints?
Obviously, you got to change the permissions for /dev/lpt. Do a chmod 666 /dev/lpt to allow both read and write access for everyone to the device file. Regards, Jens -- _ _____ _____ | ||_ _||_ _| Jens.Toerring@physik.fu-berlin.de _ | | | | | | | |_| | | | | | http://www.physik.fu-berlin.de/~toerring \___/ens|_|homs|_|oerring




[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:29 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register