Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Modem: can use with root, but not other

Status
Not open for further replies.

bigmac13

Technical User
Sep 26, 2002
22
US
i've got a usrobotics v.90 56k standard modem hooked up to a sun ultra 10 running solaris 8. i set up a program called yaps (yet another pager software) to send out sms pages through a nextel gateway. now, i set it all up using root, and got it working perfectly, but nagios, the monitoring program i use that calls yaps, will not run it. when i try calling the command line /usr/local/bin/yaps ... i get the following message:

<
Found service D1 for 616xxxxxxx
Sending following message:
mike (D1, 616xxxxxxx): test -nagios
Trying to open /dev/cua/b for modem standard
Unable to dial D1
>

it looks to me to be a permissions problem with the modem or a program trying to access the modem, but i'm not sure which one (if any). has anyone had a similar problem or know what my problem might be?? thanks for any help...

-mike
 
run
ls -l /dev/cua/b
could be a permission problem.

for example at my Solaris 8
bash-2.03$ ls -l /dev/cua/b
lrwxrwxrwx 1 root root 54 Dec 12 17:47 /dev/cua/b -> ../../devices/pci@8,700000/ebus@5/serial@1,400000:b,cu



bash-2.03$ ls -l /devices/pci\@8,700000/ebus\@5/serial\@1,400000\:b,cu
crw------- 1 uucp uucp 20,131073 Dec 12 17:47 /devices/pci@8,700000/ebus@5/serial@1,400000:b,cu

__
___
 
thanks for the reply... :)

my permissions were the same for both the link and the actual device, except the the group for the device was tty instead of uucp. i tried switching to uucp, but still no luck. i glanced through the source for yaps (yaps.c), and figure that it must be quitting near the call of the functions tty_open and tty_setup. i'm not sure if these would be calling any binaries that i'd have to check the permissions on or what...

-mike
 
What user does 'nagios' run as? Try giving that user read/write access to the device. Annihilannic.
 
ok, i found the problem...

Basically all I had to do was a chmod 4755 yaps
Which changed
-rwxr-xr-x to
-rwsr-xr-x

thanks for the help :)

-mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top