Re: windows clipboard, getclip, putclip, clip, etc

2014-10-19 Thread Lord Laraby
Hi Ping: I'm really kind of glad that some program started in a background shell cannot access my current-window-station clipboard. That would play havoc with my normal windowing programs in general. After all, I have no idea who logged into my PC with ssh. Should I allow any and all that can imper

Re: Silently configure sshd fails via system account

2014-03-20 Thread Lord Laraby
Thanks for all the responses. I appreciate the attention given to ssh-host-config since this problem. One of my problems was that I was semi-braindead when I ran it and selected yes to privsep when I meant no. It would have been simpler, I think. Really, it it had at least done chmod on the files t

Re: Silently configure sshd fails via system account

2014-03-17 Thread Lord Laraby
On Mon, Mar 17, 2014 at 7:43 PM, Andrey Repin <> wrote: > Greetings, Lord Laraby! > >> Oh and I forgot the most intriguing gotcha. After creating the sshd >> user for me (I went to service manager and discovered this) the user >> assigned to the sshd server was

Re: Silently configure sshd fails via system account

2014-03-17 Thread Lord Laraby
On Mon, Mar 17, 2014 at 7:22 PM, Henry S. Thompson wrote: > I should have said I did exactly _no_ group/permission by-hand > fiddling to get the setup I sent. All happened auto-magically as a > result of basic install. Looking at my download area, I see I > installed cygwin, cygrunsrv and openss

Re: Silently configure sshd fails via system account

2014-03-17 Thread Lord Laraby
Oh and I forgot the most intriguing gotcha. After creating the sshd user for me (I went to service manager and discovered this) the user assigned to the sshd server was actually cyg_server (not sshd)! After changing all of those things the service started. -- Problem reports: http://cygw

Re: Silently configure sshd fails via system account

2014-03-17 Thread Lord Laraby
Okay, I figured out the whole issue. The script suggested non-privleged user sshd as the service user. I allowed that and the user was created. However the issues the script messed up are: 1) The account was never activated - "net user sshd /active:yes" had to be run at the command line. 2) All of

Re: Silently configure sshd fails via system account

2014-03-17 Thread Lord Laraby
Followup. I changed everything permissions on /var/empty, group name, everything now matches your setup (except user name and RID). Still fails with the same message. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http

Re: Silently configure sshd fails via system account

2014-03-17 Thread Lord Laraby
Oh, and sshd's entry is etc/passwd: sshd:unused:1008:513:sshd privsep,U-primaryserver\sshd,S-1-5-21-3985440655-1503118989-471546470-1008:/cygdrive/k/Cygwin/var/empty:/bin/bash The service control manager says sshd is the user and the password is the one I gave it. There error in sshd.log is: /var/

Re: Silently configure sshd fails via system account

2014-03-17 Thread Lord Laraby
0 Mar 17 13:52 /var/empty master@primaryserver ~ $ cygrunsrv -S sshd cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. On Mon, Mar 17, 2014 at 5:56 PM, Henry S. Thompson wrote: > Lord Laraby writes: > >> I cannot understand

Re: Silently configure sshd fails via system account

2014-03-17 Thread Lord Laraby
I am also having serious issues with sshd-host-config. I ran it right from the command line, from the built-in administrator account. It failed to start with no message in the Event Log. But, the /var/log/sshd.log said none of the keys were properly secured and refused them all. I chmod'ed them all

Re: Testers needed: New passwd/group handling in Cygwin

2014-02-13 Thread Lord Laraby
Yes, thank you. That form of the syntax seems to work (at least on windows 8.1). Thanks again. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#un

Re: Testers needed: New passwd/group handling in Cygwin

2014-02-13 Thread Lord Laraby
Subject: Re: get rid of getpwent? (Was: cygwin-1.7.28 getpwent header declaration changes ?) This would be a nice mechanism for typical windows home systems except for the format of the cygwin tag that goes in the comment field. Home users that utilize 'net user USERNAME "/comment:yadda yadda"' co

Re: fork() + file descriptor bug in 1.7.27(0.271/5/3) 2013-12-09 11:54

2014-01-17 Thread Lord Laraby
Well, that is some interesting stuff. So, in POSIX, the child gets the same FD in the same place and it is actually a second reference to the kernels open file table. The same entry as the parent uses (via FD) to determine the offset, flags, etc. That would explain why the child calling exit() flus

Re: fork() + file descriptor bug in 1.7.27(0.271/5/3) 2013-12-09 11:54

2014-01-14 Thread Lord Laraby
Please forgive my TOFU above. This gmail client really has no manners at all. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple

Re: RPM 4.11.1-1 fails on Cygwin 1.7.27-1 and -2

2014-01-14 Thread Lord Laraby
So, does cygwin now support installing software via Redhat Package Manager? Or is this RPM just a cross install tool just used for cygwin on linux boxen? I tried to build RPM many long moons ago when cygwin was young, but other than very simple src packages, most everything failed to configure or b

Re: fork() + file descriptor bug in 1.7.27(0.271/5/3) 2013-12-09 11:54

2014-01-14 Thread Lord Laraby
My two cents say, since the child is not referencing 'fp' at all, there is no violation of the POSIX semantics in this situation. It actually does seem, however, that the fork is closing, or at least forgetting the stdio file position of, fp when it forks. A possible memory corruption during fork f

