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

  1. Path: sparky!uunet!paladin.american.edu!darwin.sura.net!wupost!usc!elroy.jpl.nasa.gov!ames!network.ucsd.edu!mvb.saic.com!macro32
  2. From: Yaacov Fenster @ISO 882-3153  10-Oct-1992 1818
  3. Newsgroups: vmsnet.internals
  4. Subject: Re: Finding a users disk name
  5. Message-ID: <9210101617.AA20380@vbormc.vbo.dec.com>
  6. Date: Sat, 10 Oct 92 17:17:06 MET
  7. Organization: Macro32<==>Vmsnet.Internals Gateway
  8. X-Gateway-Source-Info: Mailing List
  9. Lines: 36
  10.  
  11. > From: VBORMC::"MACRO32@WKUVX1.BITNET" "MAIL-11 Daemon"  9-OCT-1992 21:11:38.53
  12. > To:   MACRO32@WKUVX1.BITNET
  13. > CC:
  14. > Subj: Re: Finding a users disk name
  15. >
  16. > > Hello, I'm helping a friend of mine write a program that kinda simulates
  17. > > a unix-type operating system. What we are having trouble with is the
  18. > > cd ~user  command. We don't know how to get the person's disk area name
  19. > > from their username. We'd like to be able to do cd ~user and have the
  20. > > program give us back disk$xxx:[user]. Is there an easy way to do this,
  21. > > and a way to do it without having operator privileges. Oh, we are using
  22. > > VMS version 5.5
  23. >
  24. > What we do here for nonpriv access to low-level SYSUAF info is use the
  25. > LIST command from AUTHORIZE to gererate a file with basic info, and then
  26. > place it in a world readable spot with appropriate access privs so that
  27. > anyone can use it.  A simple SEARCH on this file will return not only
  28.  
  29. How about this idea:
  30. Use SYS$GETUAI to get the (up to date !!) information from the sysuaf.
  31. Install the program using SYSPRV privileges (for access to all users) or GRPPRV
  32. (for access to group only).
  33. The items you need are UAI$_DEFDEV & UAI$_DEFDIR.
  34. This has the added advantage of not breaking even if the LIST command from
  35.  AUTHORIZE changes
  36. it's format. And imagine new information being added to the database which is
  37.  output using the LIST command -
  38. which means that IT WILL CHANGE.
  39.  
  40.         Yaacov
  41. -------------------------------------------------
  42. Yaacov Fenster                  +(972)-3-9307239
  43. y.fenster@ieee.org
  44. fenster@taveng.enet.dec.com     DTN 882-3153
  45. All the opinions voiced are mine alone and do not reflect anyone else's
  46. opinion. (Including Dec).
  47.