Xref: utzoo comp.bugs.4bsd:1071 news.sysadmin:1198 Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!agate!bionet!ig!arizona!wendt From: wendt@arizona.edu (Alan Lee Wendt) Newsgroups: comp.bugs.4bsd,news.sysadmin Subject: sort creates readable files in /usr/tmp Message-ID: <7739@megaron.arizona.edu> Date: 8 Nov 88 09:38:46 GMT Organization: U of Arizona CS Dept, Tucson Lines: 7 Apropos of security, Berkeley sort creates readable temp files in /usr/tmp, due to non-intuitive behavior in fopen, which when it creates new files always does it with 0666 permissions. The fix is to do the creat manually in the newfile() routine before calling fopen. If you have a binary-only system, change your umask before sorting. Alan W.