Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!snorkelwacker!husc6!unix!mxmora From: mxmora@unix.SRI.COM (Matt Mora) Newsgroups: comp.sys.mac.programmer Subject: Re: Chooser User Name Message-ID: <14593@unix.SRI.COM> Date: 27 Jul 90 15:48:29 GMT References: <1990Jul17.142154.4841@ux1.cso.uiuc.edu> <14278@unix.SRI.COM> <1990Jul26.144556.20663@acc.stolaf.edu> Reply-To: mxmora@unix.UUCP (Matt Mora) Distribution: comp Organization: SRI International, Menlo Park, CA Lines: 59 In article <1990Jul26.144556.20663@acc.stolaf.edu> sobiloff@agnes.acc.stolaf.edu (Chrome Cboy) writes: >In article <14278@unix.SRI.COM> mxmora@unix.UUCP (Matt Mora) writes: >>In article <1990Jul17.142154.4841@ux1.cso.uiuc.edu> resnick@lees.cogsci.uiuc.edu (Pete Resnick) writes: >>>How does one go about retrieving the User Name that has been typed into >>>Chooser or Responder?[...] >> >>Glad you asked... I just wrote an INIT the resets the chooser name to the >>string specified by the network admin.[...] > >Is the INIT you wrote called "$ChooserLock"? I d/l'd it, but all it seemed to >do was prompt you for a workstation name every time the machine was booted. >Is this what was intended, or did I get a bad d/l? No, The init I wrote is called fix chooser name. At startup it checks the chooser name and if it is not the same as the one stored in the init, the init changes it to match. It comes with an install program that the netadm uses to set the name of the machine to install it on. This init is of course very defeatable. For one you could take it out of the system folder. Two, a user could use resedit to change the string to whatever he/she wants it to be. Some of our people use the broadcast rdev to communicate back to one another and sometimes change the user name in the process. This init at least sets it back to the correct name after each startup. The init only does its work at startup time and does not hang around. Some people won't find it very useful but it serves are purposes well. The majority of our users just do their work (be it word processing or spread sheeting or whatever) and don't have any idea (or care) of what the chooser name is used for. You could use resedit to install the init into the system file so that the user can't drag it out of the trash. >I think a *lot* of admins have been looking for some way to set the Chooser >name and locking it so that it can't be changed, ever (well, without the help >of ResEdit.) I know we have. As a novice Mac programmer I wasn't sure how to >go about this until a saw a pointer from Amanda Walker and someone else over >in comp.sys.mac.misc. Anything you can do with resedit so can a user. So no matter what you do, it can be defeated. You could take resedit of their machine. >Next week I'll be working on a small program that will let a netadmin specify >a Chooser name for a startup disk, and then lock that resource. IMHO, a little >less defeatable than an INIT... :-) > -CCb Good luck :-) Send me a copy when you get it done. -- ___________________________________________________________ Matthew Mora | my Mac Matt_Mora@sri.com SRI International | my unix mxmora@unix.sri.com ___________________________________________________________