Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 18th December 2013
vdubjunkie vdubjunkie is offline
Port Guard
Join Date: Feb 2009
Posts: 17
Default Web accessible PERL scripts requiring TTY

I'm developing a suite of utilities which hinge upon the ability to create SSH tunnels that will ultimately be available to end users on our intranet. I've reached the point of making the data available to the apache server on which the scripts are being developed.

The script which works until I try to have the web server run it as a CGI. At this point I get the following error.

IO::Tty::open_slave(nonfatal): open(/dev/ttyp6): Permission denied at /usr/local/libdata/perl5/site_perl/i386-openbsd/IO
/Pty.pm line 24.
Clearly the www user doesn't have rights to open TTY. I'm all about security, and I wouldn't even consider hacking away at this sort of precaution if this weren't a server which will only be accessible by another server using it to obtain the data to embed in it's own pages.

Does anybody know whether there is just a way around the www user being unable to open a TTY or whether I would actually need to run apache as another user? If so, how do I do that?
anything done in the GUI is done more efficiently in cli
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't load any scripts in ircII guitarscn General software and network 4 22nd November 2010 12:06 AM
ppp scripts help wokko NetBSD Installation and Upgrading 10 18th May 2010 05:29 AM
Executing web scripts : can't! erehwon OpenBSD General 3 3rd November 2009 10:02 PM
Windows scripts can't print drhowarddrfine Other OS 15 31st March 2009 08:53 AM
Periodic scripts for mail scripts stukov FreeBSD General 2 8th March 2009 07:51 PM

All times are GMT. The time now is 12:13 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick