vi stealing SYSTEM-owned permissions and ownership

2013-11-02 Thread D. Boland
Hi group, I'm a Linux teacher at a school for vocational education in the Netherlands. I use Cyqwin to help my students overcome their fear of the command line by showing them their Windows systems through the eyes of Linux. I had them install Apache and then configure it in Cygwin using vi. A

Re: vi stealing SYSTEM-owned permissions and ownership

2013-11-02 Thread D. Boland
"Brian S. Wilson" wrote: > > > I'm a Linux teacher at a school for vocational education in the > Netherlands. > > I use Cyqwin to help my students overcome their fear of the command line > by showing them their Windows systems through the eyes of Linux. > ... > > After a chgrp and chmod on the ent

Re: vi stealing SYSTEM-owned permissions and ownership

2013-11-03 Thread D. Boland
Andrey Repin wrote: > > Greetings, D. Boland! > > Your main problem is that you are trying to break into native Windows > ACL system with Cygwin tools. And not only that, you also trying to > wrest native ACLs into POSIX permissions, and expect native applications to >

Re: Some first questions.

2013-11-03 Thread D. Boland
Gert Koefoed Andersen wrote: > > Hello list. > > I have some first questions for cygwin works on windows 7 by compile sources > I normally just fine compile on my linux systems but not like to compile > well and by cygwin. > The sources I trying to compile is been packed on linux with tar archiwi

Re: SV: Some first questions.

2013-11-04 Thread D. Boland
Gert Koefoed Andersen wrote: > > I have compiled lot of sources on linux systems and got now errors here but > on cygwin on my windows 7 32bit things not like to work for me. > What I ever I have done for it, like: > Cd /cygdrive/k/huskysrc/smapi > Or copied it to /src/src/huskysrc > Cd /usr/src/h

Re: vi stealing SYSTEM-owned permissions and ownership

2013-11-04 Thread D. Boland
iginal version of "vi" that came with the standard distro of Cygwin. When I noticed the problem, I installed "vim" and went on, testing with that. I really, really would like to persue this issue some more in the direction Larry points to. Cincerely, Daniel "D. Boland&qu

Re: vi stealing SYSTEM-owned permissions and ownership

2013-11-08 Thread D. Boland
Achim Gratz wrote: > > D. Boland writes: > > I think I have new information on the stealing of ownership. Below test has > > been > > performed on the Apache folder, placed in the Windows Program Files folder > > by the > > Apache msi installer: > > &

Re: SV: Some first questions.

2013-11-08 Thread D. Boland
Mr. Anderson, Sorry, I couldn't resist. I saw the Matrix movie recently ;-) Thanks for the extended output you sent me privately, but maybe it's better to keep this public, because others want to know of your progress, too. I wanted to try to compile the Husky software myself. So I went to the

Re: SV: SV: Some first questions.

2013-11-09 Thread D. Boland
Dear Gert, I'm sorry, but this is too much for me. I don't have that much time. I suspect that the build script for Cygwin contains a bug, because of the "undefined reference to `WinMain@16'" error. Impossible to solve without changing it. What about contacting the author of the build scripts?

Re: vi stealing SYSTEM-owned permissions and ownership

2013-11-27 Thread D. Boland
Again, thanks for the input. I's now about three weeks later. I made all of my students re-install Apache in: /cygdrive/c/Apache2 and made them symlink this location on: /usr/local/apache For me, Achim Gratz's comment on the "Program Files" folder made perfect sense: >If you are operating as a

Cygrunsrv crashes when setting STDERR to /dev/null

2014-03-02 Thread D. Boland
Hi group, I have Apache running via cygrunsrv on a WinXP system. It works fine. Apache can even do a setuid on startup, so a 'ps -ef' looks like this: UID PIDPPID TTYSTIME COMMAND httpd16041308 ?14:26:47 /usr/local/apache/bin/httpd SYSTEM13081400

Minires truncates host names

2014-07-05 Thread D. Boland
Hi Group, I finally got Sendmail ported to Cygwin. But when looking up valid hostnames from sender addresses, Minires fails. Here's the output, testing one of Sendmails' rules. $ echo "check_mail dan...@cygwin.com" | /usr/sbin/sendmail -d8.20 -bt readcf: option TrustedUser may cause problems on

Re: Minires truncates host names

2014-07-06 Thread D. Boland
"Pierre A. Humblet" wrote: > To me it looks like the string was already truncated when it was passed to > the function. > > You can test e.g. by using exim -d+resolver -bt dan...@cygwin.com > > It's wonderful that you got sendmail to work. > > Pierre > Thanks for the swift reply! I looked

Re: rebaseall breaks some packages(?)

2014-07-06 Thread D. Boland
Hi Katsumi, Katsumi Yamaoka wrote: > However, those reinstallations cause some other programs to not > work. For those other programs, rebaseall does help. Though it > breaks bzr, emacs-w3m, etc. again. It's annoying. > > Thanks in advance for your help. > Regards, I agree. It's annoying. Se

Re: Minires truncates host names

2014-07-06 Thread D. Boland
Hi Pierre, "Pierre A. Humblet" wrote: > > You are right, there is a bug in res_querydomain, > Line 737 *(ptr++ - 1) = '.'; should be > *ptr++ = '.'; > > I would also add a debug printf at the top of the function: > DPRINTF(statp->options & RES_DEBUG, "querydomain \"%s\" \"%s\" type %d\n", > N

Re: Minires truncates host names

2014-07-10 Thread D. Boland
Hi Corinna, Corinna Vinschen wrote: > > I've checked that in. I also changed the debug output to print > "Resolv" instead of "Minires" to make sure that people don't think > they are stil using the external Minres lib. > How can I test the new code? I've tried updating with the Cygwin install

Re: Minires truncates host names

2014-07-17 Thread D. Boland
Hi Pierre, "Pierre A. Humblet" wrote: > > You are right, there is a bug in res_querydomain, > Line 737 *(ptr++ - 1) = '.'; should be > *ptr++ = '.'; > > I would also add a debug printf at the top of the function: > DPRINTF(statp->options & RES_DEBUG, "querydomain \"%s\" \"%s\" type %d\n", > N

Re: Minires truncates host names

2014-07-17 Thread D. Boland
Hi Corinna, Corinna Vinschen wrote: > > On Jul 17 20:14, D. Boland wrote: > > Hi Pierre, > > > > "Pierre A. Humblet" wrote: > > > > > > You are right, there is a bug in res_querydomain, > > > Line 737 *(ptr++ - 1) = '.'; sh

Re: Minires truncates host names

2014-07-20 Thread D. Boland
Hi Corinna, Corinna Vinschen wrote: > > Hi Daniel, > > On Jul 17 22:29, D. Boland wrote: > > Hi Corinna, > > > > Corinna Vinschen wrote: > > > > > > On Jul 17 20:14, D. Boland wrote: > > > > Just letting you know how it went with the

Re: [ANNOUNCEMENT] Updated: Cygwin 1.7.31-1

2014-07-21 Thread D. Boland
Hi Corinna, Corinna Vinschen wrote: > > [Now with correct subject, sorry] > > Hi Cygwin friends and users, > > I just released Cygwin 1.7.31-1. This is mostely a bugfix release. > $ uname -a CYGWIN_NT-5.1 dimension 1.7.31s(0.272/5/3) 20140716 11:15:29 i686 Cygwin With the snapshot in place,

Re: [ANNOUNCEMENT] Updated: Cygwin 1.7.31-1

2014-07-21 Thread D. Boland
Hi Warren, Warren Young wrote: > > On 7/21/2014 06:19, D. Boland wrote: > > > > With the snapshot in place, the ftp client hangs indefinitely after > > entering the > > password. Switching back to my old Cygwin DLL, it works again. > > Which FTP client i

Re: Minires truncates host names

2014-07-21 Thread D. Boland
Hi Corinna, Corinna Vinschen wrote: > > > It works. As you can see, this is done on a WinXP machine. I could also > > test on a > > Win7 machine. I don't have Win8 or Win8.1. > > That's fine. Thanks a lot for confirming again that Pierre's patch > works and the latest Cygwin DLL is doing the r

The eternal uid issue

2014-07-23 Thread D. Boland
Hi Cygwin lovers, After some weeks of serious compiling, researching, understanding, fixing, testing and compiling again, I managed to get the Sendmail source code compiled and working. But I had to compromise in some critical areas. One of them is the uid issue. * sendmail, procmail, mail.loc

Re: The eternal uid issue

2014-07-23 Thread D. Boland
Linda Walsh wrote: > > D. Boland wrote: > > But I had to compromise in some critical areas. One of them is the uid > > issue. > > > > * sendmail, procmail, mail.local assume that the id of the privileged user > > is '0'. > > > >

Re: The eternal uid issue

2014-07-23 Thread D. Boland
Hi Corinna, Corinna Vinschen wrote: > > > Isn't it about time to make this our First Directive also? > > Not in relation to the uid. In contrast to Linux we don't have the one > single root user. We have potentially endless numbers of them, and one > of them, not necessarily SYSTEM, is used to

Re: The eternal uid issue

2014-07-23 Thread D. Boland
Hi Corinna, Thanks for the reply. Corinna Vinschen wrote: > > On Jul 23 13:35, D. Boland wrote: > > Corinna Vinschen wrote: > > > Not in relation to the uid. In contrast to Linux we don't have the one > > > single root user. We have potentially endless num

Re: The eternal uid issue

2014-07-24 Thread D. Boland
Hi Christopher, Thanks for your reply. Christopher Faylor wrote: > > On Wed, Jul 23, 2014 at 08:08:07PM +0400, Andrey Repin wrote: > >Greetings, D. Boland! > >> Cygwin security will be done for in the long run. Why not make the leap and > >> show MS admins/de

Re: The eternal uid issue

2014-07-24 Thread D. Boland
Hi Corinna, Corinna Vinschen wrote: > > But this only introduces a new function which she has to put into multiple > > locations > > of the original code. So again, why not just modify the 'getuid' function in > > cygwin1.dll to return '0' if the current user is actually SYSTEM or one of > > the

Re: The eternal uid issue

2014-07-25 Thread D. Boland
Corinna Vinschen wrote: > Oh, hang on. Is this using the default setuid method 1 and is your > home dir on a remote share, by any chance? No. All file locations are local (C:\). I'll send you the output later on. -- Problem reports: http://cygwin.com/problems.html FAQ: h

Re: The deprecated uid issue: use caps

2014-07-26 Thread D. Boland
Hi Linda, Linda Walsh wrote: > > D. Boland wrote: > > Linda Walsh wrote: > >> D. Boland wrote: > >>> But I had to compromise in some critical areas. One of them is the uid > >>> issue. > >>> > >>> * sendmail, procma

Re: The eternal uid issue

2014-07-28 Thread D. Boland
Hi Corinna, Corinna Vinschen wrote: > > Still, are you using setuid method 1 or another method? Is your home > dir the default /home/$USER as created from inside the Cygwin > environment? Any chance your home dir has an unusual ACL? > > Did you set up sshd as service? If not, you might consid

Re: The eternal uid issue

2014-07-29 Thread D. Boland
Corinna Vinschen wrote: > The permissions of the home folder are set to 01777 by default (S_ISVTX > bit!). Since we can't rely on central administration for Cygwin, this > allows a user to create her own homedir automatically at first start of > a Cygwin shell. > > You might consider to disable t

Re: The eternal uid issue

2014-07-31 Thread D. Boland
Corinna Vinschen wrote: > > On Jul 29 15:36, D. Boland wrote: > > Corinna Vinschen wrote: > > > The permissions of the home folder are set to 01777 by default (S_ISVTX > > > bit!). Since we can't rely on central administration for Cygwin, this > >

Re: Simplify AD integration?

2014-07-31 Thread D. Boland
Corinna Vinschen wrote: > So I'd like to ask a few questions to which I'd like to have some brief > answers, kind of like a poll, to get a better idea how we should > proceed: > > 1. Shall we remove the leading '+' from the builtin account names >or shall we keep it? > > 2. Shall we stick to

Re: Simplify AD integration?

2014-07-31 Thread D. Boland
Eric Blake wrote: > > On 07/31/2014 07:26 AM, D. Boland wrote: > > Corinna Vinschen wrote: > >> So I'd like to ask a few questions to which I'd like to have some brief > >> answers, kind of like a poll, to get a better idea how we should > >>

Re: Simplify AD integration?

2014-08-01 Thread D. Boland
Andrey Repin wrote: > > Greetings, D. Boland! > > > I am not only a man of legacy, but also a very opinionated one. So give me > > some > > slack when I say: the whole thing is insane. This would mean that from now > > on, I > > have to use constructs

syslog function: Bad file descriptor

2014-08-05 Thread D. Boland
Hi group, I'm still working on getting Sendmail working for Cygwin. I'm almost done, the devil is in the details... I'm getting the 'Bad file descriptor' system error after building the mail aliases database. The building itself is done successful, but logging the event to the system log fails

Re: syslog function: Bad file descriptor

2014-08-05 Thread D. Boland
"Larry Hall (Cygwin)" wrote: > > On 08/05/2014 12:28 PM, D. Boland wrote: > > Hi group, > > > > I'm still working on getting Sendmail working for Cygwin. I'm almost done, > > the devil > > is in the details... > > > > I'

Re: syslog function: Bad file descriptor

2014-08-05 Thread D. Boland
Corinna Vinschen wrote: > > Can you produce another strace for the overwriting case (non-R/O aliases) > for comparison? Also, can you do the same strace with no syslogd running? > > It might be necessary to create a few test versions of Cygwin with more > debug output, but let's please see these

Re: syslog function: Bad file descriptor

2014-08-06 Thread D. Boland
Hi Corinna, Corinna Vinschen wrote: > > On Aug 5 22:35, D. Boland wrote: > > Corinna Vinschen wrote: > > > > > > Can you produce another strace for the overwriting case (non-R/O aliases) > > > for comparison? Also, can you do the same strace with no s

Impending ITP of Sendmail

2014-08-09 Thread D. Boland
Hi group, I have the Sendmail port ready. I will anounce my intent to package it soon. There is one thing, though. Sendmail relies heavily on the procmail program. The problem is that the procmail package as it is now, is not "multiple root" aware. It also is not able to do suid at the moment.

Re: Impending ITP of Sendmail

2014-08-11 Thread D. Boland
Jason Tishler wrote: > > Daniel, > > On Mon, Aug 11, 2014 at 12:46:54PM +0200, Corinna Vinschen wrote: > > On Aug 9 22:41, D. Boland wrote: > > > [snip] > > > To accomplished this, procmail would have to be modified slightly. > > > From the Cygwin w

Posting ITA/ITP

2014-08-14 Thread D. Boland
Hi group, I'm trying to post to gmane.os.cygwin.applications, but I get an NNTP error: 'gmane.os.cygwin.applications is unidirectional' Should I post to another newsgroup? Daniel -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentat

cygport: keepdir directive doesn't work

2014-08-19 Thread D. Boland
Hi group, When creating a package, I need some empty directories in the release, but cygport install removes them. I tried both 'keepdir' and 'keepdirs', but to no avail. I'm using version 0.16.0-1. Cheers, Daniel -- Problem reports: http://cygwin.com/problems.html FAQ:

Re: HEADSUP: OpenSSH 6.7 drops tcpwrapper support

2014-08-19 Thread D. Boland
Hi Corinna, Corinna Vinschen wrote: > > Hi folks, > > Just a HEADSUP to all of you actively using the tcp_wrappers/libwrap > functionality in sshd: > > Starting with the next OpenSSH version 6.7, which will be released soon, > upstream removed support for tcp_wrappers/libwrap from the sources.

Re: cygport: keepdir directive doesn't work

2014-08-19 Thread D. Boland
Hi Achim, Achim Gratz wrote: > > D. Boland writes: > > When creating a package, I need some empty directories in the release, but > > cygport > > install removes them. > > > > I tried both 'keepdir' and 'keepdirs', but to no avail. I

Re: command line smtp client / command line email?

2014-09-28 Thread D. Boland
Hi Marilo, Marilo wrote: > > what are my options for a command line smtp client in cygwin? > > I'd want to specify smtp server and from address. I'd like TLS/SSL to be > supported by the command > > sendmail , doesn't look like it exists on cygwin and I know on *nix it shuts > down any postfi

[ANNOUNCEMENT] Updated Procmail 3.22-15

2014-11-15 Thread D. Boland
I updated the Procmail 3.22-14 package. The difference with the previous version: * Split the postinstall.sh script into two parts. The second part is now contained in the /usr/bin/procmail-config script. * The new /usr/bin/procmail-config script contains installation steps for automatically cr

Re: Procmail stackdumps

2015-09-10 Thread D. Boland
gjnospam2014-cygwi...@yahoo.com schreef op 20-8-2015 om 11:23: Hi, I have a problem with a procmail recipe which previously worked but now doesn't, and causes procmail to generate a stackdump. :0 # * ^Subject:.* something or other { :0 BW * ^KeyWord { :0 b NUM_FOUND=|${PMD_

[ANNOUNCEMENT] Updated: libfakesu 1.2.0

2015-10-31 Thread D. Boland
Version 1.2.0-0 of "libfakesu" has been uploaded. This library simulates the Unix root user. It is meant to make porting Unix programs to Cygwin easier. Many Unix daemon programs, such as Apache, Sendmail and Procmail, start up as root but change to an unprivileged user ID. By including this libr

[ANNOUNCEMENT] Updated: sendmail 8.14.9-2

2015-12-29 Thread D. Boland
Version 8.14.9-2 of "sendmail" has been uploaded. General purpose internetwork email routing facility that supports many kinds of mail-transfer and delivery methods, including SMTP, SMTPS (STARTTLS), SMTPA (AUTH) used for email transport over the internet. -- v. 8.14.9-2 * sendmail-config: fi