Re: mintty: Doesn't know about CTRL key

2010-04-16 Thread Andy Koppe
Corinna Vinschen wrote:
> Consider you have more than one mintty window open.  A typical use case
> for me is to have one shell open under UAC and the other one with admin
> rights to test to test something.  Then I want to close both ttys and
> test again with another Cygwin DLL.
>
> So I press Ctrl-D twice, without lifting my thumb from the Ctrl key.
> The first mintty window closes just fine.  The second mintty window does
> not close.  Instead, it behaves as if I had pressed the 'd' key alone.
> So I have to BS and then press Ctrl-D again to exit the second shell.
>
> Apparently the second mintty window doesn't recognize the fact that the
> Ctrl key is still pressed.  This does not happen with two console
> windows, neither in tty, nor in notty mode.

Fixed in svn. If you want to give it a try:

svn checkout http://mintty.googlecode.com/svn/branches/0.6 mintty-0.6
cd mintty-0.6
make

Andy

--
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: Installing a "copy" of an installation on a new computer

2010-04-16 Thread Tom Hall
On Wed, Mar 10, 2010 at 08:38:56AM +0100, Olle Olsson wrote:
> Hi,
> 
> I found the following
>   http://www.cygwin.com/ml/cygwin/2006-05/msg00753.html
> which might provide one practical solution. Will try this.
> /olle

I was having trouble coming up with a sed command to convert all the version
numbers to 0.0-0, so instead, I 'cut' all the package names from
/etc/setup/installed.db and built a batch file to call setup.exe with the -P
switch.

#!/usr/bin/sh
echo -n setup.exe -P $(
for p in $(cut -d \  -f 1 /etc/setup/installed.db)
do
if [ "$p" == "INSTALLED.DB" ] 
then
continue
elif [ "$p" == "_update-info-dir" ] 
then
continue
else
echo -n $p,
fi
done) > portcyg.bat

--
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: Cygwin does not have unicode support however FileZilla displays unicode

2010-04-16 Thread Eric
Andy wrote:

> Actually there is a way to change to a font not normally available in
> the console properties without changing the "Language for non-Unicode
> programs". It requires registry hacking though. See
> http://smallvoid.com/article/winnt-cmd-add-font.html
>
> Andy
>

I really appreciate everything that you have done.

This registry trick seems like it will do the job. Essentially the only
thing that it seems to be missing is using the right font.

I will try this out.

Eric

--
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: gcc: building gcc-4.5.0 for Cygwin

2010-04-16 Thread Jerry DeLisle

Paul Bibbings wrote:

Whilst I do use the versions of gcc available as Cygwin packages, I have
also successfully built from source and used other versions.  Most
recently I have added gcc-4.4.1, 4.4.3 and a 4.5.0 snapshot (end of Feb
2010).  I configure them to build and install in /opt/gcc-{version}. I
then incorporate these into the `alternatives' system and switch using
$alternatives --config gcc/g++ etc.

This has worked fine in the past, but with the recent release of
gcc-4.5.0 I have encountered a problem:

   17:59:37 Paul bibbi...@jijou
   /cygdrive/d/CPPProjects/Emacs/CPP0x $gcc -v
   Using built-in specs.
   COLLECT_GCC=gcc
   COLLECT_LTO_WRAPPER
  =/opt/gcc-4.5.0/libexec/gcc/i686-pc-cygwin/4.5.0/lto-wrapper.exe 
   Target: i686-pc-cygwin

   Configured with: ./configure --prefix=/opt/gcc-4.5.0
   --enable-bootstrap --enable-version-specific-runtime-libs
   --enable-static --enable-shared --enable-shared-libgcc
   --disable-__cxa_atexit --with-gnu-ld --with-gnu-as --with-dwarf2
   --disable-sjlj-exceptions --enable-languages=c,c++ --disable-symvers
   --enable-libgomp --enable-libssp --enable-threads=posix
   --with-arch=i686 --with-tune=generic 
   Thread model: posix

   gcc version 4.5.0 (GCC)

Unlike with my builds for gcc-4.4.1 and 4.4.3, say, this build has
dropped a string of .dlls into /opt/gcc-4.5.0/bin:

  17:59:41 Paul bibbi...@jijou
  /cygdrive/d/CPPProjects/Emacs/CPP0x $ls -l /opt/gcc-4.5.0/bin
  total 11320
  -rwxr-xr-x 4 ...  604046 Apr 15 09:04 c++.exe
  -rwxr-xr-x 1 ...  602030 Apr 15 09:04 cpp.exe
  -rwxr-xr-x 1 ...  437743 Apr 15 09:08 cyggcc_s-1.dll
  -rwxr-xr-x 1 ...  271146 Apr 15 09:08 cyggomp-1.dll
  -rwxr-xr-x 1 ...   55679 Apr 15 09:08 cygssp-0.dll
  -rwxr-xr-x 1 ... 5829289 Apr 15 09:07 cygstdc++-6.dll
  -rwxr-xr-x 4 ...  604046 Apr 15 09:04 g++.exe
  -rwxr-xr-x 3 ...  599400 Apr 15 09:05 gcc.exe
  -rwxr-xr-x 1 ...   16117 Apr 15 09:04 gccbug
  -rwxr-xr-x 1 ...  136186 Apr 15 09:04 gcov.exe
  -rwxr-xr-x 4 ...  604046 Apr 15 09:04 i686-pc-cygwin-c++.exe
  -rwxr-xr-x 4 ...  604046 Apr 15 09:04 i686-pc-cygwin-g++.exe
  -rwxr-xr-x 3 ...  599400 Apr 15 09:05 i686-pc-cygwin-gcc.exe
  -rwxr-xr-x 3 ...  599400 Apr 15 09:05 i686-pc-cygwin-gcc-4.5.0.exe

This now means that there are path issues for running applications built
with gcc-4.5.0 and there are certainly entry point failures:

   19:19:14 Paul bibbi...@jijou
   /cygdrive/d/CPPProjects/Emacs/CPP0x $cygcheck bin/CPP0x
   D:\CPPProjects\Emacs\CPP0x\bin\CPP0x.exe // built: gcc-4.5.0
 C:\cygwin\bin\cyggcc_s-1.dll   // wrong dll
   C:\cygwin\bin\cygwin1.dll
 C:\Windows\system32\ADVAPI32.DLL
   C:\Windows\system32\ntdll.dll
   C:\Windows\system32\KERNEL32.dll
   C:\Windows\system32\RPCRT4.dll
   C:\cygwin\bin\cygstdc++-6.dll// wrong dll

   gdb: unknown target exception 0xc139 at 0x77d69eed
   During startup program exited with code 0xc139.

if the runtime sees the corresponding .dlls in /usr/bin first.
Prepending /opt/gcc-4.5.0/bin to the PATH get's round this, of course.
But now it's not as simple for my alternatives configuration: it works
for the build, but now it looks like I might need to control the runtime
too. 


My thought is to investigate incorporating the relevant .dlls into the
alternatives system, but before doing that I'd like to check out if
this sounds feasible.  Currently I have symlinks in /usr/bin for things
like gcc and g++, with:

   /usr/bin/gcc -> /etc/alternatives/gcc
   /usr/bin/g++ -> /etc/alternatives/g++

and then:

   /etc/alternatives/gcc -> /opt/gcc-4.5.0/bin/gcc.exe
   /etc/alternatives/g++ -> /opt/gcc-4.5.0/bin/g++.exe

Can I, then, do the same with the .dlls in question?  Is it possible,
for instance, for .dlls to be loadable via symlinks under Cygwin? E.g:

   /usr/bin/cygstdc++-6.dll -> /etc/alternatives/cygstdc++-6.dll

   /etc/alternatives/cygstdc++-6.dll ->
   /opt/gcc-4.5.0/bin/cygstdc++-6.dll
   [after $alternatives --config gcc, selecting gcc-4.5.0]

Or are there other options to consider?  My aim is to be able to
continue to switch between implementations using `alternatives' alone,
if that is at all possible, and to not have to think about changing and
reverting paths.

Have I perhaps configured/built this incorrectly?



I have not had any problems building with Cygwin 1.7 on WinNT or Win7.  You do 
have to make sure you have the mpc complex math library installed.  Other than 
that I have had no problems.


Jerry

--
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: cron error can't switch user context

2010-04-16 Thread Tom Schutter
On Fri 2010-04-16 17:06, Cyrille Lefevre wrote:
> 
> Le 16/04/2010 20:42, Tom Schutter a écrit :
> >
> > I have number of machines running Windows2003 and Cygwin 1.7.5.  On most 
> > cron works.  But on one (lemon) it does not.  It appears that on lemon cron 
> > cannot switch the user context.
> >
> > Cronevents on lemon shows:
> >
> > 2010/04/15 17:19:01 [SYSTEM] /usr/sbin/cron: PID 656: (tschutter) CMD 
> > (/usr/bin/python /cygdrive/f/production-sync/production-sync.py)
> > 2010/04/15 17:19:01 [SYSTEM] /usr/sbin/cron: PID 656: (CRON) error (can't 
> > switch user context)
> >
> > /var/log/cron.log is empty on all machines.
> 
> let's configure syslogd from inetutils to have some logs :
> syslogd-config --yes