Re: semget() API fails when run from CMD.exe but works from SH.exe

2013-12-16 Thread Lord Laraby
Please do not #TOFU. That makes reading these threads very confusing. Terry -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple

Re: Question about UAC and bash/cygwin

2012-08-16 Thread Lord Laraby
Could someone please delete that first copy of this message. Somehow, it got through with a non-ubfuscated email address. I'm sorry. LL -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubs

Re: Question about UAC and bash/cygwin

2012-08-16 Thread Lord Laraby
On Thu, Aug 16, 2012 Christian Franke wrote: > Corinna Vinschen wrote: >> >> On Aug 16 07:06, Lord Laraby wrote: >-8 >> >> What is it good for to have uid 0? You want to know if you have admin >> rights, so why don't you simply check for the admin

Re: Question about UAC and bash/cygwin

2012-08-16 Thread Lord Laraby
On Thu, Aug 16, 2012 at 3:00 PM, Christian Franke wrote: > Corinna Vinschen wrote: >> >> On Aug 16 07:06, Lord Laraby wrote: >-8 >> >> What is it good for to have uid 0? You want to know if you have admin >> rights, so why don't you simply check for the

Re: Question about UAC and bash/cygwin

2012-08-16 Thread Lord Laraby
On Thu, Aug 16, 2012Corinna Vinschen > On Aug 16 08:48, Lord Laraby wrote: >> On Thu, Aug 16, 2012 Corinna Vinschen wrote: >> > On Aug 16 07:06, Lord Laraby wrote: >> >> See, here where I said I want to know if the user is in fact >> "elevated"? I

Re: Question about UAC and bash/cygwin

2012-08-16 Thread Lord Laraby
On Thu, Aug 16, 2012 Corinna Vinschen wrote: > On Aug 16 07:06, Lord Laraby wrote: >> My, major emphasis is recognizing in the Cygwin dll >> or startup code somewhere) that the user has full Administrator rights >> and simply replacing his normal UID with 0 (or that of whom

Re: Question about UAC and bash/cygwin

2012-08-16 Thread Lord Laraby
Hi Corinna, On Thu, Aug 16, 2012 Corinna Vinschen wrote: > On Aug 16 03:39, Lord Laraby wrote: >> I wouldn't need *all* of her knowledge of course. Just a small amount >> would improve my understanding immensely. >> >> > Probably the key point that you're s

Re: Question about UAC and bash/cygwin

2012-08-16 Thread Lord Laraby
Larry Hall (Cygwin) wrote: > On 8/15/2012 5:39 AM, Lord Laraby wrote: > >> Sorry if the questions are a bit too numerous. I wish I could just >> siphon knowledge from Corinna's brain.:) > > Then that would leave her with none! I wouldn't need *all* of her knowle

Re: Question about UAC and bash/cygwin

2012-08-15 Thread Lord Laraby
Adam Dinwoodie wrote: > Lord Laraby wrote: >>I've scanned months of the mailing list archives for an answers and searched >>until I've run out of ideas. > > Have you taken a look through the Cygwin user's guide? In particular, I > suspect > the sectio

Re: Question about UAC and bash/cygwin

2012-08-14 Thread Lord Laraby
Okay, some of this has been covered here: http://www.cygwin.com/ml/cygwin/2008-10/msg00370.html I'm still reading more and doing more detective work. > -- > Lord Laraby -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Do

Question about UAC and bash/cygwin

2012-08-14 Thread Lord Laraby
privileges. Howver, it fails to set the owner or access rights on /etc/ssh* or /var/log/sshd or /var/log/lastlog. What is the proper way to have done this on WIndows 7 Ultimate Edition 64-bit Service Pack I? 6) Cygwin is a great package and works better than SFU/SUA which I also have installed. Is

Re: Cygwin setup scrambled permissions

2012-08-13 Thread Lord Laraby
On Mon, Aug 13, 2012 at 6:30 PM, Ken Brown wrote: > On 8/13/2012 5:49 PM, Lord Laraby wrote: > >> On Mon, Aug 13, 2012 at 11:40 AM, Ken Brown wrote: >>>> >>>> >>>> D:\Programs\cygwin\etc\postinstall>autorebase.bat >>>> /usr/

Re: Cygwin setup scrambled permissions

2012-08-13 Thread Lord Laraby
ou can ignore. See > Ken Aye. That I see now. However, shouldn't autorebase.bat actually do something? Or is it not like rebaseall? My guess is it's only trying to rebase that specific file and failing. If that's so, I'm fine with it. Thanks, -- Lord Lara

Re: Cygwin setup scrambled permissions

2012-08-13 Thread Lord Laraby
That situation averted. I rebooted the PC into safe mode to try and make repairs. But, apparently, just rebooting made all the bad files and folders go away. However, I have a new problem with postinstall autorebase.bat ... It fails with exit code 1 - and prints that it can't find a dll. D:\Prog

Cygwin setup scrambled permissions

2012-08-13 Thread Lord Laraby
I just downloaded the latest setup.exe from www DOT cygwin DOT com and run it as normal selected only updated packages. However, several errors began to popup in warning windows about files being in use. However, there was not a single active cygwin process or service running. That got me suspicio