Re: HOW to set the UMASK?
- To: mutt-users@xxxxxxxx
- Subject: Re: HOW to set the UMASK?
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Sun, 18 May 2008 13:46:28 -0500
- Comment: DomainKeys? See http://domainkeys.sourceforge.net/
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=date :from:to:subject:message-id:references:mime-version:content-type :content-transfer-encoding:in-reply-to; s=default; bh=08y2DwzHtN DfefTzD+9JH+ey+WM=; b=D5dr1QAHQsTd48VYQqNzNa+fGDUl5GdZVLbWEmWLRa a5Xz63MtWlxmUhYu0JUVSyjdeAqxOk6YltyHPinRWKtxdgzwafMJ1zTPDLl+cW8y ZgNIm6Vlua9ns1AbP+BlRs14KzPKaE1OD6eUfF8bA6pNyrQfAh1NQtIn9de8qmnT A=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=MHp1c5UQ/9UA6r7fErG7XHEdgCL2HYtn2PxeFC3ntSLTB/JegembYPX+0bAydC/XQEzhPH49TgvdkOY0icDUI66SXq2ZOrO6ahJj0+6aYyH0dZWK9/aCMF/keEpPB+FhDni2irVeWLma8m1riCquWra6h+tgnfBqPIl/YLExyiI=; h=Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:Content-Transfer-Encoding:In-Reply-To:OpenPGP:User-Agent;
- In-reply-to: <20080518173430.GC3046@xxxxxxxxxx>
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Mail-followup-to: mutt-users@xxxxxxxx
- Openpgp: id=CA8E235E; url=http://www.memoryhole.net/~kyle/kyle-pgp.asc; preference=signencrypt
- References: <20080517204230.GA8582@xxxxxxxxxx> <20080518171306.GC41560@xxxxxxxxxxxxx> <20080518173430.GC3046@xxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.17 (2008-05-15)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sunday, May 18 at 07:34 PM, quoth Keld Jørn Simonsen:
> On Sun, May 18, 2008 at 12:13:06PM -0500, Kyle Wheeler wrote:
>> On Saturday, May 17 at 10:42 PM, quoth Keld Jørn Simonsen:
>>> I have a related problem, when I create files from mutt they are
>>> 600, I would lke them to be 644. My umask is 022. Is there anything
>>> I can do to have my new files 644?
>>
>> Modify main.c. Mutt *ALWAYS* calls umask(077) before doing anything,
>> so you'd need to either remove that call from the main.c or you'd need
>> to modify it to suit your needs.
>
> I see. Would it be possible to add some command to .muttrc to override
> this? eg a umask command? That would be easier for me and others needing
> this functionality than recompiling the sources every time mutt is used
> on a new system.
>
> Or maybe a "set no_mutt_umask=yes" to just keep the umask of the environment.
Well, unfortunately, there is currently no such setting in standard
mutt. The Debian folks have put together a patch to provide that
functionality, and you can apply that to your mutt. Here's the
relevant Debian bug report:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=426317
Here's a similar patch:
http://bereshit.synflood.at/svn/mutt-patches/trunk/patches/ak.umask.diff
If it's important to you, you should probably submit a bug at
http://bugs.mutt.org
~Kyle
- --
It is a tragic mix-up when the United States spends $500,000 for every
enemy soldier killed, and only $53 annually on the victims of poverty.
-- Reverend Martin Luther King, Jr.
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iEYEARECAAYFAkgweYQACgkQBkIOoMqOI17xGQCfQ/CiSYGlSDoli826xYetdbuP
Sj8AoNlavFqYsxi7l2pIYdAN2CqUfBOy
=Umld
-----END PGP SIGNATURE-----