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!

Can I Kill the DIAL-IN users @ .profile

Status
Not open for further replies.

Dirtbike

IS-IT--Management
Dec 9, 2002
81
US
I'm looking for syntax to add to my pool of .profile files that will disconnect a user from dialing in. Our UNIX guru said he would write me the code but he just hasn't. Is there a way to write a IF TTYxx THAN EXIT or something like that. I have the TTYxx that is in question, I just need the IF, THAN, ELSE syntax. Thanks for your help here!
 
Something like this:
Code:
case `tty` in */ttyXX)
  echo "This tty (`tty`) is forbidden"; exit;;
esac

Hope This Help
PH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top