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