I don't have a syslogd-config.  Ok.  So I installed inetutils.  Now I have a 
syslogd-config which I have just run.  And I have started syslogd.
After setting up syslogd, I still see an empty /var/log/cron.log and 
/var/log/messages.

> you may need to configure sshd before to have the right permissions
> on /var/empty, etc. (ssh-host-config --yes --user "${CYGSERVER_USER}" 
> --pwd "${CYGSERVER_PASS}" where CYGSERVER_USER=cyg_server and 
> CYGSERVER_PASS=whatever you want)

I am not sure what sshd has to do with cron.  In my case sshd cannot run as the 
cygserver user because it must be a domain user.

> PS : well, I prefer the legacy one than the ng one...
> 
> PS2: IMHO, linux^Wcygwin cron(^W^Wlinux) sucks bcoz it doesn't report on 
> tasks return codes as a true unix does... (i.e.: <  root 1331 c Tue Feb 
>   2 17:32:36 MET 2010 rc=1)
> 
> > The cron daemon is running as SYSTEM on all machines.
> 
> 2K3 may need to be running under cyg_server ?

Why?  I have not seen any doc stating that.

> to configure cron, I use :
> 
> cron-config << EOF
> yes
> 
> no
> no
> no
> ${CYGSERVER_PASS}
> ${CYGSERVER_PASS}
> no
> EOF
> 
> PS : doesn't support csih yet :-(

Your yes and no responses do not match what cron-config asks me:

lemon:/$ cron-config
Do you want to install the cron daemon as a service? (yes/no) yes
Enter the value of CYGWIN for the daemon: [ ]

You must decide under what account the cron daemon will run.
If you are the only user on this machine, the daemon can run as yourself.
   This gives access to all network drives but only allows you as user.
To run multiple users, cron must change user context without knowing
  the passwords. There are three methods to do that, as explained in
  http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-nopasswd1
If all the cron users have executed "passwd -R" (see man passwd),
  which provides access to network drives, or if you are using the
  cyglsa package, then cron should run under the local system account.
Otherwise you need to have or to create a privileged account.
  This script will help you do so.
Do you want the cron daemon to run as yourself? (yes/no) no

Were the passwords of all cron users saved with "passwd -R", or
are you using the cyglsa package ? (yes/no) yes
The cron daemon will run as SYSTEM.

Running cron_diagnose ...
... no problem found.

Do you want to start the cron daemon as a service now? (yes/no) yes
OK. The cron daemon is now running.

In case of problem, examine the log file for cron,
/var/log/cron.log, and the appropriate syslog file
for information about the problem cron is having.

Examine also any cron.log file in the HOME directory
(or the file specified in MAILTO) and cron related files in /tmp.

If you cannot fix the problem, then report it to cyg...@cygwin.com.
Please run the script /usr/bin/cronbug and ATTACH its output
(the file cronbug.txt) to your e-mail.

WARNING: PATH may be set differently under cron than in interactive shells.
 Names such as "find" and "date" may refer to Windows programs.

lemon:/$

It appears that cron-config decides to run cron under the SYSTEM account 
because I indicated that I was using cyglsa.

> > cyglsa is running on all machines.
> 
> did you reboot after configuring cyglsa ?
> 
> > cygserver is not running on any machine.
> 
> 2K3 may need cygserver as well as passwd -D?

If I do a "passwd -R", cron will work.  But I don't want to do a "passwd -R".  
I am forced to change my password every 60 days.  Then I would have to go to 
every cygwin box and change the password there as well.

> > I have rerun cron-config, rebooted, etc.
> 
> well, ok, you surelly have rebooted :-)
> 
> > I have searched the net, but most solutions seem to involve Cygwin 1.5 and 
> > no cyglsa.
> >
> > Does anyone have any suggestions?
> 
> done.

-- 
Tom Schutter
First American Spatial Solutions
303-440-7272 x6822
512-977-6822

--
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: cron error can't switch user context

2010-04-16 Thread Cyrille Lefevre


Le 17/04/2010 00:06, Cyrille Lefevre a écrit :

cygserver is not running on any machine.


2K3 may need cygserver as well as passwd -D?


s/-D/-R/ sorry

Cordialement,

Cyrille Lefevre
--
mailto:cyrille.lefevre-li...@laposte.net



--
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: cron error can't switch user context

2010-04-16 Thread Cyrille Lefevre


Le 16/04/2010 20:42, Tom Schutter a écrit :


I have number of machines running Windows2003 and Cygwin 1.7.5.  On most cron 
works.  But on one (lemon) it does not.  It appears that on lemon cron cannot 
switch the user context.

Cronevents on lemon shows:

2010/04/15 17:19:01 [SYSTEM] /usr/sbin/cron: PID 656: (tschutter) CMD 
(/usr/bin/python /cygdrive/f/production-sync/production-sync.py)
2010/04/15 17:19:01 [SYSTEM] /usr/sbin/cron: PID 656: (CRON) error (can't 
switch user context)

/var/log/cron.log is empty on all machines.


let's configure syslogd from inetutils to have some logs :
syslogd-config --yes

you may need to configure sshd before to have the right permissions
on /var/empty, etc. (ssh-host-config --yes --user "${CYGSERVER_USER}" 
--pwd "${CYGSERVER_PASS}" where CYGSERVER_USER=cyg_server and 
CYGSERVER_PASS=whatever you want)


PS : well, I prefer the legacy one than the ng one...

PS2: IMHO, linux^Wcygwin cron(^W^Wlinux) sucks bcoz it doesn't report on 
tasks return codes as a true unix does... (i.e.: <  root 1331 c Tue Feb 
 2 17:32:36 MET 2010 rc=1)



The cron daemon is running as SYSTEM on all machines.


2K3 may need to be running under cyg_server ?

to configure cron, I use :

cron-config << EOF
yes

no
no
no
${CYGSERVER_PASS}
${CYGSERVER_PASS}
no
EOF

PS : doesn't support csih yet :-(


cyglsa is running on all machines.


did you reboot after configuring cyglsa ?


cygserver is not running on any machine.


2K3 may need cygserver as well as passwd -D?


I have rerun cron-config, rebooted, etc.


well, ok, you surelly have rebooted :-)


I have searched the net, but most solutions seem to involve Cygwin 1.5 and no 
cyglsa.

Does anyone have any suggestions?


done.

Cordialement,

Cyrille Lefevre
--
mailto:cyrille.lefevre-li...@laposte.net



--
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: group membership problems with ssh PubKey

2010-04-16 Thread Larry Hall (Cygwin)

On 4/16/2010 4:43 PM, Tom Schutter wrote:

That is why I indicated that sshd was running as the domain user
fdsv-sa-prx-sshdsrvr.


So you did.  Shame on me for responding when I can get interrupted
while reading. ;-)

Never mind.

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.

Q: Are you sure?

A: Because it reverses the logical flow of conversation.

Q: Why is top posting annoying in email?


--
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: cron error can't switch user context

2010-04-16 Thread Pierre A. Humblet
- Original Message - 
From: "Tom Schutter"
To: cygwin
Sent: Friday, April 16, 2010 15:29


|I have attached cronbug.txt as per the cron-config instructions.
|
| Note that the original cronbug.txt was over 5MB.  I edited cronbug.txt and 
removed 46000 lines 
of cronevents output.  Is there any way of cleaning out old cron entries from 
the event log?
|
| On Fri 2010-04-16 13:42, Tom Schutter wrote:
| > I have number of machines running Windows2003 and Cygwin 1.7.5.  On most 
cron works.  But on 
one (lemon) it does not.  It appears that on lemon cron cannot switch the user 
context.
| >
| > Cronevents on lemon shows:
| >
| > 2010/04/15 17:19:01 [SYSTEM] /usr/sbin/cron: PID 656: (tschutter) CMD 
(/usr/bin/python 
/cygdrive/f/production-sync/production-sync.py)
| > 2010/04/15 17:19:01 [SYSTEM] /usr/sbin/cron: PID 656: (CRON) error (can't 
switch user 
context)
| >
| > /var/log/cron.log is empty on all machines.
| >
| > The cron daemon is running as SYSTEM on all machines.
| >
| > cyglsa is running on all machines.
| >

Hi,

I should perhaps modify cronbug to use "tail" with cronevents, but it's unusual 
to see
a report that cron is broken yet there are 46000 lines in the log!
I assume cron used to work, then something happened and it stopped working.
Or there is something special about the tschutter account.
Can you identify the "something" ?
Any difference between the lemon and the others?

It's  most likly not a cron problem, but something to do with cyglsa. I have 
never
used it, don't have a system like yours to test and there is no such previous 
report.
So not sure what to recommend.
Does password-less ssh work for tschutter ?
If you can't identify the "something", you could try to strace cron on the lemon
and on another machine. Here is the recipe.

Stop the cron service.
Use a simple crontab that runs every minute, for only one user.
Using cygrunsrv, create a new service runing "strace" with argument "cron" 
under SYSTEM
1)  cygrunsrv -I trace_cron -p /usr/bin/strace -a /usr/sbin/cron
2)  cygrunsrv -S trace_cron
3)  Let this run for no more than 2 minutes, output will be in 
/var/log/trace_cron.log
 You may have to use kill -9 to stop the service (kill the cron pid)
