Xref: utzoo comp.sources.wanted:2661 comp.sys.ibm.pc:9455 Path: utzoo!utgpu!water!watmath!mks!wheels From: wheels@mks.UUCP (Gerry Wheeler) Newsgroups: comp.sources.wanted,comp.sys.ibm.pc Subject: Re: Need LOGIN Shell for MS-DOS Summary: we have one in the MKS Toolkit Keywords: MSDOS Message-ID: <338@mks.UUCP> Date: 11 Dec 87 15:17:19 GMT References: <145@tsdiag.UUCP> Organization: Mortice Kern Systems, Waterloo, Ont. Lines: 37 In article <145@tsdiag.UUCP>, tom@tsdiag.UUCP writes: > I am looking for a shell that will let me force users of our office PC > to login (hey, they understand it better that way :-) > What would be nice (i can modify it, i could write but i'm lazy) > is for the system to boot and run \autoexec.bat and then go into > a login loop and when the users login run a "autoexec" from their > home directory to set up the commands and vars they need... > -- > Thomas A. Moulton, W2VY Life is too short to be mad about things. > Home: (201) 779-W2VY Packet: w2vy@kd6th Voice: 145.190 (r) > Work: (201) 492-4880 x3226 FAX: (201) 493-9167 > Concurrent Computer Corp. uucp: ...!ihnp4!hotps!ka2qhd!w2vy You'll find almost exactly what you want in the MKS Toolkit. By using our programs init, login, and sh, each user gets to log in, gets his own home directory, and gets his own profile. It's a neat solution for those PC's that are shared by several people. The only real change you would have to make is to translate autoexec.bat to a shell script. They're look different, but you should be able to do all the same things. You get to use three different scripts: /etc/rc.ksh is run once before the first login (for installing TSR's, setting comm ports, etc.), then each user's shell runs /etc/profile.ksh (for default path definition, etc.) and profile.ksh in the home directory (to personalize the environment). One extra feature is that init "memorises" the state of the machine, then restores it between logins. This means that a user can load his favourite TSR in his own profile.ksh, and it will be removed before the next user logs in. Send me a message if you need more details. -- Gerry Wheeler Phone: (519)884-2251 Mortice Kern Systems Inc. UUCP: uunet!watmath!mks!wheels 43 Bridgeport Rd. E. BIX: join mks Waterloo, Ontario N2J 2J4 CompuServe: 73260,1043