🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #188900

Re: Default filemode in GNU Emacs, how?

#188900
From: Carl Witty
Date: Tue, 11 Jun 1991 17:53
16 lines
1388 bytes
In <2141.9106110915@seq.hull.ac.uk> sm2@sequent.cc.hull.ac.uk (Simon Marshall) writes:
<	Klaus Harbo (harbo@rimfaxe.diku.dk) writes:
<| When I create a file, its filemode is automatically set to 644. However, I
<| would like it to default to 600 instead, but how?

<	Emacs creates a file via the usual Unix system calls, which use
<     the value of "umask" for the file's permission bits.  To make it 600,
<     put "umask 600" in your ~/.cshrc or equivalent.  To find out what it
<     is, just type "umask".

No, the umask is the set of bits which are excluded from default file
permissions; to make the default (for non-executables) 600, you need
"umask 077".

Carl Witty
cwitty@cs.stanford.edu
Technical Details
Message-ID: <cwitty.676662832@elaine11.Stanford.EDU>
Path: arc1-ca.pugleaf.net!gmdzi!unido!unidui!math.fu-berlin.de!ira.uka.de!sol.ctr.columbia.edu!spool.mu.edu!uunet!stanford.edu!leland.Stanford.EDU!elaine11.Stanford.EDU!cwitty
References: <2141.9106110915@seq.hull.ac.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103b8b,b8c1cc5a2de7d3ed
X-Google-Attributes: gid103b8b,public
X-Google-ArrivalTime: 1991-06-12 08:59:51 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!unidui!math.fu-berlin.de!ira.uka.de!sol.ctr.columbia.edu!spool.mu.edu!uunet!stanford.edu!leland.Stanford.EDU!elaine11.Stanford.EDU!cwitty
From: cwitty@cs.Stanford.EDU (Carl Witty)
Newsgroups: gnu.emacs.help
Subject: Re: Default filemode in GNU Emacs, how?
Message-ID: <cwitty.676662832@elaine11.Stanford.EDU>
Date: 11 Jun 91 17:53:52 GMT
References: <2141.9106110915@seq.hull.ac.uk>
Sender: news@leland.Stanford.EDU (Mr News)
Organization: AIR, Stanford University
Lines: 16