4)  Send the trace_cron.log file as an attachment.
5)  Remove the trace_cron service
Restart cron

Pierre 


--
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: group membership problems with ssh PubKey

2010-04-16 Thread Tom Schutter
On Fri 2010-04-16 15:29, Larry Hall (Cygwin) wrote:
> On 4/16/2010 4:14 PM, Tom Schutter wrote:
> > It looks to me like this is an issue of being an "indirect" member of the
> > Administrators group via the domain FDSV-GG-PrxBLD group.
> 
> Which makes me think you're suffering from this FAQ:
> 
> 

I forgot to mention that I had read and I think I understand 
http://cygwin.com/faq/faq-nochunks.html#faq.using.sshd-in-domain

That is why I indicated that sshd was running as the domain user 
fdsv-sa-prx-sshdsrvr.
That is why I listed the user rights for that user.
That is why I indicated that the fdsv-sa-prx-sshdsrvr user is in /etc/passwd.

Yes all of var/empty and all /etc/ssh* are owned by fdsv-sa-prx-sshdsrvr.

So yes, I am suffering from that FAQ.  But AFAICT I have done all that the FAQ 
asks.  What do I do now?

-- 
Tom Schutter
First American Spatial Solutions
303-440-7272 x6822
512-977-6822

--
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: group membership problems with ssh PubKey

2010-04-16 Thread Larry Hall (Cygwin)

On 4/16/2010 4:14 PM, Tom Schutter wrote:

It looks to me like this is an issue of being an "indirect" member of the
Administrators group via the domain FDSV-GG-PrxBLD group.


Which makes me think you're suffering from this FAQ:



--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.

Q: Are you sure?

A: Because it reverses the logical flow of conversation.

Q: Why is top posting annoying in email?


--
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



group membership problems with ssh PubKey

2010-04-16 Thread Tom Schutter
This is a problem that I am having with all of my 1.7 installations.

If I bring up a local shell and list my group memberships:

lemon:~$ groups
Domain Users Administrators Users FDSV-DL-FASS FDSV-DL-Proxix FDSV-GG-Bugzilla 
FDSV-GG-FASS FDSV-GG-Jabber FDSV-GG-Nagios FDSV-GG-PrxAAPCAdmins FDSV-GG-PrxBLD 
FDSV-GG-PrxPCAdmins FDSV-GG-ShareFASSSharedRW FDSV-GG-ShareFwiseLF 
FDSV-GG-ShareFwiseRO FDSV-GG-ShareImages3RO FDSV-GG-ShareResourcesLF 
FDSV-GG-ShareResourcesRO FDSV-GG-TikiDev

Notice that I am a member of the Administrators group.  This is because I am a 
member of the FDSV-GG-PrxBLD group, which has been added to the local 
Administrators group.

Now if I login via SSH using PubKey authentication and list my group 
memberships:

lemon:~$ groups
Domain Users Users FDSV-DL-Proxix FDSV-GG-Bugzilla FDSV-GG-FASS FDSV-GG-Jabber 
FDSV-GG-Nagios FDSV-GG-PrxAAPCAdmins FDSV-GG-PrxBLD FDSV-GG-PrxPCAdmins 
FDSV-GG-TikiDev

I am a member of the FDSV-GG-PrxBLD group, but not the local Administrators 
group.

I am using cyglsa.

I am not using cygserver.

sshd is running as the domain user fdsv-sa-prx-sshdsrvr.  These are the user 
rights for that user:

lemon:~$ editrights -l -u fdsv-sa-prx-sshdsrvr
SeCreateTokenPrivilege
SeTcbPrivilege
SeIncreaseQuotaPrivilege
SeAssignPrimaryTokenPrivilege
SeServiceLogonRight

The fdsv-sa-prx-sshdsrvr user is in /etc/passwd:

lemon:~$ grep fdsv-sa-prx-sshdsrvr /etc/passwd
fdsv-sa-prx-sshdsrvr:unused:18846:10513:Service Account, 
Prx-SSHDSrvr,U-FLOODDATA\fdsv-sa-prx-sshdsrvr,S-1-5-21-2555220796-769361577-1294736918-8846:/home/fdsv-sa-prx-sshdsrvr:/bin/bash

I have blanked any password stored in the registry by specifying a blank 
password to "passwd -R".

I have read and I think I understand http://cygwin.com/cygwin-ug-net/ntsec.html

It looks to me like this is an issue of being an "indirect" member of the 
Administrators group via the domain FDSV-GG-PrxBLD group.

-- 
Tom Schutter
First American Spatial Solutions
303-440-7272 x6822
512-977-6822

Cygwin Configuration Diagnostics
Current System Time: Fri Apr 16 14:12:40 2010

Windows 2003 Server R2 Ver 5.2 Build 3790 Service Pack 2

Running in Terminal Service session

Path:   C:\cygwin\home\tschutter\bin
C:\cygwin\usr\sbin
C:\cygwin\sbin
C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
C:\WINDOWS\system32
C:\WINDOWS
C:\WINDOWS\System32\Wbem
C:\Program Files\WinZip
C:\Program Files\Dell\SysMgt\oma\bin
C:\Program Files\Dell\SysMgt\oma\oldiags\bin
C:\WINDOWS\system32\WindowsPowerShell\v1.0
C:\Program Files\Python26
F:\PxPoint\bin
F:\WebSites\bin
F:\WebSites\PxView\bin
C:\Program Files\MySQL\MySQL Server 5.0\bin

Output from C:\cygwin\bin\id.exe
UID: 18718(tschutter)GID: 10513(Domain Users)
10513(Domain Users)  544(Administrators)
545(Users)   27644(FDSV-DL-FASS)
16577(FDSV-DL-Proxix)25442(FDSV-GG-Bugzilla)
28483(FDSV-GG-FASS)  25443(FDSV-GG-Jabber)
25446(FDSV-GG-Nagios)18189(FDSV-GG-PrxAAPCAdmins)
18169(FDSV-GG-PrxBLD)22611(FDSV-GG-PrxPCAdmins)
28484(FDSV-GG-ShareFASSSharedRW) 25387(FDSV-GG-ShareFwiseLF)
27656(FDSV-GG-ShareFwiseRO)  25409(FDSV-GG-ShareImages3RO)
25354(FDSV-GG-ShareResourcesLF)  27632(FDSV-GG-ShareResourcesRO)
25444(FDSV-GG-TikiDev)

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

USER = 'tschutter'
PWD = '/home/tschutter'
HOME = '/home/tschutter'

HOMEPATH = '\Documents and Settings\tschutter'
MANPATH = '/usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man'
APPDATA = 'C:\Documents and Settings\tschutter\Application Data'
HOSTNAME = 'lemon'
TERM = 'xterm'
PROCESSOR_IDENTIFIER = 'x86 Family 6 Model 15 Stepping 6, GenuineIntel'
WINDIR = 'C:\WINDOWS'
OLDPWD = '/cygdrive/f'
USERDOMAIN = 'FLOODDATA'
OS = 'Windows_NT'
ALLUSERSPROFILE = 'C:\Documents and Settings\All Users'
VS90COMNTOOLS = 'C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\'
TEMP = '/cygdrive/c/DOCUME~1/TSCHUT~1/LOCALS~1/Temp/2'
COMMONPROGRAMFILES = 'C:\Program Files\Common Files'
USERNAME = 'tschutter'
ClusterLog = 'C:\WINDOWS\Cluster\cluster.log'
PROCESSOR_LEVEL = '6'
PSModulePath = 'C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\'
FP_NO_HOST_CHECK = 'NO'
SYSTEMDRIVE = 'C:'
LANG = 'C.UTF-8'
USERPROFILE = 'C:\Documents and Settings\tschutter'
CLIENTNAME = 'wampi'
PS1 = '${HOSTNAME}:\w\$ '
LOGONSERVER = '\\FDSVBLD01SDCX04'
PROCESSOR_ARCHITECTURE = 'x86'
SHLVL = '1'
USERDNSDOMAIN = 'FLOODDATA.NET'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.PSC1;.PSC1'
HOMEDRIVE = 'C:'
COMSPEC = 'C:\WINDOWS\system32\cmd.exe'
TMP = '/cygdrive/c/DOCUME~1/TSCHUT~1/LOCALS~1/Temp/2'
SYSTEMROOT = 'C:\WINDOWS'
PRINTER = 'Microsoft XPS Document Writer'
CVS_RSH = '/bin/ssh'
PROCESSOR_REVISION = '0f06'
INFOPATH = '/usr/local/info:/usr/share/info:/usr/info:'
PROGRAMFILES = 'C:\Program Files'
NUMBER_OF_PROCESSORS = '4'
SESSION

Re: cron error can't switch user context

2010-04-16 Thread Tom Schutter
I have attached cronbug.txt as per the cron-config instructions.

Note that the original cronbug.txt was over 5MB.  I edited cronbug.txt and 
removed 46000 lines of cronevents output.  Is there any way of cleaning out old 
cron entries from the event log?

