delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/12/27/09:54:16

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 6EE7C385702E
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=basun.net
Authentication-Results: sourceware.org; spf=none smtp.mailfrom=tomas AT basun DOT net
Date: Sun, 27 Dec 2020 15:53:27 +0100
Message-ID: <87o8ifti54.wl-tomas@basun.net>
From: Tomas By <tomas AT basun DOT net>
To: cygwin AT cygwin DOT com
Subject: Re: sendmail/setuid
In-Reply-To: <d657663f-d91e-3465-5feb-2ce966d18d01@SystematicSw.ab.ca>
References: <87h7ob312r DOT wl-tomas AT basun DOT net>
<d657663f-d91e-3465-5feb-2ce966d18d01 AT SystematicSw DOT ab DOT ca>
User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue)
FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.8 EasyPG/1.0.0 Emacs/26
(x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)
MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue")
X-bounce-key: webpack.hosteurope.de;tomas AT basun DOT net;1609080810;37f27527;
X-HE-SMSGID: 1ktXQG-0005rm-1W
X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_NONE,
SPF_NONE autolearn=no autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

Hi,

Ok, thanks. I have now got to the point where it works if I start it
from a "run as administrator" command shell.

I start Sendmail by "sendmail start" in /etc/rc.d/init.d/".

What is the easiest way to automate this without interaction? Ideally
from a normal account (which is also an "administrator" if that matters).

I want to have a .bat file in the Startup folder that starts Sendmail.

/Tomas



On Thu, 24 Dec 2020 20:12:17 +0100, Brian Inglis wrote:
> 
> On 2020-12-24 04:17, Tomas By wrote:
> > I'm using the Cygwin Sendmail (8.14), and am getting this in the log
> > file of a program that is supposed to send an email.
> > 
> > | 451 4.0.0 drop_privileges: setuid(18) failed: Operation not permitted
> > | RSET
> > | 250 2.0.0 Reset state
> > 
> > Does this come from Cygwin? It would be odd if it is from the program.
> > 
> > There is no user 18. The Windows user id's (I think) are 500, 501,
> > 1000, 1002, 1003.
> 
> $ getent passwd 18
> SYSTEM:*:18:18:U-NT AUTHORITY\SYSTEM,S-1-5-18:/home/SYSTEM:/bin/bash
> 
> > What is the simplest solution?
> > 
> > I had it working before I reinstalled, but I tried many things, most
> > of which I do not want to repeat.
> Process or program may need to be run elevated with admin privileges,
> or configured to not require them if that is even possible.
> The easiest way to do that I have found is to create a Windows task to
> run elevated (with highest privileges) under user SYSTEM and run a
> shell invoking a shell script.
> The task may then start up Cygwin services to run elevated under user
> SYSTEM or however each is configured.
> 
> -- 
> Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada
> 
> This email may be disturbing to some readers as it contains
> too much technical detail. Reader discretion is advised.
> [Data in binary units and prefixes, physical quantities in SI.]
> --
> Problem reports:      https://cygwin.com/problems.html
> FAQ:                  https://cygwin.com/faq/
> Documentation:        https://cygwin.com/docs.html
> Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
> 
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019