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

Conference orarep::nomahs::repository

Title:Oracle CDD/Repositorynce
Notice:Current versions are V7.0-01 and V6.1-03eld Test 3
Moderator:8292::PJACOBN
Created:Thu Jan 21 1993
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1094
Total number of notes:4913

1063.0. "cdd-w-nodnotfnd with cobol/dbms compile" by UKVMS3::SHISCOCK (stand and deliver) Mon Mar 10 1997 03:55

    Hi,
    
    I have what looks to be a privilege problem with cdd(6.1), dbms(6.1)
    and dec cobol (2.4) on axp/vms 6.2.
    When an underprivileged user tries to compile his cobol with dbms
    program he gets
    
    cobol/check=bounds/list/copy/stand=v3/nofips  source_file
    
    DB SUBDEF12 WITHIN CIRCE.
    
    %cobol-e-cddaccerr    error in accessing subschema
    -cdd-w-nodnotfnd,  directory or object not found
    
    The have cdd$default defined to the user repository and directory
    (does not specify dmu style cdd$top).
    
    They have no problems doing either $dbo/extract/subschema=subdef12
    or using $dbo/report. They can go into cdo and do
    sho generic dbm$schema/full circe.
    
    However a user with SYSPRV and additional DEFINE access within CDD
    at object level can perform this.
    
    An identical setup on a vax system regarding privileges and protections
    does not cause any problems.
    
    Cdd protections are for [*,*] :
    
    directory level
    read,write,modify,erase,show,define,change,delete,control,op,admin.
    
    dbm$schema
    read,write,modify,erase,show,change,delete,control,op.,admin.
    
    cdd$database
    read,write,modify,erase,show,change,delete,control,op.,admin.
    
    
    Any ideas?
    
    cheers,
    
    Steve
    
    
    
T.RTitleUserPersonal
Name
DateLines
1063.1maybe audit will highlight somethingUKVMS3::SHISCOCKstand and deliverTue Mar 11 1997 11:505
    
    If the user has SYSPRV they're okay. I've asked the customer
    to set audit alarms for file and acl failure.
    
    Steve
1063.2SH PROTE REP ? 8292::PJACOBPatrick [email protected]Tue Mar 11 1997 12:566
    Hi Steve,
    
    What is the result and the difference between VAX and Alpha of a 
    CDO SHOW PROTECTION FOR REPOSITORY ?
    
    Patrick
1063.34.3 so no protection displayUKVMS3::SHISCOCKstand and deliverFri Mar 14 1997 09:4116
    
    Hi Patrick,
    
    Thanks. Unfortunately the vax system has cdd 4.3 compared to the axp
    which has 6.1. So now dictionary/repository protection comparison.
    
    They switched on audit/alarms for file-access and acl failure and
    nothing showed up. Yet it definitely is a security problem.
    
    I've decided to send them 6.1 eco 3 for the hell of it. Clutching
    at straws I guess.
    
    Could the cobol interface into cdd be at fault?
    
    regards,
    Steve
1063.4try this...M5::JAKUHN[email protected]Thu Mar 20 1997 18:199
    I had the exact same problem. We tried everything, opened everything
    up, set every flag, did a set watch/files ect. w/ bypass on there was
    no problem but with it off and everything opened up, no luck.
    
    In the end, the customer decided to rmu/backup cdd$database.rdb,
    delete everthing in the direcotry, then restore the cdd$database.rdb
    and do a VERIFY/REBUILD...and the problem went away. ?????
    Maybe an ACL definition got hosed and in bypass there was no check
    for it? 
1063.5more...M5::JAKUHN[email protected]Fri Mar 21 1997 15:294
    Along these same lines, during the compile we noticed that an attach
    was done on the compatibility dictionary before it attached to the 
    dictionary where the dbms schema was. There were no links. Anyone know
    why this is?