On Fri 2010-04-16 13:42, Tom Schutter wrote:
> I have number of machines running Windows2003 and Cygwin 1.7.5.  On most cron 
> works.  But on one (lemon) it does not.  It appears that on lemon cron cannot 
> switch the user context.
> 
> Cronevents on lemon shows:
> 
> 2010/04/15 17:19:01 [SYSTEM] /usr/sbin/cron: PID 656: (tschutter) CMD 
> (/usr/bin/python /cygdrive/f/production-sync/production-sync.py)
> 2010/04/15 17:19:01 [SYSTEM] /usr/sbin/cron: PID 656: (CRON) error (can't 
> switch user context)
> 
> /var/log/cron.log is empty on all machines.
> 
> The cron daemon is running as SYSTEM on all machines.
> 
> cyglsa is running on all machines.
> 
> cygserver is not running on any machine.
> 
> I have rerun cron-config, rebooted, etc.
> 
> I have searched the net, but most solutions seem to involve Cygwin 1.5 and no 
> cyglsa.
> 
> Does anyone have any suggestions?
> 
> -- 
> Tom Schutter
> First American Spatial Solutions
> 303-440-7272 x6822
> 512-977-6822
> 
> --
> 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
> 

-- 
Tom Schutter
First American Spatial Solutions
303-440-7272 x6822
512-977-6822

Current version
-rwxr-xr-x 1 tschutter Administrators 5304 2010-02-15 19:14 
/usr/share/doc/Cygwin/cron-4.1-59.README

Running crons:
 318017483180   1904?   18 17:17:27 /usr/sbin/cron

Sendmail:
lrwxrwxrwx 1 tschutter Domain Users 16 2010-03-11 11:28 /usr/sbin/sendmail -> 
/usr/bin/cronlog

Crontabs:
-rw-r- 1 tschutter Administrators 355 2010-03-11 12:43 
/var/cron/tabs/tschutter
-rw-r- 1 18718 544 355 2010-03-11 12:43 /var/cron/tabs/tschutter

cron.log:
-rw-r--r-- 1 SYSTEM Administrators 0 2010-04-15 17:17 /var/log/cron.log

cron.pid:
-rw-r--r-- 1 SYSTEM Administrators 5 2010-04-15 17:17 /var/run/cron.pid

Crontab:
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.txt installed on Thu Mar 11 12:43:48 2010)
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
* * * * * /usr/bin/python /cygdrive/f/production-sync/production-sync.py
0 * * * * /usr/bin/python /cygdrive/f/Logs/logrotate.py 
/cygdrive/f/Logs/logrotate.ini

Windows Application Events log:
2010/03/25 18:51:01 [SYSTEM] /usr/sbin/cron: PID 968: (tschutter) CMD 
(/usr/bin/python /cygdrive/f/production-sync/production-sync.py)
2010/03/25 18:52:01 [SYSTEM] /usr/sbin/cron: PID 4216: (tschutter) CMD 
(/usr/bin/python /cygdrive/f/production-sync/production-sync.py)
REMOVED 46000 lines of similar stuff
2010/04/16 13:10:01 [SYSTEM] /usr/sbin/cron: PID 4000: (CRON) error (can't 
switch user context)
2010/04/16 13:11:01 [SYSTEM] /usr/sbin/cron: PID 3496: (tschutter) CMD 
(/usr/bin/python /cygdrive/f/production-sync/production-sync.py)
2010/04/16 13:11:01 [SYSTEM] /usr/sbin/cron: PID 3496: (CRON) error (can't 
switch user context)
2010/04/16 13:12:01 [SYSTEM] /usr/sbin/cron: PID 204: (tschutter) CMD 
(/usr/bin/python /cygdrive/f/production-sync/production-sync.py)
2010/04/16 13:12:01 [SYSTEM] /usr/sbin/cron: PID 204: (CRON) error (can't 
switch user context)
2010/04/16 13:13:01 [SYSTEM] /usr/sbin/cron: PID 832: (tschutter) CMD 
(/usr/bin/python /cygdrive/f/production-sync/production-sync.py)
2010/04/16 13:13:01 [SYSTEM] /usr/sbin/cron: PID 832: (CRON) error (can't 
switch user context)
2010/04/16 13:13:04 [tschutter] crontab: PID 3624: (tschutter) LIST (tschutter)

Cygcheck:

Cygwin Configuration Diagnostics
Current System Time: Fri Apr 16 13:13:29 2010

Windows 2003 Server R2 Ver 5.2 Build 3790 Service Pack 2

Running in Terminal Service session

Path:   C:\cygwin\home\tschutter\bin
C:\cygwin\usr\sbin
C:\cygwin\sbin
C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
C:\WINDOWS\system32
C:\WINDOWS
C:\WINDOWS\System32\Wbem
C:\Program Files\WinZip
C:\Program Files\Dell\SysMgt\oma\bin
C:\Program Files\Dell\SysMgt\oma\oldiags\bin
C:\WINDOWS\system32\WindowsPowerShell\v1.0
C:\Program Files\Python26
F:\PxPoint\bin
F:\WebSites\bin
F:\WebSites\PxView\bin
C:\Program Files\MySQL\MySQL Server 5.0\bin

Output from C:\cygwin\bin\id.exe
UID: 18718(tschutter)GID: 10513(Domain Users)
10513(Domain Users)  544(Administrators)
545(Users)   27644(FDSV-DL-FASS)
16577(FDSV-DL-Proxix)25442(FDSV-GG-Bugzilla)
28483(FDSV-GG-FASS)  25443(FDSV-GG-Jabber)
25446(FDSV-GG-Nagios)18189(FDSV-GG-PrxAAPCAdmins)
18169(FDSV-GG-PrxBLD)22611(FDSV-GG-PrxPCAdmins)
28484(FDSV-G

Re: mintty: Doesn't know about CTRL key

2010-04-16 Thread Corinna Vinschen
On Apr 16 19:15, Andy Koppe wrote:
> > Corinna Vinschen:
> >> I'm more and more using mintty for everything (shell, admin shell,
> >> heating my food, you name it).
> >
> > Food as well? It was only meant to make mint tea. Thanks for the 
> > endorsement. :)

Oh, hey, I didn't see the mint tea extension yet.  I'm drinking coffee
most of the time.

> >> Consider you have more than one mintty window open.  A typical use case
> >> for me is to have one shell open under UAC and the other one with admin
> >> rights to test to test something.  Then I want to close both ttys and
> >> test again with another Cygwin DLL.
> >>
> >> So I press Ctrl-D twice, without lifting my thumb from the Ctrl key.
> >>
> >> The first mintty window closes just fine.  The second mintty window does
> >> not close.  Instead, it behaves as if I had pressed the 'd' key alone.
> >> So I have to BS and then press Ctrl-D again to exit the second shell.
> >>
> >> Apparently the second mintty window doesn't recognize the fact that the
> >> Ctrl key is still pressed.  This does not happen with two console
> >> windows, neither in tty, nor in notty mode.
> >
> > Phew, not quite as bad as the title suggested.
> >
> > This will be due to the hack for telling AltG from Ctrl+AltGr
> > (which is needed because Windows sends AltGr keypresses as
> > simultaneous Ctrl and Alt key events). Hopefully I'll find a way to
> > fix this without breaking something else again.

That would be cool.

> ps: One workaround is to use Alt-F4 instead of Ctrl-D.

This not so much.  Do you realize how 25 years of Ctrl-D gets imprinted
into your brain?  I have a Ctrl-D tattoo on my cerebral cortex...


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
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



cron error can't switch user context

2010-04-16 Thread Tom Schutter
I have number of machines running Windows2003 and Cygwin 1.7.5.  On most cron 
works.  But on one (lemon) it does not.  It appears that on lemon cron cannot 
switch the user context.

Cronevents on lemon shows:

2010/04/15 17:19:01 [SYSTEM] /usr/sbin/cron: PID 656: (tschutter) CMD 
(/usr/bin/python /cygdrive/f/production-sync/production-sync.py)
2010/04/15 17:19:01 [SYSTEM] /usr/sbin/cron: PID 656: (CRON) error (can't 
switch user context)

/var/log/cron.log is empty on all machines.

The cron daemon is running as SYSTEM on all machines.

cyglsa is running on all machines.

cygserver is not running on any machine.

I have rerun cron-config, rebooted, etc.

I have searched the net, but most solutions seem to involve Cygwin 1.5 and no 
cyglsa.

Does anyone have any suggestions?

-- 
Tom Schutter
First American Spatial Solutions
303-440-7272 x6822
512-977-6822

--
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: Cygwin does not have unicode support however FileZilla displays unicode

2010-04-16 Thread Andy Koppe
me scribbled:
> Eric wrote:
>>> What exactly is coming out as rectangles, i.e. which letters do you
>>> expect instead? Are any particular programs affected?
>>
>> Instead of Chinese characters I get the rectangle box that looks like [] but 
>> without the gaps.
>>
>> Programs affected so far are the command prompt and filenames.
>>
>> The OS that cygwin is running on is Windows 7 32bit English - using the 
>> Chinese Traditional language pack.
>
> I see. Lucida Console and Consolas don't contain glyphs for Chinese or
> the other East Asian languages. In non-console programs such as PuTTY,
> Windows automatically substitutes glyphs from appropriate fonts, but
> for some reason it doesn't do that in the console. Nor does it allow
> you to switch to fonts like SimSun or MingLiU, unless, that is, you
> change the system's "Language for non-Unicode programs" on the
> Administrative tab of the Region&Language control panel to Chinese.

