Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rochester!pt.cs.cmu.edu!sei!sei.cmu.edu!pdb From: pdb@sei.cmu.edu (Patrick Barron) Newsgroups: comp.unix.wizards Subject: Re: umask under 4.3 BSD Message-ID: <1460@aw.sei.cmu.edu> Date: Fri, 29-May-87 22:08:33 EDT Article-I.D.: aw.1460 Posted: Fri May 29 22:08:33 1987 Date-Received: Sat, 6-Jun-87 15:49:15 EDT References: <7554@brl-adm.ARPA> Sender: netnews@sei.cmu.edu Reply-To: pdb@sei.cmu.edu (Pat Barron) Organization: Carnegie-Mellon University, SEI, Pgh, Pa Lines: 18 In article <7554@brl-adm.ARPA> eichelbe@nadc.arpa (H. McCloskey) writes: >I am running 4.3 BSD on a VAX 11/780. Does anyone know how I could >change the system-wide "umask" so when I person does something like >echo "stuff" > x >x will have the file permission 0600 and not 0644? I have source code >for the system. In the source for /bin/login, change the line: umask(022); to: umask(077); Then just re-install login, and you'll have your new system-wide umask. --Pat.