1063.6just some thoughts8292::PJACOBPatrick [email protected]Mon Mar 24 1997 04:1315
    Hi Jay,
    
    does it happen only on programs having DBMS database ? I suspect an
    access can be done in this case for compatibility reason to access
    metadata in DMU format. Otherwise , maybe DBMS need to attach first to
    a repository to map its protocols and it uses to do it on
    CDD$COMPATIBILITY.  
    
    Hope this helps.
    
    Patrick   
    
    PS: What has changed in protection after the VERIFY/REBUILD inside CDO
    ( especially for the repository ) and outside ( VMS ACLs )?
                                                               
1063.7thanks 4 the explanationM5::JAKUHN[email protected]Tue Mar 25 1997 15:469
    Hi,
    
    /   does it happen only on programs having DBMS database 
    
    Not sure, but i will test it. i'm just curious, but i think your
    explanation pretty much answers the question. Something we are going
    to have the customer try is to turn on file auditing and give the
    compile a shot. Gary here thinks the problem is something about cdd.dic
    or the dir that it is in.
1063.8This entry is referenced in bug # 473799M5::GHODSONWed Apr 02 1997 13:1878
This entry is referenced in bug # 473799

  Note:  this might be related to bug 469152 and discussed in note 1072.


Versions:  CDD 6.1-03 and 7.0


SYMPTOM:

A nonprivileged user tries to compile a Cobol program that references a
DBMS subschema.  The compile fails with this error:

   %COBOL-F-CDDACCERR, *Error in accessing subschema - DB statement ignored
   -CDD-W-NODNOTFND, directory or object not found

The user can successfully excute these DBO commands:

   $ dbo/report cdd$default
   $ dbo/extract/subschema=...

If the process is given BYPASS privilege, then the compile works.


WORKAROUND:

Instead of giving the user account BYPASS privilege, you can change the
CDD protection for the repository to give the user control access.  Then
the nonprivileged user can successfully compile with the subschema.


ANALYSIS:

Here is an example that demonstrates this problem.

The user accounts, user1 and user2 only have TMPMBX and NETMBX privileges

Log in to the user1 account and create the CDD repository and define
the schemas.

  $ define cdd$default sys$sysdevice:[user1.cdd]
  $ mcr cdo
  define dictionary cdd$default.
  exit
  $ dbo/create/import=SYS$COMMON:[SYSTEST.DBM]dbmparts.dbm/alloc=1/block=1 -
    /nospace parts/log
  $ dbo/intergrate parts.roo/path=cdd$default
  $ cobol sys$common:[systest.dbm]dbm$sampcob.cob
  $! give world read access the the user1 directory
  $ set security/prot=(w:r) [-]user1.dir

Now log in to the user2 account and try compiling the cobol program

  $ define cdd$default sys$sysdevice:[user1.cdd]
  $! The following dbo commands work
  $ dbo/report cdd$default
  $ dbo/extract/subschema=partss5 parts
  $! The following compile fails
  $ cobol sys$common:[systest.dbm]dbm$sampcob.cob

          DB PARTSS5 WITHIN PARTS.
  ...........^
  %COBOL-F-CDDACCERR, *Error in accessing subschema - DB statement ignored
  -CDD-W-NODNOTFND, directory or object not found
  at line number 151 in file SYS$COMMON:[SYSTEST.DBM]DBM$SAMPCOB.COB;2

Now log in to user1 and change the protection for the repository, adding
control privilege for the identifier [*,*].

  $ mcr cdo
  ! first find the position for the identifier [*,*]
  show protection for repository cdd$default
  change protection for repository cdd$default 
  position 2 access control.    ! use the correct position number
  exit

Now user2 can successfully compile the cobol program.

1063.9double dratUKVMS3::SHISCOCKstand and deliverFri May 09 1997 12:295
    Thanks but CONTROL access didn't help me customer. 
    
    cheers,
    
    Steve
1063.10cdd or cobol/cdd bug?UKVMS3::SHISCOCKstand and deliverFri May 16 1997 11:2512
    
    I really believe if you don't have the vms prvilege no matter what
    cdd protection you set isn't going to help.
    
    The only workaround I have so far is to install cobol with
    /priv=sysprv.
    
    So is this a cdd bug or a cobol(+cdd interface) bug?
    
    cheers,
    
    Steve