Actually there is a way to change to a font not normally available in
the console properties without changing the "Language for non-Unicode
programs". It requires registry hacking though. See
http://smallvoid.com/article/winnt-cmd-add-font.html

Andy

--
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: Cygwin does not have unicode support however FileZilla displays unicode

2010-04-16 Thread Andy Koppe
Eric wrote:
>> What exactly is coming out as rectangles, i.e. which letters do you
>> expect instead? Are any particular programs affected?
>
> Instead of Chinese characters I get the rectangle box that looks like [] but 
> without the gaps.
>
> Programs affected so far are the command prompt and filenames.
>
> The OS that cygwin is running on is Windows 7 32bit English - using the 
> Chinese Traditional language pack.

I see. Lucida Console and Consolas don't contain glyphs for Chinese or
the other East Asian languages. In non-console programs such as PuTTY,
Windows automatically substitutes glyphs from appropriate fonts, but
for some reason it doesn't do that in the console. Nor does it allow
you to switch to fonts like SimSun or MingLiU, unless, that is, you
change the system's "Language for non-Unicode programs" on the
Administrative tab of the Region&Language control panel to Chinese.

Hope that helps,
Andy

--
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: mintty: Doesn't know about CTRL key

2010-04-16 Thread Andy Koppe
> Corinna Vinschen:
>> I'm more and more using mintty for everything (shell, admin shell,
>> heating my food, you name it).
>
> Food as well? It was only meant to make mint tea. Thanks for the endorsement. 
> :)
>
>
>> Consider you have more than one mintty window open.  A typical use case
>> for me is to have one shell open under UAC and the other one with admin
>> rights to test to test something.  Then I want to close both ttys and
>> test again with another Cygwin DLL.
>>
>> So I press Ctrl-D twice, without lifting my thumb from the Ctrl key.
>>
>> The first mintty window closes just fine.  The second mintty window does
>> not close.  Instead, it behaves as if I had pressed the 'd' key alone.
>> So I have to BS and then press Ctrl-D again to exit the second shell.
>>
>> Apparently the second mintty window doesn't recognize the fact that the
>> Ctrl key is still pressed.  This does not happen with two console
>> windows, neither in tty, nor in notty mode.
>
> Phew, not quite as bad as the title suggested.
>
> This will be due to the hack for telling AltG from Ctrl+AltGr
> (which is needed because Windows sends AltGr keypresses as
> simultaneous Ctrl and Alt key events). Hopefully I'll find a way to
> fix this without breaking something else again.

ps: One workaround is to use Alt-F4 instead of Ctrl-D.

Andy

--
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: mintty: Doesn't know about CTRL key

2010-04-16 Thread Andy Koppe
Corinna Vinschen:
> I'm more and more using mintty for everything (shell, admin shell,
> heating my food, you name it).

Food as well? It was only meant to make mint tea. Thanks for the endorsement. :)


> Consider you have more than one mintty window open.  A typical use case
> for me is to have one shell open under UAC and the other one with admin
> rights to test to test something.  Then I want to close both ttys and
> test again with another Cygwin DLL.
>
> So I press Ctrl-D twice, without lifting my thumb from the Ctrl key.
>
> The first mintty window closes just fine.  The second mintty window does
> not close.  Instead, it behaves as if I had pressed the 'd' key alone.
> So I have to BS and then press Ctrl-D again to exit the second shell.
>
> Apparently the second mintty window doesn't recognize the fact that the
> Ctrl key is still pressed.  This does not happen with two console
> windows, neither in tty, nor in notty mode.

Phew, not quite as bad as the title suggested.

This will be due to the hack for telling AltG from Ctrl+AltGr
(which is needed because Windows sends AltGr keypresses as
simultaneous Ctrl and Alt key events). Hopefully I'll find a way to
fix this without breaking something else again.

Andy

--
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



[ANNOUNCEMENT] Updated: parrot-2.2.0-1 New: rakudo-201003-1 (aka perl6)

2010-04-16 Thread Reini Urban
I updated the parrot and rakudo packages from 0.8.2 to 2.2.0-1 in the 
Cygwin distribution. rakudo switched to date versioning for the monthly 
releases, so that's 201003 now, the april release on the horizon.


This is not from any branch of mine anymore, with only minimal patches.

Canonical homepage:
  http://www.parrot.org/

Canonical download:
  http://www.parrot.org/release/current

My repo:

http://code.google.com/p/cygwin-rurban/source/browse/#svn/trunk/release/parrot

I had most of the missing parrot and perl6 packages between 0.8.2 and 
2.2.0 ready and uploaded some to my server, but decided not to release 
it until now for the following reason.
* My previous parrot packages could be installed easily, that means you 
didn't need to download from svn and build from source to create or 
maintain any other language. Most of these patches weren't accepted 
upstream, parrot decided somewhen to install needed -devel files into 
/usr/src/parrot possibly overwriting the parrot src package downloaded 
via the cygwin package. I gave up on this now.
* pbc_compat was given up. That's why I stepped down as committer. 
Something is planned for 3.0 though.


