Operating System - OpenVMS
1783201 Members
1393 Online
109144 Solutions
New Discussion юеВ

Directury security, new created files

 
SOLVED
Go to solution
Dario Karlen
Frequent Advisor

Directury security, new created files

there's a directory [wal.xfer] with following security set:
KARLEND > dir/secu [wal]xfer.dir

Directory DSA2:[WAL]

XFER.DIR;1 218 19-FEB-2001 14:14:13.07 [SYSTEM]
(RWE,RWE,RE,E)
(IDENTIFIER=[FTP],OPTIONS=DEFAULT,ACCESS=READ+WRITE+EXECUTE)
(IDENTIFIER=[FTP],ACCESS=READ+WRITE+EXECUTE)

Total of 1 file, 218 blocks.

i would like that new files created in this directory have this security. it works when i create a new file in this dir by hand. but there's a program that every hour creates a new file in this dir:
OPEN (W_LUN,FILE='WAL_XFER:TAGD.TXT',STATUS='NEW',
2 carriagecontrol='list',
2 RECL=128)
and on this file only system has privileges. why??
3 REPLIES 3
Volker Halle
Honored Contributor
Solution

Re: Directury security, new created files

Dario,

consider to set up a DEFAULT_PROTECTION ACE for that directory:

$ SET SECURITY/ACL=(DEFAULT_PROTECTION,S:RWE,O:RWE,G:RE,W:E) DSA2:[WAL]XFER.DIR

Volker.
Volker Halle
Honored Contributor

Re: Directury security, new created files

Dario,

the default protection of a newly created file is taken from the default protection mask, if no DEFAULT_PROTECTION ACE is specified.

$ SHOW PROT will show the default protection mask.

$ SET PROT=[(code)]/DEFAULT will change it

The system parameter RMS_FILEPROT will provide the systemwide default.

Volker.
Dario Karlen
Frequent Advisor

Re: Directury security, new created files

jep, exactly what i need!
besten Dank Volker