Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!SAMADAMS.PRINCETON.EDU!tr From: tr@SAMADAMS.PRINCETON.EDU (Tom Reingold) Newsgroups: comp.unix.wizards Subject: Re: umask for ordinary files in CSH Message-ID: <9104081850.AA14329@samadams.Princeton.EDU> Date: 8 Apr 91 18:50:33 GMT References: <1991Apr4.180206.19976@terminator.cc.umich.edu> <15715@smoke.brl.mil> Sender: daemon@ucbvax.BERKELEY.EDU Organization: deferred Lines: 30 In article <15715@smoke.brl.mil> gwyn@smoke.brl.mil (Doug Gwyn) writes: $ Well, that manual is wrong. It was a mistake for it to have said anything $ more than "sets the process's umask to nnn (see umask(2))". That is all $ the shell does with the umask value specified. If you look up umask(2) it $ should say in effect that the low 12 bits of the umask value are NANDed $ with the modes specified for O_CREATs etc. In other words, 1 bits in the $ umask indicate which mode bits are to be turned OFF from the set normally $ specified when a file is created. $ $ By the way, this was not a Wizardly question. Sometimes, a wizard is defined as someone who knows what you want to know. I am not being facetious, because if you don't know something, it may seem to need a wizard to know it. I know that "what is a wizard?" has been discussed here many times before. I see it as a moving target. Therefore "Does my question belong in the wizards group?" is also. I agree that I would prefer not to see the umask question here, but I see no practical means to prevent it. I find the very idea of a "newsgroup" to be artificial. We need something better, but I have just opened a topic more fit for news.misc... -- Tom Reingold tr@samadams.princeton.edu OR ...!princeton!samadams!tr "Warning: Do not drive with Auto-Shade in place. Remove from windshield before starting ignition."