All TERM Devices Busy (TERM for Unix/Xenix) - Can't Connect to Port
For error message above, check the following three requirements:
UNIX resets Port Permissions
- Permissions for /usr/bin/callin and /usr/bin/callout must be rwsr-xr-x (4755).
- Permissions on the full structure of the /usr/spool/uucp directory must be at least rw-rw-rw- (666). The lock file for the device will be placed in this directory.
- Permissions on the port itself must be rw-rw-rw- (666).
This is for those people that are having locked device issues on the UNIX version of TERM. The port itself gets reset to 600 after we change it to 666.
This is an example script and not for all UNIX systems!
The script included below seems to solve the problem of callin/callout not being able to enable and disable ports that use port monitors. Place the script in /usr/bin and do a chmod 0777 to make it executable and accessible to all from anywhere. As you can see it is very simple- it disables the port, makes it accessible to term, starts term, then re-enables the port.
/usr/sbin/pmadm -d -pttymon0 -s00
chmod 0666 /dev/term/00
/usr/sbin/pmadm -e -pttymon0 -s00
This script is from: Unisys U6000 SVR4 UNIX