| 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 |
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.R | Title | User | Personal Name | Date | Lines |
|---|---|---|---|---|---|
| 444.1 | Several ways which work - probably more which are better | BUFFER::VICKERS | If it helps a customer, DO IT | Wed Apr 08 1992 22:30 | 33 |
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.2 | IOSG::MAURICE | IOSG ain't a place to raise a kid | Thu Apr 09 1992 09:33 | 9 | |
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
| |||||