home *** CD-ROM | disk | FTP | other *** search
- 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
- From: REGI's <NUNEZ@esevvx.cica.es>
- Newsgroups: vmsnet.internals
- Subject: (None)
- Message-ID: <01GPZH7ION4G0001ZZ@esevvx.cica.es>
- Date: Thu, 15 Oct 1992 17:08:00 UTC+0100
- Organization: Macro32<==>Vmsnet.Internals Gateway
- X-Gateway-Source-Info: Mailing List
- Lines: 65
-
- >X-Envelope-to: MACRO32@WKUVX1.bitnet
- >X-VMS-To: IN::"MACRO32@WKUVX1.BITNET"
-
- 1
- 12-OCT-1992 16:25:05.69
- 1 00:00:00.00
- 13-OCT-1992 16:25:05.69
- @UKCC.uky.edu:MacroMan@WKUVX1.BITNET
- gutier@SEVAXU.CICA.ES
-
- Received: from UKCC.uky.edu by ESEVVX.CICA.ES ; 9-OCT-1992 16:24:52.03
- Received: from ukcc.uky.edu by UKCC.uky.edu (IBM VM SMTP V2R2)
- with BSMTP id 4200; Fri, 09 Oct 92 11:23:41 EDT
- Received: from WKUVX1.BITNET by ukcc.uky.edu (Mailer R2.08) with BSMTP id 8730;
- Fri, 09 Oct 92 11:23:39 EDT
- Errors-To: MacroMan@WKUVX1.BITNET
- X-ListName: "VMS Internals, MACRO, and BLISS Discussions"
- <MACRO32@WKUVX1.BITNET>
- Received: from CUNYVM.BITNET (MAILER) by WKUVX1 (MX V3.1C) with BSMTP; Fri, 09
- Oct 1992 10:18:06 CDT
- Received: from CUNYVM by CUNYVM.BITNET (Mailer R2.08) with BSMTP id 2002; Fri,
- 09 Oct 92 11:05:52 EDT
- Received: from aardvark.ucs.uoknor.edu by CUNYVM.CUNY.EDU (IBM VM SMTP V2R2)
- with TCP; Fri, 09 Oct 92 11:05:50 EDT
- Date: Fri, 9 Oct 92 10:05 CDT
- From: Chris Petroff <CHRIS@aardvark.ucs.uoknor.edu>
- Reply-To: MACRO32@WKUVX1.BITNET
- Subject: Re: Finding a users disk name
- To: MACRO32@WKUVX1.BITNET
- X-VMS-To: IN%"MACRO32@WKUVX1.BITNET"
-
- > 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
- the home directory/device of a user, but also his UIC, Personal Name,
- privs (NORMAL/ALL), base priority and Account name. After we make the
- SYSUAF.LIS file, we strip out some stuff and leave only the username,
- owner/personal name, UIC, and Directory. We have a command file which
- does this for us which we run after adding/deleting accounts. We also
- have several utilities which are driven off this file...
-
- This allows nonprivilaged access to the info, but the real benifit at
- the time it was implimented (on a 11/780) was that we did not keep
- trashing SUSUAF.DAT everytime we wanted to look someone up! On a
- 6320 (what we have now) it's still more efficient but probably not so
- big a deal....
-
- This may seem like a bothersome way of doing it, but it is VERY simple
- and easy to maintain. Also, it is not likely to break with the next
- version of VMS, but if it does, it is real simple to fix!
-
- Just my $.02
-
- :-)
-
- Chris
-