Xref: utzoo comp.unix.questions:14635 comp.unix.wizards:17109 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!att!cbnewsl!amitc From: amitc@cbnewsl.ATT.COM (amit.chatterjee) Newsgroups: comp.unix.questions,comp.unix.wizards Subject: Re: Named Pipe Creation Keywords: pipe Message-ID: <976@cbnewsl.ATT.COM> Date: 2 Jul 89 03:37:38 GMT References: <163@cerc.wvu.wvnet.edu.edu> Reply-To: amitc@cbnewsl.ATT.COM (amit.chatterjee) Organization: AT&T Bell Laboratories Lines: 23 In article <163@cerc.wvu.wvnet.edu.edu> drs@cerc.wvu.wvnet.edu (Darrell Schiebel) writes: >I am attempting to create a named pipe which several different users >can read from and write to, but when I create the pipe with: > > if (mknod(destination_path,S_IFIFO | 0666, 0) == -1) >...... > >the system creates a pipe with owner r/w, group r, and world r. The >protection I was expecting is owner r/w , group r/w, wnd world r/w. > Looks like your umask is set to 022. I believe that regardless of what you specify as the permission string in your system call, umask takes effect. -Amit ======================================================================= Amit Chatterjee (201) 271-1130 AT&T CSIL {major gateway}!tarpon!amit Somerset, NJ amit@tarpon.att.com =======================================================================