home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!usc!sdd.hp.com!caen!kuhub.cc.ukans.edu!parsifal.umkc.edu!cstp.umkc.edu!mckeever
- Newsgroups: comp.os.vms
- Subject: Re: Q: VMS OWNERSHIP
- Message-ID: <1992Jul28.154701.1@cstp.umkc.edu>
- From: mckeever@cstp.umkc.edu
- Date: Tue, 28 Jul 1992 21:47:01 GMT
- Sender: root@parsifal.umkc.edu (Parsifal Administration)
- References: <01GMEK6MLDG88WVZ3V@MIS.AVPMI.YORKU.CA>
- Organization: UM - Kansas City, Computer Science
- Lines: 49
-
- In article <01GMEK6MLDG88WVZ3V@MIS.AVPMI.YORKU.CA>, JMCCARTHY@MIS.AVPMI.YORKU.CA (John McCarthy) writes:
-
- > The basic problem that I want to solve is to allow someone else (e.g. the
- > departmental secretary) to update a file that I currently own. However, I don't
- > want anybody else to get to it, and I don't want her to be able to change the
- > access rights.
- >
- > Having looked at the manual, and done some experimenting, this seems to be the
- > way that it works:
- >
- > 1) If I set up an ACL, giving her R+W+E, when she actually changes the file, she
- > is now the owner. Unless I set up an ACL giving myself access to the file, I can
- > no longer update it. In addition, she now has Control access, and could modify
- > the access permissions.
-
- I've been doing VMS for a long time and haven't seen this type of behavior.
- From your message, it looks like the secretary is using an editor to update
- a file owned by you. In that case, she isn't changing the ownership of
- your file, she's writing a new one. Without having privs, the file is
- owned by the person who created it (the new version that is). Thus the
- ownership change you see.
-
- The fix is not to let her use an editor to update the file. If she is just
- adding info to the end of the file, have her edit a temporary file and then
- use APPEND to tack her changes onto the end of the file owned by you. If
- she needs to make random changes all over the file, the workaround is not
- as easy. You'll have to write some sort of program that changes the
- contents of the file without writing a new version. You could have her
- edit the file, make her changes, save a temporary file, and then run a C
- program that just empties out the old data and rewrites it with the
- information in the temporary file. Not pretty and if it's a big file not
- very efficient either. It seems to me to be the quickest fix though.
-
- > 2) If I set up a separate directory, owned by a resource ID, and do the
- > appropriate grants, we can both update the file, and ownership of it doesn't
- > flip around. However, she can still change the access list. It also seems a
- > little strange to have to set up directories and resource IDs for each file in
- > the system that more than one person needs to update.
-
- None of this should be necessary although it will work.
-
- > Any help would be appreciated. No flames please, as I said, I'm new to this
- > environment.
-
- We were all beginners once.
-
- Hope you find the above useful,
-
- --Brian
-