There are so many news since 0.8.2, please swift through the various 
Release Notes at http://www.parrot.org/category/news/news.
It got not faster though, had a massive step in passing perl6 spec tests 
(http://www.rakudo.org/status), many more features were added, some removed.


Note that parrot-2.2 is API-wise unstable.
I did not get rakudo matching the last *stable* parrot 2.0 working, so I 
went to 2.2 instead, which worked.


parrot-languages is gone. Previously I tried to keep up with parrot-pipp 
but that needed massive parrot patches. Only rakudo went up to be 
installable. The former languages are not in the parrot svn repo 
anymore, so they need seperate package and releases anyway. I'll try to 
keep up adding prominent languages when the opportunity arises. But 
since the pbc format is not forwards and backwards compatible and 
changes often, you need the exact matching parrot release. This will be 
tricky.


Packaging Details:
* I obsoleted libparrot0 and libparrot-devel and went to the simplier 
layout parrot and parrot-devel.
* parrot-devel installs into /usr/src/parrot/. Do not delete 
this if you want to compile languages, like perl6.


=

To update your installation, click on the "Install Cygwin now" link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Once you've downloaded setup.exe, run it and select "Editors"
or "Text" and then click on the appropriate fields until the above
announced version numbers appear if they are not displayed already.

If your mirror doesn't yet have the latest version of this package after
24 hours, you can either continue to wait for that site to be updated or
you can try to find another mirror.

Please send questions or comments to the Cygwin mailing list at:
cygwin@cygwin.com

If you want to subscribe go to:
http://cygwin.com/ml/cygwin/

I would appreciate if you would use this mailing list rather than
emailing me directly.  This includes ideas and comments about the setup
utility or Cygwin in general.

If you want to make a point or ask a question the Cygwin mailing
list is the appropriate place.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/

--
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



Updated: ImageMagick-6.4.0.6-2 + libMagick10, libMagick-devel, perl-Image-Magick

2010-04-16 Thread Reini Urban

The following packages have been updated in the Cygwin
distribution:

* ImageMagick-6.4.0.6-2
* libMagick10-6.4.0.6-2
* libMagick-devel-6.4.0.6-2
* perl-Image-Magick-6.4.0.6-2

This was made by me with permission by the original maintainer in 
january. I just forgot to upload it until now.

http://cygwin.com/ml/cygwin/2010-01/msg00767.html

DESCRIPTION
===
ImageMagick® is a software suite to create, edit, and compose bitmap
images. It can read, convert and write images in a variety of formats
(about 100) including GIF, JPEG, JPEG-2000, PNG, PDF, PhotoCD, TIFF, and
DPX. Use ImageMagick to translate, flip, mirror, rotate, scale, shear
and transform images, adjust image colors, apply various special
effects, or draw text, lines, polygons, ellipses and Bézier curves.

For more information check its homepage:  http://www.imagemagick.org


NEWS

* perl fixes

CHANGES
===
* fixed setup.hint dependencies

UPDATE
==
To update your installation, click on the "Install Cygwin now" link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Save it and run setup, answer the questions and pick up
the above mentioned packages.


DOWNLOAD:
=
Note that downloads from sources.redhat.com (aka cygwin.com) aren't
allowed due to bandwidth limitations.  This means that you will need
to find a mirror which has this update, please choose the one nearest to
you: http://cygwin.com/mirrors.html


QUESTIONS:
==
If you want to make a point or ask a question the Cygwin mailing
list is the appropriate place.


CYGWIN-ANNOUNCE UNSUBSCRIBE INFO:
=
To unsubscribe to the cygwin-announce mailing list, look at the
"List-Unsubscribe: " tag in the email header of this message.  Send
email to the address specified there.  It will be in the format:

cygwin-announce-unsubscribe-you=yourdomain@cygwin.com


If you need more information on unsubscribing, start reading here:

http://sources.redhat.com/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.

--
PGP/GPG key  (ID: 0x9F8A785D)  available  from  wwwkeys.de.pgp.net
key-fingerprint 550D F17E B082 A3E9 F913  9E53 3D35 C9BA 9F8A 785D

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



--
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: scripting elevated privilege on Windows 7

2010-04-16 Thread Eric Blake
On 04/16/2010 11:37 AM, Eric Blake wrote:
> You are missing some quotes, and might as well use nicer quoting styles:
   ^^^
command substitution styles

> 
> exec cygstart --action=runas "$(which "$prog") "$@"

And I'm missing quotes, too.

exec cygstart --action=runas "$(which "$prog")" "$@"

I'll go back and hide in my hole now :(

-- 
Eric Blake   ebl...@redhat.com+1-801-349-2682
Libvirt virtualization library http://libvirt.org



signature.asc
Description: OpenPGP digital signature


Re: scripting elevated privilege on Windows 7

2010-04-16 Thread Eric Blake
On 04/16/2010 10:33 AM, davidarnst...@panix.com wrote:
> Thank you Robert Pendell! I wrote this shell script. Any suggestions
> for optimization?
> 
> #!/bin/bash
> if [ $# -eq 1 ]
> then
> echo "Usage: elev program arg1 arg2 ..."
> exit 1
> fi
> prog="$1"

In assignment, there is no field splitting, so "" is redundant; this is
equivalent:

prog=$1

> shift
> exec cygstart --action=runas `which "$prog"` "$@"

You are missing some quotes, and might as well use nicer quoting styles:

exec cygstart --action=runas "$(which "$prog") "$@"

-- 
Eric Blake   ebl...@redhat.com+1-801-349-2682
Libvirt virtualization library http://libvirt.org



signature.asc
Description: OpenPGP digital signature


Re: 64 bit applications

2010-04-16 Thread Christopher Faylor
On Fri, Apr 16, 2010 at 07:24:58PM +0400, Andrew P. wrote:
> Thanks, Christopher Faylor !
>
>But do You know, this mingw64 only can compile for x86_64 or run such 
>compiled application too?
>And does mingw64 work under win32?
>
>Thanks in advance.

Please just go to the mingw64 forums and ask your questions there.  This
really isn't on-topic for the Cygwin list.

--
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: ./ns command not WORKING AT ALL!!!

2010-04-16 Thread Christopher Faylor
On Fri, Apr 16, 2010 at 05:35:32PM +0200, d.sastre.med...@gmail.com wrote:
>Hello,
>
>A quick google search points to this:

Yes.  I was actually attempting a "teach someone to fish" exercise here.
But I should know that that trick never works here.

cgf

--
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: scripting elevated privilege on Windows 7

2010-04-16 Thread DavidArnstein
Thank you Robert Pendell! I wrote this shell script. Any suggestions
for optimization?

#!/bin/bash
if [ $# -eq 1 ]
then
echo "Usage: elev program arg1 arg2 ..."
exit 1
fi
prog="$1"
shift
exec cygstart --action=runas `which "$prog"` "$@"


--
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: List Of Oficially Orphaned Packages

2010-04-16 Thread Corinna Vinschen
On Apr 16 17:52, d.sastre.med...@gmail.com wrote:
> Hello,
> 
> I've looking for it, but it looks like it doesn't exist.
> Is there a LOOOP anywhere?

http://cygwin.com/cygwin-pkg-maint


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
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



List Of Oficially Orphaned Packages

2010-04-16 Thread d . sastre . medina
Hello,

I've looking for it, but it looks like it doesn't exist.
Is there a LOOOP anywhere?

Regards.

-- 
Huella de clave = 943C D77F 0CB0 02FE 166E  E06F D13A A2E1 98A5 C953


pgpbB51O9vG9f.pgp
Description: PGP signature


Re: ./ns command not WORKING AT ALL!!!

2010-04-16 Thread d . sastre . medina
Hello,

A quick google search points to this:

http://ce.sharif.edu/~m_amiri/project/networksimulator1/index.htm
http://www.isi.edu/nsnam/ns/

The former lists cygwin as a requirement to install NS.
IMHO, the OP should email his/her problems to the account refered in
the latter: ns-us...@isi.edu
They possibly know what is he/she talking about.

Regards.

-- 
Huella de clave = 943C D77F 0CB0 02FE 166E  E06F D13A A2E1 98A5 C953


pgpzKVR3M2u3i.pgp
Description: PGP signature


Re: 64 bit applications

2010-04-16 Thread Andrew P.

Thanks, Christopher Faylor !

But do You know, this mingw64 only can compile for x86_64 or run such 
compiled application too?

And does mingw64 work under win32?

Thanks in advance.

--
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



mintty: Doesn't know about CTRL key

2010-04-16 Thread Corinna Vinschen
Hi Andy,

I'm more and more using mintty for everything (shell, admin shell,
heating my food, you name it).  However, there's one thing which
constantly is in the way.

Consider you have more than one mintty window open.  A typical use case
for me is to have one shell open under UAC and the other one with admin
rights to test to test something.  Then I want to close both ttys and
test again with another Cygwin DLL.

So I press Ctrl-D twice, without lifting my thumb from the Ctrl key.
The first mintty window closes just fine.  The second mintty window does
not close.  Instead, it behaves as if I had pressed the 'd' key alone.
So I have to BS and then press Ctrl-D again to exit the second shell.

Apparently the second mintty window doesn't recognize the fact that the
Ctrl key is still pressed.  This does not happen with two console
windows, neither in tty, nor in notty mode.

Is there a chance to fix this in mintty?


Thanks,
Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
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: 64 bit applications

2010-04-16 Thread Christopher Faylor
On Fri, Apr 16, 2010 at 03:57:58PM +0400, Andrew P. wrote:
>
> Dear Sir!
>
>I didn't find on FAQ and mailing list the answer on question:
>Is it possible to compile from sources for x86_64 architecture (and will 
>it be the default architecture) and then run this application via cygwin 
>installation from cygwin.lilengine.com with all products selected under 
>Windows XP x 64 Edition (and under win32)?

No, it's not possible currently.  The Cygwin dll and all of the binaries
in the distribution are 32-bit.

>If not, then how is it possible to do?

If you don't need the POSIX layer that Cygwin provides then google for
mingw64.  That is a native toolchain which produces 64-bit binaries.

Otherwise, I'm afraid you're out of luck unless you can fund development
of a 64-bit Cygwin.

>And will be this cygwin installation work on another PC by simple folder 
>copy (and, for example, from win32 to win64)?

Barring any running services, yes.  If you are running a service like
openssh then you need to reconfigure the other PC.  But it's still
32-bit.

cgf

--
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: ./ns command not WORKING AT ALL!!!

2010-04-16 Thread Christopher Faylor
On Fri, Apr 16, 2010 at 04:32:33AM -0700, novice_246 wrote:
>
>hey good morning im doing a project for college and we have to be using
>cygwin Network Simulator. Now First of all we i installed in and ran the
>command ./ns example1b.tcl and the window come up with the copyright info
>blocking the simulator. Finally firgured out how to exit that but the window
>cant be re-sized are anything. which is a problem when we have to be
>building complex networks. So now i installed it again and run the command
>./ns example1b.tcl to see if it is working and the NS would not appear. it
>is giving me the following message:
>
>[...@jdffhjk ...usr/bin]$ ./ns example1b.tcl
> When configured, ns found the right version of tclsh in
>/home/dukat/ns-allinone-2.28/tcl8.4.5/unix/tclsh
>but it doesn't seem to be there anymore, so ns will fall back on running the
>first tclsh in your path. The wrong version of tclsh may break the test
>suites. Reconfigure and rebuild ns if this is a problem. 
>ns: finish: couldn't execute "nam": no such file or directory
>while executing
>"exec nam out.nam &"
>(procedure "finish" line 7)
>invoked from within
>"finish"
>
>plz help me fix this because this project is very important also the resize
>and exit buttons that are located in the top right corner are not there so i
>cant resize the window so if anybody can help me fix that it would be much
>appreciated.

Nothing above points to this being related to Cygwin.  Could you elaborate
on why you think this is something that could be handled by this mailing
list?

cgf

--
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: 64 bit applications

2010-04-16 Thread Larry Hall (Cygwin)

On 4/16/2010 7:57 AM, Andrew P. wrote:


Dear Sir!

I didn't find on FAQ and mailing list the answer on question:
Is it possible to compile from sources for x86_64 architecture


Cygwin has not been ported to x64.  You can install the x86 version
that's available on x64 of course.

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.

Q: Are you sure?

A: Because it reverses the logical flow of conversation.

Q: Why is top posting annoying in email?


--
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: Problem with 'find'

2010-04-16 Thread Corinna Vinschen
On Apr 16 12:58, Gary . wrote:
> $ find / -name pg_hba.conf -print
> find: 
> `/proc/registry/HKEY_CLASSES_ROOT/*/shellex/PropertySheetHandlers/CryptoSignMenu':
> Bad address
> assertion "ent->fts_info == FTS_NSOK || state.type != 0" failed: file
> "/usr/src/findutils-4.5.5-1/src/findutils-4.5.5/find/ftsfind.c", line
> 477, function: consider_visiting
> 
> Sorry if this has already been reported.

That should be fixed in the latest developer snapshot at
http://cygwin.com/snapshots/


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
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: Cygwin does not have unicode support however FileZilla displays unicode

2010-04-16 Thread Eric
Andy wrote:
> What exactly is coming out as rectangles, i.e. which letters do you
> expect instead? Are any particular programs affected?

Instead of Chinese characters I get the rectangle box that looks like [] but 
without the gaps.

Programs affected so far are the command prompt and filenames.

The OS that cygwin is running on is Windows 7 32bit English - using the Chinese 
Traditional language pack.

Eric


--
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



64 bit applications

2010-04-16 Thread Andrew P.


Dear Sir!

I didn't find on FAQ and mailing list the answer on question:
Is it possible to compile from sources for x86_64 architecture (and will 
it be the default architecture) and then run this application via cygwin 
installation from cygwin.lilengine.com with all products selected under 
Windows XP x 64 Edition (and under win32)? If not, then how is it 
possible to do?
And will be this cygwin installation work on another PC by simple folder 
copy (and, for example, from win32 to win64)?


Thanks in advance.
Best regards,

--
Andrew P.,
mailto: 410...@rambler.ru

--
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: rsync: rename .file.JVPk8f -> file: Device or resource busy (16)

2010-04-16 Thread Frédéric Bron
> I actually meant the output of cacls for the file on your local disk :)
D:\Documents\Fred\bin\pdfbook.exe BUILTIN\Administrators:C
  ALCAN\Domain Users:R
  ALCAN\BronF:F
  AUTORITE NT\SYSTEM:F
  Tout le monde:R
  BUILTIN\Users:R
Strange, it looks as it was changed (exchange between Administrators
and my-self (bronf).

> I assume that's your virus scanner.  In theory I would shrug that away
> as a BLODA problem, but I have one or two ideas how to fix this problem.
> It might help in a couple of cases where BLODAs are involved.
>
> May I send you a link to a test Cygwin DLL via PM?

Of course you can.
Frédéric

--
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: Cygwin does not have unicode support however FileZilla displays unicode

2010-04-16 Thread Andy Koppe
Eric wrote:
>> Bash does support Unicode, but when running it in a console window you
>> need to select an appropriate font in the console window defaults to
>> be able to display codepoints outside your language's codepage. Lucida
>> Console or Consolas, for example.
>
> In cygwin's console window I switched it like you said but it comes out as 
> rectangles "[]".

What exactly is coming out as rectangles, i.e. which letters do you
expect instead? Are any particular programs affected?

Andy

--
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



./ns command not WORKING AT ALL!!!

2010-04-16 Thread novice_246

hey good morning im doing a project for college and we have to be using
cygwin Network Simulator. Now First of all we i installed in and ran the
command ./ns example1b.tcl and the window come up with the copyright info
blocking the simulator. Finally firgured out how to exit that but the window
cant be re-sized are anything. which is a problem when we have to be
building complex networks. So now i installed it again and run the command
./ns example1b.tcl to see if it is working and the NS would not appear. it
is giving me the following message:

[...@jdffhjk ...usr/bin]$ ./ns example1b.tcl
 When configured, ns found the right version of tclsh in
/home/dukat/ns-allinone-2.28/tcl8.4.5/unix/tclsh
but it doesn't seem to be there anymore, so ns will fall back on running the
first tclsh in your path. The wrong version of tclsh may break the test
suites. Reconfigure and rebuild ns if this is a problem. 
ns: finish: couldn't execute "nam": no such file or directory
while executing
"exec nam out.nam &"
(procedure "finish" line 7)
invoked from within
"finish"

plz help me fix this because this project is very important also the resize
and exit buttons that are located in the top right corner are not there so i
cant resize the window so if anybody can help me fix that it would be much
appreciated.

-- 
View this message in context: 
http://old.nabble.com/.-ns-command-not-WORKING-AT-ALL%21%21%21-tp28265800p28265800.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
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: Setup, update thyself

2010-04-16 Thread Alexander Groß
I invoke setup through a little helper script that updates setup.exe
in case there is a new version on the server.

wget.exe --timestamping http://cygwin.com/setup.exe
runas.exe /user:%USERDOMAIN%\Administrator setup.exe

Auto-update would have a nice touch to it, though.

Alex
--
Alexander Groß
http://therightstuff.de/


2010/4/15 Warren Young 
>
> On 4/11/2010 1:13 PM, Rance Hall wrote:
>>
>> The standard way to do this would be to write a script that wgets (or
>> other windows alternative) the setup.exe on the web into a staging
>> area.
>
> Firefox and Adobe do it with a separate updater program.
>
> I'm not recommending that for Cygwin, but setup.exe could be its own updater. 
>  It could make a copy of its own executable to a temp location, and launch 
> that with a flag that makes it go fetch and replace the non-temp copy and 
> relaunch it.

--
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



Problem with 'find'

2010-04-16 Thread Gary .
$ find / -name pg_hba.conf -print
find: 
`/proc/registry/HKEY_CLASSES_ROOT/*/shellex/PropertySheetHandlers/CryptoSignMenu':
Bad address
assertion "ent->fts_info == FTS_NSOK || state.type != 0" failed: file
"/usr/src/findutils-4.5.5-1/src/findutils-4.5.5/find/ftsfind.c", line
477, function: consider_visiting

Sorry if this has already been reported.

-- 
Gary
Non-kook (allegedly)

--
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: rsync: rename .file.JVPk8f -> file: Device or resource busy (16)

2010-04-16 Thread Corinna Vinschen
On Apr 16 12:33, Fr?d?ric Bron wrote:
> > Ok, so you're admin.  I assume that `id' lists the administrators
> > group in your supplementary group list?
> 
> true
> 
> > Not really.  So, with the above permissions, rsync fails but mv works,
> > right?  What's important when using mv is to mv the file within the
> > same filesystem.  Rsync does not fail to copy the file to the USB
> > stick.  It fails when trying to rename the copied file on the USB stick
> > from its temporary name (.file.foo) to the desired target name.  This
> > renaming is what we have to check for.  So, what das mv say when you
> > try to just rename the file?  What if you cp the file to the USB stick
> > and then try to mv it to another name there?
> works perfectly fine.
> 
> > Can you please create an strace rsyncing just this single file with
> > the failing permissions?
> 
> Log file is attached.
> In fact I saw that even with full control to my-self on local hard
> drive it fails sometimes so this was a bad idea.
> 
> > And please add the output of `cacls the_file'.  It's more exact to
> > show the ACL than the GUI.
> G:\Sauvegarde\Documents\Fred\bin\.pdfbook.exe.w6rU9f Tout le monde:F
> 
> "Tout le monde" in French means Everyone en English!

I actually meant the output of cacls for the file on your local disk :)

Anyway, the strace output shows that a sharing violation occurs.  There's
another process accessing the file, and that other process opened the
file with one of the sharing flags, probably FILE_SHARE_DELETE, not set.

I assume that's your virus scanner.  In theory I would shrug that away
as a BLODA problem, but I have one or two ideas how to fix this problem.
It might help in a couple of cases where BLODAs are involved.

May I send you a link to a test Cygwin DLL via PM?


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
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: rsync: rename .file.JVPk8f -> file: Device or resource busy (16)

2010-04-16 Thread Corinna Vinschen
On Apr 16 11:45, Corinna Vinschen wrote:
> On Apr 16 11:13, Fr?d?ric Bron wrote:
> > >  Is UAC enabled?  Elevated or non-elevated shell?
> > Access control via Active Directory. No idea about elevation (do not
> > know that). I am listed in the administrator group of the main machine
> > I use (corporate PC).
> 
> Ok, so you're admin.  I assume that `id' lists the administrators
> group in your supplementary group list?
> 
> > > Which OS are you using, btw?
> > Windows XP SP3
> 
> Ok, so no UAC.
> 
> > I identified one file that was permanently failing to be saved had the
> > following permissions on my hard drive:
> > - Administraors: full control
> > - Domain Users: Read&Execute, Read
> > - MySelf: Modify, Read&Execute, Read, Write
> > - SYSTEM: full control
> > - Everyone: Read&Execute, Read
> > - Users (computer\Users): Read&Execute, Read
> > 
> > I added full control to my-self on the local hard drive and then rsync
> > worked fine. On the USB disk the remaining ".file.exe." has full
> > control to everyone and only this which is fine.
> > I then removed again the full control to my-self on the local hard
> > drive and rsync failed again.
> > 
> > Any clue?
> 
> Not really.  So, with the above permissions, rsync fails but mv works,
> right?

I created a file with the same permissions as noted above and I tried to
rsync onto the USB stick which I prepared with the same permissions
(Everyone: Full control) and with the stick mounted "noacl", and rsync
still works fine for me.  It's puzzeling, but this could really be a
Symantec issue.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
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: rsync: rename .file.JVPk8f -> file: Device or resource busy (16)

2010-04-16 Thread Corinna Vinschen
On Apr 16 11:45, Corinna Vinschen wrote:
> On Apr 16 11:13, Fr?d?ric Bron wrote:
> > >  Is UAC enabled?  Elevated or non-elevated shell?
> > Access control via Active Directory. No idea about elevation (do not
> > know that). I am listed in the administrator group of the main machine
> > I use (corporate PC).
> 
> Ok, so you're admin.  I assume that `id' lists the administrators
> group in your supplementary group list?
> 
> > > Which OS are you using, btw?
> > Windows XP SP3
> 
> Ok, so no UAC.
> 
> > I identified one file that was permanently failing to be saved had the
> > following permissions on my hard drive:
> > - Administraors: full control
> > - Domain Users: Read&Execute, Read
> > - MySelf: Modify, Read&Execute, Read, Write
> > - SYSTEM: full control
> > - Everyone: Read&Execute, Read
> > - Users (computer\Users): Read&Execute, Read
> > 
> > I added full control to my-self on the local hard drive and then rsync
> > worked fine. On the USB disk the remaining ".file.exe." has full
> > control to everyone and only this which is fine.
> > I then removed again the full control to my-self on the local hard
> > drive and rsync failed again.
> > 
> > Any clue?
> 
> Not really.  So, with the above permissions, rsync fails but mv works,
> right?  What's important when using mv is to mv the file within the
> same filesystem.  Rsync does not fail to copy the file to the USB
> stick.  It fails when trying to rename the copied file on the USB stick
> from its temporary name (.file.foo) to the desired target name.  This
> renaming is what we have to check for.  So, what das mv say when you
> try to just rename the file?  What if you cp the file to the USB stick
> and then try to mv it to another name there?
> 
> Can you please create an strace rsyncing just this single file with
> the failing permissions?

And please add the output of `cacls the_file'.  It's more exact to
show the ACL than the GUI.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
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: rsync: rename .file.JVPk8f -> file: Device or resource busy (16)

2010-04-16 Thread Corinna Vinschen
On Apr 16 11:13, Fr?d?ric Bron wrote:
> >  Is UAC enabled?  Elevated or non-elevated shell?
> Access control via Active Directory. No idea about elevation (do not
> know that). I am listed in the administrator group of the main machine
> I use (corporate PC).

Ok, so you're admin.  I assume that `id' lists the administrators
group in your supplementary group list?

> > Which OS are you using, btw?
> Windows XP SP3

Ok, so no UAC.

> I identified one file that was permanently failing to be saved had the
> following permissions on my hard drive:
> - Administraors: full control
> - Domain Users: Read&Execute, Read
> - MySelf: Modify, Read&Execute, Read, Write
> - SYSTEM: full control
> - Everyone: Read&Execute, Read
> - Users (computer\Users): Read&Execute, Read
> 
> I added full control to my-self on the local hard drive and then rsync
> worked fine. On the USB disk the remaining ".file.exe." has full
> control to everyone and only this which is fine.
> I then removed again the full control to my-self on the local hard
> drive and rsync failed again.
> 
> Any clue?

Not really.  So, with the above permissions, rsync fails but mv works,
right?  What's important when using mv is to mv the file within the
same filesystem.  Rsync does not fail to copy the file to the USB
stick.  It fails when trying to rename the copied file on the USB stick
from its temporary name (.file.foo) to the desired target name.  This
renaming is what we have to check for.  So, what das mv say when you
try to just rename the file?  What if you cp the file to the USB stick
and then try to mv it to another name there?

Can you please create an strace rsyncing just this single file with
the failing permissions?


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
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



[ANNOUNCEMENT] Updated: OpenSSH-5.5p1-1

2010-04-16 Thread Corinna Vinschen
I've just updated the Cygwin version of OpenSSH to 5.5p1-1.

This is a new major upstream release.  The Cygwin release is created
from the vanilla sources.  It contains one Cygwin-specific change
which hasen't been mentioned in the official release message:

* The ssh-host-config script usually writes an "ssh" entry into the
  Windows' /etc/services file.  The code didn't work correctly in all
  circumstances if case-sensitivity is enabled on the system (see
  
http://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-casesensitive).
  This has been fixed in the ssh-host-config with this release.

The official release message of 5.5p1:


OpenSSH 5.5 has just been released. It will be available from the
mirrors listed at http://www.openssh.com/ shortly.

OpenSSH is a 100% complete SSH protocol version 1.3, 1.5 and 2.0
implementation and includes sftp client and server support.

Once again, we would like to thank the OpenSSH community for their
continued support of the project, especially those who contributed code
or patches, reported bugs, tested snapshots or donated to the project.
More information on donations may be found at:
http://www.openssh.com/donations.html

This is a bugfix release.

Changes since OpenSSH 5.4
=

 * Unbreak sshd_config's AuthorizedKeysFile option for $HOME-relative paths

 * Fix compilation failures on platforms that lack dlopen()

 * Include a language tag when sending a protocol 2 disconnection message.

 * Make logging of certificates used for user authentication more clear and
   consistent between CAs specified using TrustedUserCAKeys and
   authorized_keys

Portable OpenSSH:

 * Allow contrib/ssh-copy-id to fail gracefully when there are no keys in
   the ssh-agent. bz#1723

 * Explicitly link libX11 into contrib/gnome-ssh-askpass2. bz#1725

 * Allow ChrootDirectory to work in SELinux platforms. bz#1726

 * Add configure.ac stanza for Haiku OS. bz#1741

 * Enable utmpx support on FreeBSD where possible. bz#1732

 * Use pkg-config to determine libedit linker flags where possible. bz#1744

Checksums:
==

 - SHA1 (openssh-5.5.tar.gz) = 59864a048b09ad1b6e65a74d5d385d8189ab8c74
 - SHA1 (openssh-5.5p1.tar.gz) = 361c6335e74809b26ea096b34062ba8ff6c97cd6

Reporting Bugs:
===

- Please read http://www.openssh.com/report.html
  Security bugs should be reported directly to open...@openssh.com

OpenSSH is brought to you by Markus Friedl, Niels Provos, Theo de Raadt,
Kevin Steves, Damien Miller, Darren Tucker, Jason McIntyre, Tim Rice and
Ben Lindstrom.


To update your installation, click on the "Install Cygwin now" link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Then, run setup and answer all of the questions.

  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, look
at the "List-Unsubscribe: " tag in the email header of this message.
Send email to the address specified there.  It will be in the format:

cygwin-announce-unsubscribe-you=3d3dyourdomain@cygwin.com

If you need more information on unsubscribing, start reading here:

http://sourceware.org/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
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: rsync: rename .file.JVPk8f -> file: Device or resource busy (16)

2010-04-16 Thread Frédéric Bron
> What you need to find out is what the files for which this happens have
> in common, plus a couple of extra conditions.
They are all .exe files! most of them were created from cygwin using g++.

>  Is UAC enabled?  Elevated or non-elevated shell?
Access control via Active Directory. No idea about elevation (do not
know that). I am listed in the administrator group of the main machine
I use (corporate PC).

> Are you using the same account on all machines (Active Directory), or do
> you use different accounts (at least one machine is a stand-alone
> workstation)?

In fact since I formatted the disks in ntfs, I have used them on only
one PC (the one used to format the disks). On that PC, I am listed in
the Administrators group. It is rare that I plug the USB disk on
another PC. When it is the case, it is with a different account and
different windows version.

> Is the drive formatted with all permissions for Everyone?
Yes, I removed all other permissions (system, administrators, user,
creater...) and left only Everyone with full control (at the root).

> Which OS are you using, btw?
Windows XP SP3

> Since the error occurs apparently in rename(2), it should be possible
> to reproduce it without rsync, just with mv.
No issue with mv on the same files!

> Do you run a anti-virus/anti-malware program which might interfere here?
Yes I use Symantec. No idea if it is an issue. It was not when my
disks were formatted in fat32.

> I just tried the same on W7 under UAC.  First I rsynced an older
> checkout of the Cygwin CVS repository onto the NTFS formatted USB stick,
> then I updated the CVS checkout, then I rsynced it again.  Worked fine.
Thanks for that.

I identified one file that was permanently failing to be saved had the
following permissions on my hard drive:
- Administraors: full control
- Domain Users: Read&Execute, Read
- MySelf: Modify, Read&Execute, Read, Write
- SYSTEM: full control
- Everyone: Read&Execute, Read
- Users (computer\Users): Read&Execute, Read

I added full control to my-self on the local hard drive and then rsync
worked fine. On the USB disk the remaining ".file.exe." has full
control to everyone and only this which is fine.
I then removed again the full control to my-self on the local hard
drive and rsync failed again.

Any clue?

Thanks again,
Frédéric

--
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: Cygwin does not have unicode support however FileZilla displays unicode

2010-04-16 Thread Eric
Andy wrote:
> Bash does support Unicode, but when running it in a console window you
> need to select an appropriate font in the console window defaults to
> be able to display codepoints outside your language's codepage. Lucida
> Console or Consolas, for example.

In cygwin's console window I switched it like you said but it comes out as 
rectangles "[]".
However it works great in putty.

Is there anything else I can do with cygwin's console window to show unicode 
properly?

Thanks!
Eric



--
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