I have a modem connected to a PC running SCO UNIX.
Its device file looks like:
crw-rw-rw- 1 uucp uucp 5, 0 Aug 26 14:20 tty1a
I have a program that calls the dial() function to connect
to the modem and then transmits a short message to a paging
center.
The problem is that I can only run the program as root, I get
an error "DV_NT_A", or -8, for "requested device not available"
whenever I run the program as a non-root user.
Since I have a Web interface for the program, and httpd is not
root, I'm stuck.
I heard that I may use setuid() or sticky bit to gain access to
the modem, but don't know how.
Please help me by sending e-mail or posting here.
Thanks a bunch.