home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #23 / NN_1992_23.iso / spool / vmsnet / internal / 1456 < prev    next >
Encoding:
Internet Message Format  |  1992-10-15  |  3.2 KB

  1. Path: sparky!uunet!stanford.edu!agate!usenet.ins.cwru.edu!ukma!darwin.sura.net!zaphod.mps.ohio-state.edu!usc!news.service.uci.edu!unogate!mvb.saic.com!macro32
  2. From: REGI's <NUNEZ@esevvx.cica.es>
  3. Newsgroups: vmsnet.internals
  4. Subject: (None)
  5. Message-ID: <01GPZH7ION4G0001ZZ@esevvx.cica.es>
  6. Date: Thu, 15 Oct 1992 17:08:00 UTC+0100
  7. Organization: Macro32<==>Vmsnet.Internals Gateway
  8. X-Gateway-Source-Info: Mailing List
  9. Lines: 65
  10.  
  11. >X-Envelope-to: MACRO32@WKUVX1.bitnet
  12. >X-VMS-To: IN::"MACRO32@WKUVX1.BITNET"
  13.  
  14. 1
  15. 12-OCT-1992 16:25:05.69
  16.    1 00:00:00.00
  17. 13-OCT-1992 16:25:05.69
  18. @UKCC.uky.edu:MacroMan@WKUVX1.BITNET
  19. gutier@SEVAXU.CICA.ES
  20.  
  21. Received: from UKCC.uky.edu by ESEVVX.CICA.ES ;  9-OCT-1992 16:24:52.03
  22. Received: from ukcc.uky.edu by UKCC.uky.edu (IBM VM SMTP V2R2)
  23.    with BSMTP id 4200; Fri, 09 Oct 92 11:23:41 EDT
  24. Received: from WKUVX1.BITNET by ukcc.uky.edu (Mailer R2.08) with BSMTP id 8730;
  25.  Fri, 09 Oct 92 11:23:39 EDT
  26. Errors-To: MacroMan@WKUVX1.BITNET
  27. X-ListName: "VMS Internals, MACRO, and BLISS Discussions"
  28.     <MACRO32@WKUVX1.BITNET>
  29. Received: from CUNYVM.BITNET (MAILER) by WKUVX1 (MX V3.1C) with BSMTP; Fri, 09
  30.           Oct 1992 10:18:06 CDT
  31. Received: from CUNYVM by CUNYVM.BITNET (Mailer R2.08) with BSMTP id 2002; Fri,
  32.           09 Oct 92 11:05:52 EDT
  33. Received: from aardvark.ucs.uoknor.edu by CUNYVM.CUNY.EDU (IBM VM SMTP V2R2)
  34.           with TCP; Fri, 09 Oct 92 11:05:50 EDT
  35. Date: Fri, 9 Oct 92 10:05 CDT
  36. From: Chris Petroff <CHRIS@aardvark.ucs.uoknor.edu>
  37. Reply-To: MACRO32@WKUVX1.BITNET
  38. Subject: Re: Finding a users disk name
  39. To: MACRO32@WKUVX1.BITNET
  40. X-VMS-To: IN%"MACRO32@WKUVX1.BITNET"
  41.  
  42. > Hello, I'm helping a friend of mine write a program that kinda simulates
  43. > a unix-type operating system. What we are having trouble with is the
  44. > cd ~user  command. We don't know how to get the person's disk area name
  45. > from their username. We'd like to be able to do cd ~user and have the
  46. > program give us back disk$xxx:[user]. Is there an easy way to do this,
  47. > and a way to do it without having operator privileges. Oh, we are using
  48. > VMS version 5.5
  49.  
  50. What we do here for nonpriv access to low-level SYSUAF info is use the
  51. LIST command from AUTHORIZE to gererate a file with basic info, and then
  52. place it in a world readable spot with appropriate access privs so that
  53. anyone can use it.  A simple SEARCH on this file will return not only
  54. the home directory/device of a user, but also his UIC, Personal Name,
  55. privs (NORMAL/ALL), base priority and Account name.  After we make the
  56. SYSUAF.LIS file, we strip out some stuff and leave only the username,
  57. owner/personal name, UIC, and Directory.  We have a command file which
  58. does this for us which we run after adding/deleting accounts.  We also
  59. have several utilities which are driven off this file...
  60.  
  61. This allows nonprivilaged access to the info, but the real benifit at
  62. the time it was implimented (on a 11/780) was that we did not keep
  63. trashing SUSUAF.DAT everytime we wanted to look someone up!  On a
  64. 6320 (what we have now) it's still more efficient but probably not so
  65. big a deal....
  66.  
  67. This may seem like a bothersome way of doing it, but it is VERY simple
  68. and easy to maintain.  Also, it is not likely to break with the next
  69. version of VMS, but if it does, it is real simple to fix!
  70.  
  71. Just my $.02
  72.  
  73. :-)
  74.  
  75. Chris
  76.