Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!aplcen!bink From: bink@aplcen.apl.jhu.edu (9704) Newsgroups: comp.unix.questions Subject: Re: files recovery after rm? Summary: Just a flame (I apologize -- I couldn't let it die so easily) Message-ID: <3914@aplcen.apl.jhu.edu> Date: 17 Nov 89 03:45:07 GMT References: <16608@uhnix1.uh.edu> <20530@unix.cis.pitt.edu> <1989Nov9.162314.4713@virtech.uucp> <20551@unix.cis.pitt.edu> <1989Nov10.012648.8942@rpi.edu> <20559@unix.cis.pitt.edu> <15844@bloom-beacon.MIT.EDU> Reply-To: bink@aplcen.apl.jhu.edu (Greg Ubben) Organization: The Johns Hopkins University, Baltimore MD Lines: 73 This was so amusing, I posted it at work. In article <15844@bloom-beacon.MIT.EDU> Jonathan Kamens flames: > You have a lot of nerve talking pedantically to someone who > obviously is more informed than you are. > > You have shown to the net, and to comp.unix.questions in particular, > ignorance about several relatively basic subjects in the past couple > of weeks. That would not be so bad if you were *asking* questions, > but you are *answering* them, and giving wrong answers in the process. > > When people do correct you, you have taken the position that you > must know more than they do, even when you obviously do not. [...] > > In article <20559@unix.cis.pitt.edu> yahoo@unix.cis.pitt.edu (Kenneth L Moore) > writes: > >You are confusing umask with the actual mask. I set my mask to 111 000 000 > >by using a umask of 077 in my .cshrc. [well put] > > He is confusing nothing. Mask and umask are identical terms in this > situation. Do you even understand why it is *called* a mask? [...] See flame above about posting wrong answers to "relatively basic subjects". > 1. Somewhere in the process of creating the file, the open() function [...] It's *called* creat() (usually), and it's a system call. > >The first bit in the first word (pertaining to my privileges) is logically > >anded with 1 giving me read privileges. The second bit is anded with [...] > > Actually, the whole umask is masked over the requested permissions > when a file is created using a bitwise AND, not a logical AND. [...] *Actually*, there's not a whole heck of a lot of difference when you're talking about one bit (as Mr. Moore was). K&R (excuse the bitwise AND) didn't coin the word "logical". > Yes, one which you obviously have gotten wrong. [oh?] > > As has already been pointed out to you, setting your umask to 077 > will cause all files created by you to have permissions ---rw-rw- or Anyone who's ever used umask can see this is wrong. Contrary to your followup, if you could show me just *one* place where Mr. Moore was wrong and you weren't, I'd be surprised. I think you owe this man an apology. -- Greg Ubben bink@aplcen.apl.jhu.edu ...!uunet!mimsy!aplcen!bink