public inbox for mlmmj@mlmmj.org
 help / color / mirror / Atom feed
From: Franky Van Liedekerke <liedekef@telenet.be>
To: mlmmj@mlmmj.org
Subject: Re: [mlmmj] Re: Permission trouble
Date: Fri, 29 Oct 2010 21:47:53 +0000	[thread overview]
Message-ID: <20101029234753.1cb8dbad@franky> (raw)
In-Reply-To: <A6F4BBD6-0B74-48A4-B0D5-4400CF089CF0@925.dk>

On Fri, 29 Oct 2010 12:03:59 -0700
Marco S Hyman <marc@snafu.org> wrote:

> > On FreeBSD at least, and with mlmmj executed from a postfix aliases
> > file (owned by root), the mlmmj process is started as nobody:nobody
> > (default_privs). Only the primary group of user nobody is read (by
> > postfix local), thus adding user nobody to additional groups has no
> > effect (restart or not).
> > 
> > Instead I've added user www to group nobody, and made listdirs
> > recursively owned by nobody:nobody with group write permissions.
> > Now it all works.
> 
> Do you use NFS?  Nobody is magic to NFS and should never really be
> used by anyone outside of NFS.   If your mail host acts as an NFS
> server you may have given access to your mail files to every NFS
> client.
> 
> Ideally, NOTHING should be owned by nobody.  It's an ID that NFS
> users are mapped to when their client ID doesn't exist or isn't
> allowed on the server.  If something is owned by nobody you've given
> control of that file to those NFS client users.
> 
> Folks thing that nobody is somehow safe and start using nobody in
> various daemons for safety.  What they've actually done is set the
> daemons up to share ownership of files that really shouldn't be
> shared.
> 
> /\/\arc

Hmmm ... I agree with the FreeBSD message (which by the way works on
other linux flavors as well), but I beg to differ on the nobody/NFS
story: if you don't want users to have access via NFS, don't map them
to nobody but just deny the access (even better: don't use NFS, but
that's my personal opinion).
Anyway, apache uses nobody on some OS's, postfix uses nobody for stuff
as well, etc ... "nobody" is an existing account and can thus be used
as such. What people/programs decide to do with it, is a different
story.

Franky


  parent reply	other threads:[~2010-10-29 21:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-28 21:17 [mlmmj] Permission trouble Martin Koch Andersen
2010-10-28 22:58 ` [mlmmj] " Martin Koch Andersen
2010-10-28 23:19 ` [mlmmj] " Ben Schmidt
2010-10-29 11:02 ` [mlmmj] " Ben Schmidt
2010-10-29 12:39 ` Martin Koch Andersen
2010-10-29 19:03 ` Marco S Hyman
2010-10-29 21:47 ` Franky Van Liedekerke [this message]
2010-10-29 22:36 ` Marco S Hyman
2010-10-29 23:19 ` Ben Schmidt

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=20101029234753.1cb8dbad@franky \
    --to=liedekef@telenet.be \
    --cc=mlmmj@mlmmj.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