* OpenVMS: How to default all files creation with fixed file permission?
@ 1998-07-16 4:00 Kevin Lai
1998-07-16 4:00 ` Joseph Huber
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Kevin Lai @ 1998-07-16 4:00 UTC (permalink / raw)
I am new to OpenVMS.
How can I ensure all new file creation default to a fixed file
permission?
Currently, I had users of same Group creating files to certain
directories, but there are some files which will be accessed by others
and need to be modified.
But due to the permission of the file created, the users of the same
group still unable to modify or overwrite.
I tried setting permission of the directories to /PROT=(G:RWED) but
still files are created with (G:RE).
Can anyone help?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: OpenVMS: How to default all files creation with fixed file permission?
1998-07-16 4:00 OpenVMS: How to default all files creation with fixed file permission? Kevin Lai
1998-07-16 4:00 ` Joseph Huber
1998-07-16 4:00 ` quodling
@ 1998-07-16 4:00 ` Robin Garner
1998-07-16 4:00 ` Wayne W. Scott
3 siblings, 0 replies; 5+ messages in thread
From: Robin Garner @ 1998-07-16 4:00 UTC (permalink / raw)
Kevin Lai wrote:
>
> I am new to OpenVMS.
>
> How can I ensure all new file creation default to a fixed file
> permission?
>
To set default protection for files in a directory, set a default
protection ACL with a command like this:
$ SET SECURITY X.DIR/ACL=(DEFAULT,SYSTEM:RWED,OWNER:RWED,GROUP:RE,W:RE)
Setting default protection for the current process can be done
with
$ SET PROTECTION=(prot-code)/DEFAULT
and probably with a SET SECURITY command that I've not yet bothered
to learn.
BTW, comp.os.vms is a better place to ask VMS questions.\x1a
--
Robin Garner SMTP: Robin.Garner at assetservices.com-junk.au
VMS Specialist "I always fear the worst - after all, there's
P&O Services no point in fearing the best, is there ?"
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: OpenVMS: How to default all files creation with fixed file permission?
1998-07-16 4:00 OpenVMS: How to default all files creation with fixed file permission? Kevin Lai
@ 1998-07-16 4:00 ` Joseph Huber
1998-07-16 4:00 ` quodling
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Joseph Huber @ 1998-07-16 4:00 UTC (permalink / raw)
In Article <35ad5745.1935408@news.pacific.net.sg>
netsurfer@sentosa.singaporemail.com (Kevin Lai) writes:
>How can I ensure all new file creation default to a fixed file
>permission?
>Currently, I had users of same Group creating files to certain
>directories, but there are some files which will be accessed by others
>and need to be modified.
>But due to the permission of the file created, the users of the same
>group still unable to modify or overwrite.
>I tried setting permission of the directories to /PROT=(G:RWED) but
>still files are created with (G:RE).
The PROCESS creating the file must have the /DEFAULT protection set so:
SET PROTECTION=(G:RWED)/DEFAULT
(or set the protection via RMS calls from the program).
In general, a better approach to sharing files is to use resource identifier
( see HELP ADD /ident in authorize),
and set a default ACL on the DIRECTORY file, granting access for the holders of
that identifier.
--
Joseph "Sepp" Huber, Max-Planck-Institut Physik,Muenchen, Tel. +49 89 32354-344
At Cern (Atlas) Tel. +41 22 767-9879/-6820
E-mail: huber@mppmu.mpg.de | http://wwwvms.mppmu.mpg.de/~huber
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: OpenVMS: How to default all files creation with fixed file permission?
1998-07-16 4:00 OpenVMS: How to default all files creation with fixed file permission? Kevin Lai
1998-07-16 4:00 ` Joseph Huber
@ 1998-07-16 4:00 ` quodling
1998-07-16 4:00 ` Robin Garner
1998-07-16 4:00 ` Wayne W. Scott
3 siblings, 0 replies; 5+ messages in thread
From: quodling @ 1998-07-16 4:00 UTC (permalink / raw)
In article <
35ad5745.1935408@news.pacific.net.sg>,
netsurfer@sentosa.singaporemail.com wrote:
> I am new to OpenVMS.
>
> How can I ensure all new file creation default to a fixed file
> permission?
>
> Currently, I had users of same Group creating files to certain
> directories, but there are some files which will be accessed by others
> and need to be modified.
>
> But due to the permission of the file created, the users of the same
> group still unable to modify or overwrite.
>
> I tried setting permission of the directories to /PROT=(G:RWED) but
> still files are created with (G:RE).
If you want to set this system wide, you can do one
of two things. Have a look at the sysgen parameter
RMS_FILEPROT, which you can also fiddle with
SET RMS_default/system.
Peter Q.
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: OpenVMS: How to default all files creation with fixed file permission?
1998-07-16 4:00 OpenVMS: How to default all files creation with fixed file permission? Kevin Lai
` (2 preceding siblings ...)
1998-07-16 4:00 ` Robin Garner
@ 1998-07-16 4:00 ` Wayne W. Scott
3 siblings, 0 replies; 5+ messages in thread
From: Wayne W. Scott @ 1998-07-16 4:00 UTC (permalink / raw)
I just had to look that up this week. There is a command you can add
to the login.com that will take care of this. It's similar to the UNIX umask.
I don't have the manuals here at home, but if memory is right --
$set prot=(s:rewd,o:rewd,g:re,w:re) /default
It's in section 4 of the OpenVMS Users' Manual.
Wayne
=====
Kevin Lai wrote:
> I am new to OpenVMS.
>
> How can I ensure all new file creation default to a fixed file
> permission?
>
> Currently, I had users of same Group creating files to certain
> directories, but there are some files which will be accessed by others
> and need to be modified.
>
> But due to the permission of the file created, the users of the same
> group still unable to modify or overwrite.
>
> I tried setting permission of the directories to /PROT=(G:RWED) but
> still files are created with (G:RE).
>
> Can anyone help?
--
[wscott@nac.nYet -> if you're not a spammer, edit the 'Y' to reply!]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1998-07-16 4:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-07-16 4:00 OpenVMS: How to default all files creation with fixed file permission? Kevin Lai
1998-07-16 4:00 ` Joseph Huber
1998-07-16 4:00 ` quodling
1998-07-16 4:00 ` Robin Garner
1998-07-16 4:00 ` Wayne W. Scott
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox