Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!uc!shamash!nic.MR.NET!nic.stolaf.edu!agnes.acc.stolaf.edu!sobiloff From: sobiloff@agnes.acc.stolaf.edu (Chrome Cboy) Newsgroups: comp.sys.mac.programmer Subject: Re: Chooser User Name Message-ID: <1990Jul26.144556.20663@acc.stolaf.edu> Date: 26 Jul 90 14:45:56 GMT References: <1990Jul17.142154.4841@ux1.cso.uiuc.edu> <14278@unix.SRI.COM> Sender: news@acc.stolaf.edu Reply-To: sobiloff@agnes.acc.stolaf.edu (Chrome Cboy) Distribution: comp Organization: St. Olaf College; Northfield, MN Lines: 33 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? 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. The key is to set the "Protected" attribute on the resource, not the "Locked" attribute, as was suggested. This will let the user change their Chooser name 'till their heart's content, but the change will not be saved. Thus you can have a fairly reliable indicator of who's on the network when you only allow Guest access to servers in public labs. 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 -- "Gonna' do just what I please, Gonna' wear no socks and shoes, With nothing to do but feed all the kangaroos." -Steely Dan, "Black Friday"