Named Pipe Creation

amit.chatterjee amitc at cbnewsl.ATT.COM
Sun Jul 2 13:37:38 AEST 1989


In article <163 at cerc.wvu.wvnet.edu.edu> drs at 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 at tarpon.att.com
=======================================================================



More information about the Comp.unix.questions mailing list