public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Michael Tremer <michael.tremer@ipfire.org>
To: development@lists.ipfire.org
Subject: Re: sendEmail-1.56-1
Date: Wed, 06 Feb 2019 11:13:14 +0000	[thread overview]
Message-ID: <034C7493-33F3-4F53-BA30-02B1EEAA2462@ipfire.org> (raw)
In-Reply-To: <q34ojn$jm5$1@tuscan3.grantura.co.uk>

[-- Attachment #1: Type: text/plain, Size: 1337 bytes --]

Hi,

Thanks for sending the patch.

I agree that 503.tape is incorrect, but would say that sendEmail should be owned by root.root and have 755 as permissions.

Why does the script need to become root when it is being executed by nobody? I think that is a security risk.

-Michael

> On 2 Feb 2019, at 18:47, Bob Brewer <ipfire-devel(a)grantura.co.uk> wrote:
> 
> I installed the sendEmail addon with pakfire which installs 
> /usr/local/bin/sendEmail OK but I think it has incorrect owners and 
> permissions.
> 
> As installed it has:
> -rwxr-xr-x 1   503 tape   80215 Dec  6  2012 sendEmail
> 
> which I think should be:
> -rwsr-x--- 1 root  nobody 80215 Dec  6  2012 sendEmail
> 
> This patch to lfs/sendEmail should correct it
> 
> diff -u lfs/sendEmail lfs/sendEmail.1 
> --- lfs/sendEmail       2019-01-20 10:07:56.128391962 +0000
> +++ lfs/sendEmail.1     2019-02-02 18:08:58.823295469 +0000
> @@ -63,7 +63,8 @@
>        @$(PREBUILD)
>        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
>        cd $(DIR_APP) && cp -pvf sendEmail /usr/local/bin
> -       chmod 755 /usr/local/bin/sendEmail
> +       chown root.nobody /usr/local/bin/sendEmail
> +       chmod 04750 /usr/local/bin/sendEmail
>        @rm -rf $(DIR_APP)
>        @$(POSTBUILD)
> 
> HTH
> 
> Rob
> 


  reply	other threads:[~2019-02-06 11:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-02 18:47 sendEmail-1.56-1 Bob Brewer
2019-02-06 11:13 ` Michael Tremer [this message]
2019-02-06 21:35   ` sendEmail-1.56-1 Rob Brewer
2019-02-08 12:29     ` sendEmail-1.56-1 Michael Tremer
2019-02-10 17:49       ` sendEmail-1.56-1 Rob Brewer
2019-02-10 22:00         ` sendEmail-1.56-1 Rob Brewer
2019-02-13 17:25           ` sendEmail-1.56-1 Michael Tremer
2019-02-13 22:49             ` [PATCH] sendEmail Rob Brewer
2019-02-14 11:06               ` Michael Tremer

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=034C7493-33F3-4F53-BA30-02B1EEAA2462@ipfire.org \
    --to=michael.tremer@ipfire.org \
    --cc=development@lists.ipfire.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