public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Walter Dnes" <waltdnes@waltdnes.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [SOLVED] Re: [gentoo-user] msmtp vs. nullmailer
Date: Mon, 20 Jul 2015 17:50:31 -0400	[thread overview]
Message-ID: <20150720215031.GA22893@waltdnes.org> (raw)
In-Reply-To: <201507201849.10123.michaelkintzios@gmail.com>

On Mon, Jul 20, 2015 at 06:49:00PM +0100, Mick wrote

> This is all good and dandy, but letting user "nobody" read your
> mail accoutn passwd may not be the safest approach to sending email
> messages from your machine.

  I think you missed the point.  The "NOPASSWD:" option means that this
one particular user "nobody" ***DOES NOT NEED THE ROOT PASSWORD*** to
execute this one particular command which normally requires "root" level
privileges.  I repeat, it has no need for the password.  This is done
with a sudoers entry like the following example.

michael michaelsmachine = (root) NOPASSWD: /usr/sbin/nullmailer

  The only problem might be convincing your program that the mail
command is...

sudo /usr/sbin/nullmailer

  You can tell it to run a script that contains that command.  Having
passwords floating around on disk in clear text is a *BAD* idea.  Some
"user friendly distros", like Ubuntu, let you run *ANY* command as root
if you prefix it with "sudo".  That can be done with the keyword "ALL"

michael michaelsmachine = (root) NOPASSWD: ALL

  I do not like it on general principle.  It gives away the store as far
as security is concerned.

-- 
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications


  reply	other threads:[~2015-07-20 21:51 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-08  9:47 [gentoo-user] msmtp vs. nullmailer Marc Joliet
2015-06-08 12:24 ` Guy-Laurent Subri
2015-06-08 13:27 ` [gentoo-user] " Grant Edwards
2015-06-12  7:24   ` Marc Joliet
2015-06-12  7:34     ` Marc Joliet
2015-06-08 22:45 ` [gentoo-user] " Walter Dnes
2015-06-09  5:27   ` Mick
2015-07-20 11:21 ` [SOLVED] " Marc Joliet
2015-07-20 14:23   ` Walter Dnes
2015-07-20 17:49     ` Mick
2015-07-20 21:50       ` Walter Dnes [this message]
2015-07-20 22:24         ` Mick
2015-07-20 22:32           ` Alan McKinnon
2015-07-20 22:29         ` Alan McKinnon
2015-07-23 20:51     ` Marc Joliet

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150720215031.GA22893@waltdnes.org \
    --to=waltdnes@waltdnes.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox