Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ut-sally!husc6!cmcl2!brl-adm!adm!rbj@icst-cmr.arpa From: rbj@icst-cmr.arpa (Root Boy Jim) Newsgroups: comp.unix.wizards Subject: umask under 4.3 BSD Message-ID: <7799@brl-adm.ARPA> Date: Wed, 10-Jun-87 15:54:48 EDT Article-I.D.: brl-adm.7799 Posted: Wed Jun 10 15:54:48 1987 Date-Received: Sat, 20-Jun-87 04:26:56 EDT Sender: news@brl-adm.ARPA Lines: 24 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. (Root Boy) Jim Cottrell National Bureau of Standards Flamer's Hotline: (301) 975-5688