From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Pascal Bourguignon Newsgroups: gmane.emacs.help Subject: Re: file permissions Date: Sun, 30 Apr 2006 05:58:56 +0200 Organization: Informatimago Message-ID: <87fyjv67en.fsf@thalassa.informatimago.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1146372040 19442 80.91.229.2 (30 Apr 2006 04:40:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 30 Apr 2006 04:40:40 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 30 06:40:35 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fa3jR-0007TG-BY for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Apr 2006 06:40:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fa3jQ-00023r-Lf for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Apr 2006 00:40:28 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-X-Trace: individual.net ml7IXU6Y2YLLfhjug9ixUQB5vM2AX5r15kgrJj487ScvHIG7f4 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en X-Disabled: X-No-Archive: no User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:a2RXZ/Zs5ghbGQq564sJPNdv3mw= Original-Xref: shelby.stanford.edu gnu.emacs.help:139102 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:34723 Archived-At: evaristegalois writes: > This is probably a simple problem but I can't find anything on it in the > manual. > > I have emacs version 21 on my ubuntu (linux) computer. Everytime I save a > file in emacs it is saved with file permissions that allow me to read, write > and execute the file, but nobody else. Then I upload the file on the net to > use it on a different computer and can't access it because I am forbidden > access because I am no longer ``myself'' on a different computer. Right now > I change the file permissions by hand using the chmod command. > > But for convenience I would like Emacs to save my files right away as files > that can be read, written to or executed by anybody. How can I accomplish > this? Either you can set your global umask (in ~/.profile or ~/.bashrc), or you can set only emacs' umask with: (let ((r 4)(w 2)(x 1)(u 64)(g 8)(o 1)) (set-default-file-modes (+ (* u (+ r w x)) (* (+ g o) (+ r x))))) in your ~/.emacs -- __Pascal Bourguignon__ http://www.informatimago.com/ Wanna go outside. Oh, no! Help! I got outside! Let me back inside!