[comp.os.vms] changing file protections

keough@MITRE-BEDFORD.ARPA (08/19/87)

would anyone have source code for changing file protections from within
an executing program? we're aware of access to these through QIOs and the
information in volume 10A on I/O programming, but perhaps someone has 
already written a simple interface for getting at file protections.

the reason we'd like to have this (for the curious, anyway): a privileged
image creates certain command procedures and then submits them. because
the image creates the command procedure, it is owned by the system. because
it is created in the user's process, the command procedure inherits the
default file protections of the user. because the command procedure is
not created on the user's directory, trying to spawn it fails because the
user usually has no privilege to read it (unless his default protection
is world:r). spawning a "set protection" DCL command from the image will
fail because the user does not own the file.

thanks for any help ...

Jerry Keough
Tech Staff
The MITRE Corporation
keough@mitre-bedford.arpa