Xref: utzoo comp.unix.questions:28786 comp.unix.ultrix:6258 Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!cs.utexas.edu!rutgers!aramis.rutgers.edu!remus.rutgers.edu!rauscher From: rauscher@remus.rutgers.edu (Trott ++) Newsgroups: comp.unix.questions,comp.unix.ultrix Subject: Re: Pre-set file permissions Keywords: chmod, rwxrwxrwx Message-ID: Date: 18 Feb 91 14:11:45 GMT References: <509@anselm.UUCP> Followup-To: comp.unix.questions Organization: Rutgers Univ., New Brunswick, N.J. Lines: 17 >I would like to know if there is such a way to preset (say, in a .login file) >file permissions so that each time a file is saved, it's permissions will be >those of the preset ones. Thank you in advance for your reply. Try adding the 'umask' command to your .cshrc. (remember this is a mask, the negation of the mode of protection). Ie: umask 011 would result in a default protection of: 766. >-Erik -Rich -- ------------- rauscher@rutgers.edu RPO 5997 PO 5063, New Brunswick, NJ 08903 rauscher@PISCES Shakespeare learns Discrete Math: {backbone site}!rutgers!rauscher (2B | not (2B)) <=> TRUE