[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

423.0. "Security OPCOM on archiving" by UTRTSC::BOSMAN (We're just sugar mice in the rain) Tue Apr 07 1992 13:54

    Hi,

    Anyone seen this before? When a user wants to archive a document (FC
    {NEXT SCREEN} { NEXT SCREEN} ADN) a console security message is
    displayed that a non-privileged attempt is made:
    
    Object: DISK0:[ALLIN1]ARCHIVE_AREA_002.DIR
    Access: Read
    Status: no privilege for attempted operation

    You can try it by enable security messages opcom ($ REPLY /ENA=SECU),
    give yourself only NETMBX and TMPMBX and archive a document.

    The archiving itself is done correctly. A customer with a hardcopy
    console has a problem with this one.
    
    Sjaak.
T.RTitleUserPersonal
Name
DateLines
423.1Lexicals in ARCHIVE_USER_DOCUMENT51384::BOSMANWe're just sugar mice in the rainWed Apr 08 1992 14:2717
    Ok, I will answer my own question.
    
    In the ALL-IN-1 V2.4 script ARCHIVE_USER_DOCUMENT the device for
    archiving and the size of the document(s) are retrieved with lexical
    functions (F$PARSE and F$FILE). If the user has no privilege to access
    one of these an OPCOM message will be generated.
    
    Because the document-size is necessary to check diskquota we have a
    potential problem here. Just archive a document (without any privs on)
    and GET #FTOTAL to see the document-size (it is 0!).
    
    In ALL-IN-1 V3.0 the new data-set FILE$ is used to get these values.
    This works fine for the BLOCK_SIZE, but DEVICE still will generate an
    OPCOM message. Can someone explain the difference between these two
    behaviours (just to keep our customer happy)?
    
    Thanks in advance, Sjaak.
423.2Parse checks for file existanceIOSG::BENOYIn a state of fluxFri Apr 10 1992 14:3227
    
    RE .1
    
>    In ALL-IN-1 V3.0 the new data-set FILE$ is used to get these values.
>    This works fine for the BLOCK_SIZE, but DEVICE still will generate an
>    OPCOM message. Can someone explain the difference between these two
>    behaviours (just to keep our customer happy)?
    
    The reason why file$ gives an opcom message for the device field and
    not for block_size is as follows. When file$ is looking for the block
    size for the document to archive it will usually have no problems if
    the extended attributes of a file are readable by the user calling
    file$. That is if the document is accessable by the user, ie is local
    or in a shared area, since file$ follows the same rules as other
    functions do to access things in the shared area, ie turn on privs. 
    
    The device field is returned as a result of an RMS $parse operation,
    which by default always does an implicit search to establish whether 
    the device/directory/file in the file spec string exists. Since file$
    always uses the default behaviour for $parse in this case it will
    always do an implicit search to verify that the device and directory
    exists. Since there is no world access to the archive area directories
    the $parse operation will always generate an alarm for this directory.
    
    Does this answer your question ?
    
    -Paul
423.3PartiallyUTRTSC::BOSMANWe're just sugar mice in the rainMon Apr 13 1992 08:146
    Paul, 
    
    Thanks for the explanation. But, why not turning privs on before the
    $parse?
    
    Sjaak.
423.4SecurityIOSG::BENOYIn a state of fluxTue Apr 14 1992 11:5211
    
    RE .3
    
>    Thanks for the explanation. But, why not turning privs on before the
>    $parse?
    
    Because it would give access to extended file attributes that would not
    normally be accessable to the user at VMS level. The exception to this
    being if a file is in a shared area, then privs are turned on.
    
    -Paul