| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:date:from:to:subject:message-id:reply-to | |
| :references:mime-version:content-type:in-reply-to; q=dns; s= | |
| default; b=pHkJFz/3Be0wd9TJvmQgZ81H/MfeRJLx2nelADsfTYscK1jcKNdwK | |
| AS6Ko+FBP4nfAKp5pt8RImzxcfqRbX442YilMX9GWRA3DywBpxRXV+5cjw7LZkbL | |
| 4G8QbGgZ4wjnPdmVYZVO7kUMKRU8x1rcbU4N2MLH7eTDRXQCAqiVmc= | |
| DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:date:from:to:subject:message-id:reply-to | |
| :references:mime-version:content-type:in-reply-to; s=default; | |
| bh=G8hfiZU1qx7a4SaaYPphWOGFVYY=; b=GUICjPCEB3zPilxVM/VXW7G2zrbu | |
| VOhQtRdjFDl8GIIctTR+fRx4MWPtsl3JFXfXACA2EOaEed3+8ItIEO+/ocaAkYKd | |
| 29jP6yJELgFW1KVbN1OA/QNvtkjK1TPhHJmsAfX/fDitw2nL9gpXy37UIhU4N3X8 | |
| EdpAou9kNmkhrGE= | |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Authentication-Results: | sourceware.org; auth=none |
| X-Virus-Found: | No |
| X-Spam-SWARE-Status: | No, score=-5.9 required=5.0 tests=AWL,BAYES_00,T_FILL_THIS_FORM_SHORT autolearn=ham version=3.3.2 |
| X-HELO: | calimero.vinschen.de |
| Date: | Mon, 12 Jan 2015 11:39:45 +0100 |
| From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: email.sh exit code 1 postinstall script with no-admin (was: Bug in strftime %z) (was: Possible defect in email.exe re: sent timestamp) |
| Message-ID: | <20150112103945.GB15213@calimero.vinschen.de> |
| Reply-To: | cygwin AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| References: | <20150108152638 DOT GQ4190 AT calimero DOT vinschen DOT de> <1519656584 DOT 65633 DOT 1420838679457 DOT JavaMail DOT yahoo AT jws11119 DOT mail DOT ir2 DOT yahoo DOT com> |
| MIME-Version: | 1.0 |
| In-Reply-To: | <1519656584.65633.1420838679457.JavaMail.yahoo@jws11119.mail.ir2.yahoo.com> |
| User-Agent: | Mutt/1.5.23 (2014-03-12) |
--98e8jtXdkpgskNou
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Jan 9 21:24, Bob Doskuno wrote:
> I didn't try the snapshot, but I did try email.
>=20
> Now, running setup (with no-admin) gives a postinstall script error. Send=
ing a couple test emails worked, but there seems to be an invalid assumptio=
n, that the user will have admin, in the postinstall script, giving:
>=20
>=20
> Package: _/Unknown package
> email.sh exit code 1
>=20
>=20
> /var/log/setup.log.full excerpt:
>=20
> 2015/01/09 11:50:41 running: C:\cygwin64\bin\bash.exe --norc --noprofile =
"/etc/postinstall/email.sh"
> chown: changing ownership of '/etc/defaults/etc/email/email.address.templ=
ate': Permission denied
> chown: changing ownership of '/etc/defaults/etc/email/email.conf': Permis=
sion denied
> chown: changing ownership of '/etc/defaults/etc/email/email.help': Permis=
sion denied
> chown: changing ownership of '/etc/defaults/etc/email/email.sig': Permiss=
ion denied
> chown: changing ownership of '/etc/defaults/etc/email/mime.types': Permis=
sion denied
> 2015/01/09 11:50:44 abnormal exit: exit code=3D1
>=20
>=20
> Excerpt from /etc/postinstall/email.sh where error happens:
>=20
>=20
> SYSTEMUID=3D$(sed -ne '/^[^:]*:[^:]*:[0-9]*:[0-9]*:[^:]*,S-1-5-18:.*:/{s/=
[^:]*:[^:]*:\([0-9]*\):.*$/\1/p;q}' /etc/passwd)
> ADMINSGID=3D$(sed -ne '/^[^:]*:S-1-5-32-544:.*:/{s/[^:]*:[^:]*:\([0-9]*\)=
:.*$/\1/p;q}' /etc/group)
> setfacl -m u::rw-,g::rw-,o:r-- /etc/defaults/etc/email/*
> if [ -n "${SYSTEMUID}" -a -n "${ADMINSGID}" ]
> then
> chown "${SYSTEMUID}:${ADMINSGID}" /etc/defaults/etc/email/*
> else
> ...
Thanks for the report. This definitely needs fixing.
Corinna
--=20
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
--98e8jtXdkpgskNou
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIbBAEBAgAGBQJUs6RxAAoJEPU2Bp2uRE+gBBAP+Kra4dKIBdmelnn5PIHUqz5Z
twUlEymG8uEnyR2hwC609VhP0tOyGwwXsWybbhKtq8Mt8WbrA9EuxisuwilgU/os
ucDnvWguE9YdBFtxyioAo7mpmgNZ2rCEV5lH6mxuDlvGo8ae1vXuP/PC+/iYhDwj
g8jVmLRCB/useTun6iI3pAh/E3eJifO6+JSPmSPzIZEQOynZHjjhv4BwdXkEUQL3
G0FZrM8MseaXyCzlYvPnCtuilQ7oWrNtl5lSb7Z6j0fBmmxtpgE9nQEwoF9Te3Ve
hozbBfo1Xexcu+EWW5rtTCAffb1N15RORAvtBmAVezzGxRVLbOvN/hSPNcadAyKg
Qn/n6+g+I0CKOLhzqknjQMCb7KGhJ6Rl+rW1MrJHYblDXdwTbQmU3IT3eTtO0G2x
2BH275aU59JWFHH/n4NdZkOzx/PQkqW2TGar0C2YsVD9X5Y/bPTMOPnR3PRViqPR
Negx1LifGxxkRtPm3FsZ187sPTvZvqEMzwe3RoZ8muuSghiSskyWYhu8zzb10qXP
B5sohina3fkX87THSaIHnBFtXNsjaRIVU8glxxdHI+Sb7eD/PxMZvXq40C6ValFG
ZyQ4q08hbQvkqDGFExx95rT0aQFMwO7180rhasbd8GrIr1Rv5+Lf2ByQTLaT26hH
U6gdLLAk8fSplcxY1cQ=
=kobr
-----END PGP SIGNATURE-----
--98e8jtXdkpgskNou--
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |