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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to deturmine DIAL-IN users

Status
Not open for further replies.

Dirtbike

IS-IT--Management
Dec 9, 2002
81
US
I thought I knew this one but I'm going to need some help. We want to stop a user from dialing into the SCO box at the .profile. One kind person donated the syntax to exclude a particular tty with:

case `tty` in */ttyXX)
echo "This tty (`tty`) is forbidden"; exit;;
esac

And I'm sure it will work but I don't know what tty to look for. I'm pretty sure the modem is connected to COM2. Thanks for your help.
 
`tty` (back ticked tty) command woulr return the value ot tty

if ur are using modem ports (which u should be) then COM 2 = tty2A (note capital) and for non-modem it is tty2a.

COM1 = tty1A/tty1a



[ponder]
----------------
ur feedback is a very welcome desire
 
`tty` (back ticked tty) command woulr return the value ot tty port e.g tty1A

if ur are using modem ports (which u should be) then COM 2 = tty2A (note capital) and for non-modem it is tty2a.

COM1 = tty1A/tty1a



[ponder]
----------------
ur feedback is a very welcome desire
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top