[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: Paralell Port not working for anyone but root....



> What user/group permissions should I set the /dev/lp devices to so that
>anyone on the system can use the paralell port (eg. what user? I only have
>the default users, root, and one non-root user)...

You could add a+rw to the lp devices if that's all you're running on the 
system.
Someone might shout about possible security problems, but you're publishing
the output from the camera anyway.

> ...and, what "user" does apache run scripts as?

Apache normally runs scripts as 'nobody'. You can configure the user/group
in /etc/httpd/conf/httpd.conf. Apache also can run scripts set-uid if 
configured
as such.

> Thanks in advance!

My recommendation is probably to chmod a+rw on the lp port. Easy but anyone
else on the system can use them then.

Alternatively create a specific Apache user with similar rights to 'nobody' 
then
change the group of the lp ports to that user and chmod g+rw the lp ports




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]