From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076332421192.tru64-unix-managers.marc@archive.invalid> From: Aharon Schkolnik Date: Mon, 06 May 1996 07:26:29 +0000 To: tru64-unix-managers Subject: [ Summary 1 ] Turn-Key (Closed Account) X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076332421192 My original question: >> I want to create a Turn-Key account. That is, I want the user >> to login, be put directly into an application, and when he >> exits the application, to be logged out. The user needs to run >> the ksh shell. What I've done so far, is to put the command to >> run the application at the end of the .profile. I am wondering >> if this is really secure. That is, is there a way for the user >> to break out of the application and get to the shell ? Is there >> a way for the user to skip the execution of the .profile >> command ? Perhaps I should source the command that runs the >> application. Perhaps I should make a special login shell for >> the purpose. If so, how do I do that ? My solution so far: 1. In /etc/passwd - for shell - /usr/local/bin/application-name 2. In /usr/local/bin/application-name #!/bin/ksh # trap '' 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 PATH=$HOME/bin:${PATH:-/usr/bin:.} export PATH stty dec tset -I -Q MAIL=/usr/spool/mail/$USER # # TERM=vt100;export TERM exec application exit What do you think ? Further comments are welcome. I'll summarize again. Other suggestions incluuded using /bin/Rsh Thanks to: >>>>> "Justin" == Justin Richardson >>>>> "Hellebo" == Hellebo Knut >>>>> "UFPEL" == UFPEL <- CPMET > >>>>> "Thomas" == Thomas Erskine >>>>> "Jonathan" == Jonathan B Craig >>>>> "Stephen" == Stephen L LaBelle >>>>> "Richard" == Richard Mackerras >>>>> "Cenon" == Cenon B C Marana >>>>> "ron" == ron barrett -- The day is short, and the work is great, | Aharon Schkolnik and the laborers are lazy, and the reward | Aharon@Matat.Health.Gov.IL is great, and the Master of the house is | impatient. - Ethics Of The Fathers Ch. 2 |