Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!eastapps!hinode!geoff From: geoff@hinode.East.Sun.COM (Geoff Arnold @ Sun BOS - R.H. coast near the top) Newsgroups: comp.protocols.nfs Subject: Re: PCNFS, permissions, and UMASK Keywords: PC-NFS, UMASK, permissions Message-ID: <5321@eastapps.East.Sun.COM> Date: 4 Apr 91 18:43:37 GMT References: <1991Apr3.195733.15063@ottsun1.uucp> Sender: news@East.Sun.COM Reply-To: geoff@east.sun.com (Geoff Arnold @ Sun BOS - R.H. coast near the top) Distribution: na Organization: Sun Microsystems PC-NFS Engineering Lines: 37 Quoth pickles@mpr.ca (Clive Pickles) (in <1991Apr3.195733.15063@ottsun1.uucp>): #I have created a file using PCNFS with permissions 770. I would like people #in my group to be able to update this file. However, when they do the #update, the permissions of the updated file are set to whatever the UMASK #is of the updater. Most people have a UMASK of 027, so whenever they update #one of my files, the permissions are set to 750. Because the owner of the #file is also changed, I now cannot edit that file. # #This is different than Unix, which keeps the original file permissions and #owner until they are explicitly changed with chmod and chown. Only because the Unix applications "know" about such things as ownership. If a Unix editor used the create-temporary-copy, edit copy, rename-original-to-bak, rename-temp-to-original model the file would still wind up being owned by the person who edited it (unless the editor was SUID-root and knew how to tweak this stuff). # #I know WHY this happens (DOS copies the old file and renames the new one), #but I think that PC-NFS should be able to account for this. We are running #PCNFS 3.0.1. My questions is: anybody know if this is changed for release #3.5? Thanks to anyone who gives me an answer. No it isn't changed in 3.5. And how could PC-NFS (or LM/X, or PNW) possibly "account for this". We just see a sequence of CreatFile, Rename, Unlink, Read, Write..... calls. How are we supposed to grok that this particular file is meant to be an edited version of this other file and so should get a copy of the original owner & permissions. Come to think of it, do you really want me to be able to create a file in your name?! Solution: have everyone run with the correct UMASK. Geoff -- Geoff Arnold, PC-NFS architect, Sun Microsystems. (geoff@East.Sun.COM) -- ------------------------------------------------------------------------------ -- Sun Microsystems PC Distributed Systems ... -- -- ... soon to be a part of SunTech (stay tuned for details) --