[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference iosg::all-in-1_v30

Title:*OLD* ALL-IN-1 (tm) Support Conference
Notice:Closed - See Note 4331.l to move to IOSG::ALL-IN-1
Moderator:IOSG::PYE
Created:Thu Jan 30 1992
Last Modified:Tue Jan 23 1996
Last Successful Update:Fri Jun 06 1997
Number of topics:4343
Total number of notes:18308

444.0. "DRAWER ACCESS FLAG FOR A1 V3.0??" by KAOFS::D_STREET () Wed Apr 08 1992 22:27

    Hello,
    	 I have a customer running ALL-IN-1 V3.0, and he has a question. I
    hope this is the correct place to raise it. 
    
    	 He wants to know if there is a logical that will tell him if he
    has WRITE access to his current DRAWER. He says that CAB SET DRAWER
    defines a number of logicals, and would like to know if one of them
    defines the type of access he has (i.e. control). Any and all input
    will be gratefully accepted.
    
    
    						Derek Street
T.RTitleUserPersonal
Name
DateLines
444.1Several ways which work - probably more which are betterBUFFER::VICKERSIf it helps a customer, DO ITWed Apr 08 1992 23:3033
    I suspect that the customer is saying logical when he means symbol.  An
    easy way to get all of the current drawer symbols is:

    <EXAMINE (SYMBOL="OA$CURDWR*")

    Of course, there may be some that don't start with OA$CURDWR but I am
    sure that someone will point out my stupidity if I am wrong.

    I am not aware of any real drawer level indicator of access control. 
    There is an access control file in the drawer subdirectory cleverly
    called ACCESS.DAT.  One way to determine whether the user has access to
    the drawer would be the following:

    GET #ACCESS_FILE = PARTITION.DIRECTORY[OA$CURDWR_LOCATION] "ACCESS.DAT"
    CHECK_ACCESS ,#FILE,"R",#ACCESS_FLAG
    .IF OA$STATUS AND #ACCESS_FLAG THEN .GOTO READ_ALLOWED

    The CHECK_ACCESS function in the example above is checking for Read
    access.  It could also check for Write, Execute, or Delete.  The check
    after that checks both OA$STATUS and the returned #ACCESS_FLAG in case
    the file itself is not there or other error occurs.

    The ACL$ dataset could be replace the above with roughly the same level
    of effort, of course.

    This check does not check to see if the drawer is one of advanced
    drawers where each document is controlled individually.

    The CABINET EDIT_DOCUMENT/CHECK_ONLY is another way to check a single
    document to see if a user can edit a document, of course.

    Have fun,
    don
444.2IOSG::MAURICEIOSG ain&#039;t a place to raise a kidThu Apr 09 1992 10:339
    Hi,
    
    The only thing I can add to Sir Don is that you cannot determine the access
    for a remote drawer. There is script in oa$do called FC_CHECK_DRAWER_ACCESS
    that you might want to take a look at.
    
    Cheers
    
    Stuart