<<< Date Index >>>     <<< Thread Index >>>

Re: saving attachments with 0644 permissions



On Thu, Mar 02, 2006 at 11:39:12AM -0500, Derek Martin wrote:
> On Thu, Mar 02, 2006 at 12:49:14PM +0100, Keld Jørn Simonsen wrote:
> > Hi!
> > 
> > When I save attachments of mail, or mails in general, they
> > get permission 0600 - I would like that to be 0644.
> > How can I do that?
> 
> You can't; it's a security feature.  Use the chmod command to change
> them if you really want everyone to be able to read them.  Setting to
> 0644 by default is like letting everyone read your mail.  Maybe you
> really do want to do that, but it's a bad idea for a default setting.
> 
> On Thu, Mar 02, 2006 at 08:23:39AM -0800, Jason Helfman wrote:
> > Couldn't you just change your shell login environmnet to hardcode a
> > umask?
> 
> No... the umask call in mutt happens after the shell sets its umask,
> overriding it.

I was thinking of having an environment variable MUTTUMASK, or a .muttrc 
variable
called eg umask, to override the default. Would that be an acceptable
general solution?

best regards
keld