Operating System - OpenVMS
1827620 Members
3244 Online
109966 Solutions
New Discussion

Re: file access violation

 
SOLVED
Go to solution
nipun_2
Regular Advisor

file access violation

Hi I recently moved a bunch of folders from user1 to user2 via rename command

e.g
$ rename disk2:[user1]xx.dir disk2:[user2]
Now I wanted to give the xx.dir full access rights by user2 so I did

$ set file/owner=user2 disk2:[user2...]

But I get an error saying disk2 not found??

I can see the data in disk2:[user2]xx.dir

Can anyone please tell me how I can give access to XX.dir folder and it's subdirectories.

Thanks in advance.
Nipun
3 REPLIES 3
Uwe Zessin
Honored Contributor
Solution

Re: file access violation

It would be helpful if you posted the exact error message, but the command is incomplete anyway - try this:

$ set file /owner=user2 disk2:[000000]user2.dir;1, [user2...]*.*;*
.
Ian Miller.
Honored Contributor

Re: file access violation

if [USER2] directory is owned correctly then
$ SET SECURITY/DEF DISK2:[USER2...]
should do it
____________________
Purely Personal Opinion
nipun_2
Regular Advisor

Re: file access violation

Hi Uwe and Ian,
Thanks for the replies. Uwe's suggestion worked perfectly. I also looked at the error message more thoroughly and got my mistake.


mainly
$ set file /owner=user2 disk2:[user2...]*.*;* is what I needed to give.

I also saw Ian's suggestions about set security however I didn't try it as the above worked out. From what I read it seems "set file /owner" is superseeded by "set security". So I will keep that in mind as well.

Thanks once again for your prompt replies.

Nipun