installation problem: no /etc/profile

2007-02-18 Thread Mark Peloquin

I recently installed cygwin with some problems.  This is the fourth
installation of Windows where I have installed cygwin, and this has
happened with this Windows installation twice now.  I don't think it's
a fluke.  My guess is that it is only noticeable for new
installations.

I was first greeted by a shell prompt like this: 'bash-3.2$'

I notice there is no '/etc/profile', nor are there any home
directories.  Upon investigating /var/log/setup.log.full, I came
across this:

2007/02/18 01:18:51 running: C:\cygwin\bin\bash.exe -c /etc/postinstall/aalib.sh
/usr/bin/bash: /etc/postinstall/aalib.sh: /bin/sh: bad interpreter: No
such file or directory
2007/02/18 01:18:55 running: C:\cygwin\bin\bash.exe -c
/etc/postinstall/autoconf.sh
/usr/bin/bash: /etc/postinstall/autoconf.sh: No such file or directory
2007/02/18 01:18:58 running: C:\cygwin\bin\bash.exe -c
/etc/postinstall/autoconf2.1.sh
install-info: No such file or directory for gzip.exe -cd
http://www.itlabs.umn.edu/~pelo0036/cygwin/cygcheck.txt.bz2 (6 kB)
http://www.itlabs.umn.edu/~pelo0036/cygwin/setup.log.bz2 (10 kB)
http://www.itlabs.umn.edu/~pelo0036/cygwin/setup.log.full.bz2 (328 kB)

Mark

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



Re: fork vs. multithreaded CPU...

2007-02-18 Thread Christopher Layne
On Fri, Feb 16, 2007 at 10:34:15AM +0100, Corinna Vinschen wrote:
> On Feb 16 00:26, Yaakov (Cygwin Ports) wrote:
> >
> > ... and fork is losing, and it's driving me crazy.
> > 
> > On my P4 550 (3.40GHz) with 1.5.23, .24, as well as current snapshot
> > (didn't have this computer before that), I always get fork errors, such as:
> 
> I'm running Cygwin for a while on a dual core Athlon but I didn't
> have any such problem so far.

Then you must not load it up hard. I get fork: Resource temporarily unavailable
probably every day atleast 2-3 times. I have done all the registry settings for
desktop heap size, etc. etc.
Almost always when I have a lot of processes executing at once, always bash,
and when the previous two are met, it's random. Sometimes it happens, sometimes
it doesn't.

dual core Opteron [EMAIL PROTECTED]

> > ../libtool: fork: Resource temporarily unavailable
> > 
> > usually when building packages, always leading to errors in the build
> > process, due to incomplete commands being sent to gcc, etc.
> 
> What do you mean with "incomplete commands"?

libtool either sending bunk command lines to gcc as a result of the fork
failure - or more accurately libtool returning an error level and gcc
bailing out as it should.

> > Parallel make has been ruled out.  Rebase does not help.  AFAICS either
> > this is a bash issue (since configure, libtool, etc. are all bash
> > scripts), or with Cygwin itself.
> 
> And you could also rule out multiple Cygwin versions, Virus checker
> software, etc?

Here, no virus checker, no more than 1 cygwin dll.

> Did you contemplate trying to strace this?  make with strace can
> take a *bit* of time, but maybe it's possible to catch something
> interesting.
> 
> > Windows XP Media Center Edition Ver 5.1 Build 2600 Service Pack 2
> 
> Is that the version which doesn't install the nul device by default?

Don't know about his, mine is w2k3e.

$ ls -al NUL:
-rwxrwxrwx 0 Administrators SYSTEM 0 Dec 31  1969 NUL:

-cl

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



Re: problem installing cygwin+sshd

2007-02-18 Thread Thorsten Kampe
Thorsten
> Michael
> > [cannot start sshd as a service]
> > any ideas - what did I do wrong?
>
> Check the permissions from /var/log - sshd /has/ to log there. As a last
> chance I would try to run sshd manually: "sshd -D -ddd"

--cut--
$ /usr/sbin/sshd -D -ddd
debug2: load_server_config: filename /etc/sshd_config
debug2: load_server_config: done config len = 196
debug2: parse_server_config: config /etc/sshd_config len 196
debug3: /etc/sshd_config:13 setting Port 22
debug3: /etc/sshd_config:38 setting StrictModes no
debug3: /etc/sshd_config:92 setting UsePrivilegeSeparation yes
debug3: /etc/sshd_config:106 setting Subsystem sftp /usr/sbin/sftp-
server
debug1: sshd version OpenSSH_4.5p1
debug1: private host key: #0 type 0 RSA1
debug3: Not a RSA1 key file /etc/ssh_host_rsa_key.
debug1: read PEM private key done: type RSA
debug1: private host key: #1 type 1 RSA
debug3: Not a RSA1 key file /etc/ssh_host_dsa_key.
debug1: read PEM private key done: type DSA
debug1: private host key: #2 type 2 DSA
/var/empty must be owned by root and not group or world-writable.
--cut--
$ ssh localhost
ssh: connect to host localhost port 22: Connection refused
--cut--

> and "strace  /usr/sbin/sshd -D"

see attached file.

where do I have to look at in the trace-file?

thanks and best regards
michael


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



Re: problem installing cygwin+sshd

2007-02-18 Thread Thorsten Kampe
Please refrain from sending me private mail...

> Thorsten
> > Michael
> > > [cannot start sshd as a service]
> > > any ideas - what did I do wrong?
> >
> > Check the permissions from /var/log - sshd /has/ to log there. As a last
> > chance I would try to run sshd manually: "sshd -D -ddd"
> 
> --cut--
> $ /usr/sbin/sshd -D -ddd
> debug2: load_server_config: filename /etc/sshd_config
> debug2: load_server_config: done config len = 196
> debug2: parse_server_config: config /etc/sshd_config len 196
> debug3: /etc/sshd_config:13 setting Port 22
> debug3: /etc/sshd_config:38 setting StrictModes no
> debug3: /etc/sshd_config:92 setting UsePrivilegeSeparation yes
> debug3: /etc/sshd_config:106 setting Subsystem sftp /usr/sbin/sftp-
> server
> debug1: sshd version OpenSSH_4.5p1
> debug1: private host key: #0 type 0 RSA1
> debug3: Not a RSA1 key file /etc/ssh_host_rsa_key.
> debug1: read PEM private key done: type RSA
> debug1: private host key: #1 type 1 RSA
> debug3: Not a RSA1 key file /etc/ssh_host_dsa_key.
> debug1: read PEM private key done: type DSA
> debug1: private host key: #2 type 2 DSA
> /var/empty must be owned by root and not group or world-writable.
> --cut--
> $ ssh localhost
> ssh: connect to host localhost port 22: Connection refused
> --cut--
> 
> > and "strace  /usr/sbin/sshd -D"
> 
> see attached file.
> 
> where do I have to look at in the trace-file?

Nowhere. "/var/empty must be owned by root and not group or world-
writable" - that's pretty clear, isn't it?!

T.


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



Re: screen

2007-02-18 Thread Christopher Layne
On Fri, Feb 16, 2007 at 04:14:06PM -0500, Christopher Faylor wrote:
> On Fri, Feb 16, 2007 at 01:01:23PM -0500, Andrew Schulman wrote:
> >> And, just in case you're wondering if I am going to volunteer to help you
> >> track down problems - I'm not.  So, maybe anyone who wants screen should
> >> volunteer to help.
> >
> >No, that was not my intention.  I was trying to be courteous.  But that's a
> >two-way street.  Forget it, I won't bother next time.
> 
> Since you were pinging me and since (on rereading) you were consistently
> asking for help, I don't think it was a huge leap for me to surmise that
> you might be wanting my help debugging problems.  By stating my
> intentions, I wanted to make it clear that someone else needs to step
> in.
> 
> cgf

You know this kind of things just shuts people off and turns them away right?
People are trying to make progress, trying to make things better, and they're
basically being told to go away. If he could do it himself, I'm sure he would
have solved the issue by now. If he can't, perhaps he needs the help. I don't
see what's so groundbreaking about "I'm not going to be able to help you with
it now as I'm too busy, but perhaps throw the idea out there along with your
observations and see who else bites." Is that somehow worse than "Look, I don't
have the time to help you track down problems, find someone else." ?

-cl

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



Re: screen

2007-02-18 Thread Christopher Faylor
On Sun, Feb 18, 2007 at 08:29:41AM -0800, Christopher Layne wrote:
>On Fri, Feb 16, 2007 at 04:14:06PM -0500, Christopher Faylor wrote:
>> On Fri, Feb 16, 2007 at 01:01:23PM -0500, Andrew Schulman wrote:
>> >> And, just in case you're wondering if I am going to volunteer to help you
>> >> track down problems - I'm not.  So, maybe anyone who wants screen should
>> >> volunteer to help.
>> >
>> >No, that was not my intention.  I was trying to be courteous.  But that's a
>> >two-way street.  Forget it, I won't bother next time.
>> 
>> Since you were pinging me and since (on rereading) you were consistently
>> asking for help, I don't think it was a huge leap for me to surmise that
>> you might be wanting my help debugging problems.  By stating my
>> intentions, I wanted to make it clear that someone else needs to step
>> in.
>
>You know this kind of things just shuts people off and turns them away right?
>People are trying to make progress, trying to make things better, and they're
>basically being told to go away. If he could do it himself, I'm sure he would
>have solved the issue by now. If he can't, perhaps he needs the help. I don't
>see what's so groundbreaking about "I'm not going to be able to help you with
>it now as I'm too busy, but perhaps throw the idea out there along with your
>observations and see who else bites." Is that somehow worse than "Look, I don't
>have the time to help you track down problems, find someone else." ?

Moved to the talk list.

cgf

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



Re: problem installing cygwin+sshd

2007-02-18 Thread Michael

Thorston:

Please refrain from sending me private mail...

Sorry, I didn't want to offend you! - when answering, I deleted the
To: value by mistake and reenterd obviously the wrong address ...


> Thorsten
> > Michael
> > > [cannot start sshd as a service]
> > > any ideas - what did I do wrong?
> >
> > Check the permissions from /var/log - sshd /has/ to log there. As a last
> > chance I would try to run sshd manually: "sshd -D -ddd"
>
> --cut--
> $ /usr/sbin/sshd -D -ddd
> debug2: load_server_config: filename /etc/sshd_config
> debug2: load_server_config: done config len = 196
> debug2: parse_server_config: config /etc/sshd_config len 196
> debug3: /etc/sshd_config:13 setting Port 22
> debug3: /etc/sshd_config:38 setting StrictModes no
> debug3: /etc/sshd_config:92 setting UsePrivilegeSeparation yes
> debug3: /etc/sshd_config:106 setting Subsystem sftp /usr/sbin/sftp-
> server
> debug1: sshd version OpenSSH_4.5p1
> debug1: private host key: #0 type 0 RSA1
> debug3: Not a RSA1 key file /etc/ssh_host_rsa_key.
> debug1: read PEM private key done: type RSA
> debug1: private host key: #1 type 1 RSA
> debug3: Not a RSA1 key file /etc/ssh_host_dsa_key.
> debug1: read PEM private key done: type DSA
> debug1: private host key: #2 type 2 DSA
> /var/empty must be owned by root and not group or world-writable.
> --cut--
> $ ssh localhost
> ssh: connect to host localhost port 22: Connection refused
> --cut--
>
> > and "strace  /usr/sbin/sshd -D"
>
> see attached file.
>
> where do I have to look at in the trace-file?

Nowhere. "/var/empty must be owned by root and not group or world-
writable" - that's pretty clear, isn't it?!


I've already recognized this message, but as I wanted to chown to
root, I was told that there's no "root"-user in the system...

Now I "chown"ed to myself:root and now it works -> sshd is up for one
connection ("ssh localhost") and ends when closing the connection.

Afterwards I "chown"ed /var/empty/ to SYSTEM:root and again tried to
start sshd as a service, but same error-message as before -> did I
come closer to the solution, now I know, that sshd works from
commandline?

thanks for your assistance
michael

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



Cygwin and Vista - missing manifest files

2007-02-18 Thread Benoit Miller
A while ago there was a discussion (in the "Vista & coreutils" thread) 
that suggested adding an install.exe.manifest file to solve the UAC 
issues with Vista.


From a Cygwin 1.5.24-2 install, two more manifest files are needed: one 
for install-info.exe and (more importantly) one for patch.exe, otherwise 
you get a "permission denied" error when launching either of them.


The required manifest is identical to the one already provided for 
/bin/install.exe, just update the "name" field to point to the new 
executable.


If you are adding the manifest to an existing installation, you may need 
to touch the .exe files after creating the manifests as Vista caches 
this metadata.


Thanks,
Ben.

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



Re: problem installing cygwin+sshd

2007-02-18 Thread Thorsten Kampe
* Michael (Sun, 18 Feb 2007 17:49:38 +0100)
> Thorston:
> > Please refrain from sending me private mail...
> Sorry, I didn't want to offend you! - when answering, I deleted the
> To: value by mistake and reenterd obviously the wrong address ...

You didn't offend me - you just sent your email to an unappropriate 
address...

> > > /var/empty must be owned by root and not group or world-writable.
> > > --cut--
> > > $ ssh localhost
> > > ssh: connect to host localhost port 22: Connection refused
> > > --cut--
> > >
> > > > and "strace  /usr/sbin/sshd -D"
> > >
> > > see attached file.
> > >
> > > where do I have to look at in the trace-file?
> >
> > Nowhere. "/var/empty must be owned by root and not group or world-
> > writable" - that's pretty clear, isn't it?!
> 
> I've already recognized this message, but as I wanted to chown to
> root, I was told that there's no "root"-user in the system...
> 
> Now I "chown"ed to myself:root and now it works -> sshd is up for one
> connection ("ssh localhost") and ends when closing the connection.
> 
> Afterwards I "chown"ed /var/empty/ to SYSTEM:root and again tried to
> start sshd as a service, but same error-message as before -> did I
> come closer to the solution, now I know, that sshd works from
> commandline?

It says "and not group or world-writable" - that's pretty clear, isn't 
it?!


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



Re: problem installing cygwin+sshd

2007-02-18 Thread Michael

Thorsten:

> > > /var/empty must be owned by root and not group or world-writable.
> > > --cut--
> > > $ ssh localhost
> > > ssh: connect to host localhost port 22: Connection refused
> > > --cut--
> > >
> > > > and "strace  /usr/sbin/sshd -D"
> > >
> > > see attached file.
> > >
> > > where do I have to look at in the trace-file?
> >
> > Nowhere. "/var/empty must be owned by root and not group or world-
> > writable" - that's pretty clear, isn't it?!
>
> I've already recognized this message, but as I wanted to chown to
> root, I was told that there's no "root"-user in the system...
>
> Now I "chown"ed to myself:root and now it works -> sshd is up for one
> connection ("ssh localhost") and ends when closing the connection.
>
> Afterwards I "chown"ed /var/empty/ to SYSTEM:root and again tried to
> start sshd as a service, but same error-message as before -> did I
> come closer to the solution, now I know, that sshd works from
> commandline?

It says "and not group or world-writable" - that's pretty clear, isn't
it?!


I didn't mention, that I checked this too (that was the easier part,
compared to user "root" ;-)).

$ ls -ld /var/empty/
drwx--x--x+ 2 SYSTEM root 0 Feb 15 03:02 /var/empty/

thanks
michael

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



Re: problem installing cygwin+sshd

2007-02-18 Thread Daniel P. Kionka

Michael wrote:
...

> $ /usr/sbin/sshd -D -ddd

...

> /var/empty must be owned by root and not group or world-writable.

...

Nowhere. "/var/empty must be owned by root and not group or world-
writable" - that's pretty clear, isn't it?!


I've already recognized this message, but as I wanted to chown to
root, I was told that there's no "root"-user in the system...

Now I "chown"ed to myself:root and now it works -> sshd is up for one
connection ("ssh localhost") and ends when closing the connection.

Afterwards I "chown"ed /var/empty/ to SYSTEM:root and again tried to
start sshd as a service, but same error-message as before -> did I
come closer to the solution, now I know, that sshd works from
commandline?


These sound like the same steps I have gone through.  sshd asks for 
root, but it is actually SYSTEM.  This is what I ended up with on 2 
different working systems:


drwxr-xr-x+ 2 SYSTEM Administrators 0 Sep  5 15:53 /var/empty
dr-xr-xr-x+ 2 SYSTEM root 0 Jan 10 12:57 /var/empty

But these did not work for me either when I tried running it from the 
command line (instead of a service).  It had to be owned by the current 
user.  I renamed it and did a mkdir so I could continue debugging. 
Later I put the system one back after renaming the command line version 
in case I have to debug it again later, and now have:


drwxr-xr-x+  2 SYSTEM   root  0 Jan 11 18:06 empty
drwxr-xr-x+  2 VPSAdmin Users 0 Jan 12 09:54 empty.cmdline

The ownership/permissions were the problem on another system I debugged, 
but this box ended up having a totally different problem.  It had a 
program running with so many connections that Window's netstat program 
would not work anymore.  We rebooted and then sshd worked, as well as 
netstat.  The moral of the story is that if netstat isn't working, don't 
bother trying to run sshd.




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



Re: problem installing cygwin+sshd

2007-02-18 Thread Thorsten Kampe
* Michael (Sun, 18 Feb 2007 18:56:03 +0100)
> Thorsten:
> > > > > /var/empty must be owned by root and not group or world-writable.
> > > > > --cut--
> > > > > $ ssh localhost
> > > > > ssh: connect to host localhost port 22: Connection refused
> > > > > --cut--
> > > > >
> > > > > > and "strace  /usr/sbin/sshd -D"
> > > > >
> > > > > see attached file.
> > > > >
> > > > > where do I have to look at in the trace-file?
> > > >
> > > > Nowhere. "/var/empty must be owned by root and not group or world-
> > > > writable" - that's pretty clear, isn't it?!
> > >
> > > I've already recognized this message, but as I wanted to chown to
> > > root, I was told that there's no "root"-user in the system...
> > >
> > > Now I "chown"ed to myself:root and now it works -> sshd is up for one
> > > connection ("ssh localhost") and ends when closing the connection.
> > >
> > > Afterwards I "chown"ed /var/empty/ to SYSTEM:root and again tried to
> > > start sshd as a service, but same error-message as before -> did I
> > > come closer to the solution, now I know, that sshd works from
> > > commandline?
> >
> > It says "and not group or world-writable" - that's pretty clear, isn't
> > it?!
> >
> I didn't mention, that I checked this too (that was the easier part,
> compared to user "root" ;-)).
> 
> $ ls -ld /var/empty/
> drwx--x--x+ 2 SYSTEM root 0 Feb 15 03:02 /var/empty/

Try to get rid of the ACEs that cause the "+" sign at the end of the ls 
listing. The plus sign probably means "permissions that do not
comply directly with the rwx(user,group,world) schema", but I'm far from 
sure about that.

Thorsten


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



Re: problem installing cygwin+sshd

2007-02-18 Thread Michael

...
>> > $ /usr/sbin/sshd -D -ddd
...
>> > /var/empty must be owned by root and not group or world-writable.
...
>
> I've already recognized this message, but as I wanted to chown to
> root, I was told that there's no "root"-user in the system...
>
> Now I "chown"ed to myself:root and now it works -> sshd is up for one
> connection ("ssh localhost") and ends when closing the connection.
>
> Afterwards I "chown"ed /var/empty/ to SYSTEM:root and again tried to
> start sshd as a service, but same error-message as before -> did I
> come closer to the solution, now I know, that sshd works from
> commandline?

These sound like the same steps I have gone through.  sshd asks for
root, but it is actually SYSTEM.  This is what I ended up with on 2
different working systems:

drwxr-xr-x+ 2 SYSTEM Administrators 0 Sep  5 15:53 /var/empty
dr-xr-xr-x+ 2 SYSTEM root 0 Jan 10 12:57 /var/empty


ok - this prcondition should be clear now =>
chown SYSTEM:root /var/empty
chmod 755 /var/empty


But these did not work for me either when I tried running it from the
command line (instead of a service).  It had to be owned by the current
user. [...]


ok - same I found out for running sshd from commandline.


The ownership/permissions were the problem on another system I debugged,
but this box ended up having a totally different problem.  It had a
program running with so many connections that Window's netstat program
would not work anymore.  We rebooted and then sshd worked, as well as
netstat.  The moral of the story is that if netstat isn't working, don't
bother trying to run sshd.


unfortunately "netstat" *does* work on that machine (there are only 5
connections to only 2 different nodes open!) ...

michi

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



Re: problem installing cygwin+sshd

2007-02-18 Thread Thorsten Kampe
* Michael (Sun, 18 Feb 2007 18:56:03 +0100)
> > > > Nowhere. "/var/empty must be owned by root and not group or world-
> > > > writable" - that's pretty clear, isn't it?!
> > >
> > > I've already recognized this message, but as I wanted to chown to
> > > root, I was told that there's no "root"-user in the system...
> > >
> > > Now I "chown"ed to myself:root and now it works -> sshd is up for one
> > > connection ("ssh localhost") and ends when closing the connection.
> > >
> > > Afterwards I "chown"ed /var/empty/ to SYSTEM:root and again tried to
> > > start sshd as a service, but same error-message as before -> did I
> > > come closer to the solution, now I know, that sshd works from
> > > commandline?
> >
> > It says "and not group or world-writable" - that's pretty clear, isn't
> > it?!
> >
> I didn't mention, that I checked this too (that was the easier part,
> compared to user "root" ;-)).
> 
> $ ls -ld /var/empty/
> drwx--x--x+ 2 SYSTEM root 0 Feb 15 03:02 /var/empty/

...and the "root" group looks suspicious, too. Get rid of that..

Thorsten


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



Re: problem installing cygwin+sshd

2007-02-18 Thread Michael

> > > > Nowhere. "/var/empty must be owned by root and not group or world-
> > > > writable" - that's pretty clear, isn't it?!
> > >
> > > I've already recognized this message, but as I wanted to chown to
> > > root, I was told that there's no "root"-user in the system...
> > >
> > > Now I "chown"ed to myself:root and now it works -> sshd is up for one
> > > connection ("ssh localhost") and ends when closing the connection.
> > >
> > > Afterwards I "chown"ed /var/empty/ to SYSTEM:root and again tried to
> > > start sshd as a service, but same error-message as before -> did I
> > > come closer to the solution, now I know, that sshd works from
> > > commandline?
> >
> > It says "and not group or world-writable" - that's pretty clear, isn't
> > it?!
> >
> I didn't mention, that I checked this too (that was the easier part,
> compared to user "root" ;-)).
>
> $ ls -ld /var/empty/
> drwx--x--x+ 2 SYSTEM root 0 Feb 15 03:02 /var/empty/

...and the "root" group looks suspicious, too. Get rid of that..



$ mkgroup -l > /etc/group
$ ls -dl /var/empty
drwxr-xr-x+ 2 SYSTEM Administrators 0 Feb 18 20:06 /var/empty
=> done :-)


Try to get rid of the ACEs that cause the "+" sign at the end of the ls

listing.[...]

but I don't know how to get rid of the "+". What is this "+" (???)
called, so I can search for it and find out what to do?

thanks
michi

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



Re: problem installing cygwin+sshd

2007-02-18 Thread Thorsten Kampe
* Michael (Sun, 18 Feb 2007 20:19:06 +0100)
> $ ls -dl /var/empty
> drwxr-xr-x+ 2 SYSTEM Administrators 0 Feb 18 20:06 /var/empty
> => done :-)
> 
> > Try to get rid of the ACEs that cause the "+" sign at the end of the ls
> listing.[...]
> 
> but I don't know how to get rid of the "+". What is this "+" (???)
> called, so I can search for it and find out what to do?

I already wrote that: "permissions that do not comply directly with the 
rwx(user,group,world) schema". Open the ACL editor in Windows and remove 
all the settings that do not comply...

Thorsten


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



Re: problem installing cygwin+sshd

2007-02-18 Thread René Berber
Michael wrote:
[snip]
>> Try to get rid of the ACEs that cause the "+" sign at the end of the ls
> listing.[...]
> 
> but I don't know how to get rid of the "+". What is this "+" (???)
> called, so I can search for it and find out what to do?

It's not important, here's how my /var/empty looks (with sshd working fine):

$ ll /var
...
drwxr-xr-x+  2 SYSTEM  None   0 May 20  2004 empty/

It should be clear by now that you messed something pretty bad, and we haven't
found what it was from your reports, why don't you start all over again...
rename your Cygwin directory and install it again, just run the sshd config
script and don't touch anything else.
-- 
René Berber


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



Re: problem installing cygwin+sshd

2007-02-18 Thread Larry Hall (Cygwin)

On 02/18/2007, Michael wrote:


> Try to get rid of the ACEs that cause the "+" sign at the end of the ls
listing.[...]

but I don't know how to get rid of the "+". What is this "+" (???)
called, so I can search for it and find out what to do? 


Use 'getfacl' and 'setfacl'.  This will manipulate the ACL that is indicated
by the '+' at the end of the permission string displayed by 'ls'.

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

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



Re: problem installing cygwin+sshd

2007-02-18 Thread Michael Manzenreither

Michael wrote:
[snip]
>> Try to get rid of the ACEs that cause the "+" sign at the end of the ls
> listing.[...]
>
> but I don't know how to get rid of the "+". What is this "+" (???)
> called, so I can search for it and find out what to do?

It's not important, here's how my /var/empty looks (with sshd working fine):

$ ll /var
...
drwxr-xr-x+  2 SYSTEM  None   0 May 20  2004 empty/

It should be clear by now that you messed something pretty bad, and we haven't
found what it was from your reports, why don't you start all over again...
rename your Cygwin directory and install it again, just run the sshd config
script and don't touch anything else.


ok - here listed what I did (sorry for the long listing):
---cut---
01. $ cygrunsrv -R sshd
02. remove registry-keys: HK(CU|LM)->SOFTWARE->Cygnus Solutions
03. remove windows/user sshd
04. rename c:\cygwin to c:\cygwin_1
05. run http://www.cygwin.com/setup.exe from user ladmin member of
group local admins
- install from internet
- install for all users
- added packages: openssh, tcp_wrappers
06. $ mkpasswd -cl > /etc/passwd
07. $ mkgroup -l > /etc/group
08. $ ssh-host-config
- privilege separation -> yes
- install sshd as service -> yes
- CYGWIN=ntsec tty
09. $ net start sshd
The CYGWIN sshd service is starting.
The CYGWIN sshd service could not be started.

The service did not report an error.

More help is available by typing NET HELPMSG 3534.
10. $ cygrunsrv -S sshd
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
The service has not been started.
11. $ ls -l /etc/ssh*
-rwxr-x--- 1 SYSTEM Users 1418 Feb 18 21:08 /etc/ssh_config
-rw--- 1 SYSTEM Users  668 Feb 18 21:08 /etc/ssh_host_dsa_key
-rw-r--r-- 1 SYSTEM Users  611 Feb 18 21:08 /etc/ssh_host_dsa_key.pub
-rw--- 1 SYSTEM Users  984 Feb 18 21:08 /etc/ssh_host_key
-rw-r--r-- 1 SYSTEM Users  648 Feb 18 21:08 /etc/ssh_host_key.pub
-rw--- 1 SYSTEM Users 1675 Feb 18 21:08 /etc/ssh_host_rsa_key
-rw-r--r-- 1 SYSTEM Users  403 Feb 18 21:08 /etc/ssh_host_rsa_key.pub
-rw-r--r-- 1 SYSTEM Users 3039 Feb 18 21:08 /etc/sshd_config
12. $ cygcheck -f /usr/bin/cygz.dll /usr/bin/cygcrypt-0.dll
/usr/bin/cygcrypto-0.9.8.dll
crypt-1.1-1
openssl-0.9.8d-1
zlib-1.2.3-2
13. $ cygrunsrv -V -Q sshd
Service : sshd
Display name: CYGWIN sshd
Current State   : Stopped
Command : /usr/sbin/sshd -D
stdin path  : /dev/null
stdout path : /var/log/sshd.log
stderr path : /var/log/sshd.log
Environment : CYGWIN="ntsec tty"
Process Type: Own Process
Startup : Automatic
Dependencies: tcpip
Account : LocalSystem
14. $ ls -l /var
total 0
drwxrwx---+ 3 ladmin Users  0 Feb 18 21:38 cache
drwxr-xr-x+ 2 SYSTEM Administrators 0 Feb 18 21:40 empty
drwxrwx---+ 3 ladmin Users  0 Feb 18 21:38 lib
drwxrwx---+ 2 ladmin Users  0 Feb 18 21:40 log
drwxrwx---+ 2 ladmin Users  0 Feb 18 21:38 run
drwxrwx---+ 2 ladmin Users  0 Feb 18 21:38 tmp
15. $ mv /var/empty/ /var/empty_ori
16. $ mkdir /var/empty
17. $ chmod 755 /var/empty
18. $ ls -ld /var/empty
drwxr-xr-x+ 2 ladmin Users 0 Feb 18 21:50 /var/empty
19. $ /usr/sbin/sshd -D
20. $ ssh localhost date # (from 2nd cygwin-window)
[EMAIL PROTECTED]'s password:
Sun Feb 18 21:52:18 WEST 2007
---cut---

did I do anything wrong?
can I give you some more information?

thanks for yor assistance!!!
michi

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



Re: problem installing cygwin+sshd

2007-02-18 Thread Michael

Michael wrote:
[snip]
>> Try to get rid of the ACEs that cause the "+" sign at the end of the ls
> listing.[...]
>
> but I don't know how to get rid of the "+". What is this "+" (???)
> called, so I can search for it and find out what to do?

It's not important, here's how my /var/empty looks (with sshd working fine):

$ ll /var
...
drwxr-xr-x+  2 SYSTEM  None   0 May 20  2004 empty/

It should be clear by now that you messed something pretty bad, and we haven't
found what it was from your reports, why don't you start all over again...
rename your Cygwin directory and install it again, just run the sshd config
script and don't touch anything else.


ok - here listed what I did (sorry for the long listing):
---cut---
01. $ cygrunsrv -R sshd
02. remove registry-keys: HK(CU|LM)->SOFTWARE->Cygnus Solutions
03. remove windows/user sshd
04. rename c:\cygwin to c:\cygwin_1
05. run http://www.cygwin.com/setup.exe from user ladmin member of
group local admins
- install from internet
- install for all users
- added packages: openssh, tcp_wrappers
06. $ mkpasswd -cl > /etc/passwd
07. $ mkgroup -l > /etc/group
08. $ ssh-host-config
- privilege separation -> yes
- install sshd as service -> yes
- CYGWIN=ntsec tty
09. $ net start sshd
The CYGWIN sshd service is starting.
The CYGWIN sshd service could not be started.

The service did not report an error.

More help is available by typing NET HELPMSG 3534.
10. $ cygrunsrv -S sshd
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
The service has not been started.
11. $ ls -l /etc/ssh*
-rwxr-x--- 1 SYSTEM Users 1418 Feb 18 21:08 /etc/ssh_config
-rw--- 1 SYSTEM Users  668 Feb 18 21:08 /etc/ssh_host_dsa_key
-rw-r--r-- 1 SYSTEM Users  611 Feb 18 21:08 /etc/ssh_host_dsa_key.pub
-rw--- 1 SYSTEM Users  984 Feb 18 21:08 /etc/ssh_host_key
-rw-r--r-- 1 SYSTEM Users  648 Feb 18 21:08 /etc/ssh_host_key.pub
-rw--- 1 SYSTEM Users 1675 Feb 18 21:08 /etc/ssh_host_rsa_key
-rw-r--r-- 1 SYSTEM Users  403 Feb 18 21:08 /etc/ssh_host_rsa_key.pub
-rw-r--r-- 1 SYSTEM Users 3039 Feb 18 21:08 /etc/sshd_config
12. $ cygcheck -f /usr/bin/cygz.dll /usr/bin/cygcrypt-0.dll
/usr/bin/cygcrypto-0.9.8.dll
crypt-1.1-1
openssl-0.9.8d-1
zlib-1.2.3-2
13. $ cygrunsrv -V -Q sshd
Service : sshd
Display name: CYGWIN sshd
Current State   : Stopped
Command : /usr/sbin/sshd -D
stdin path  : /dev/null
stdout path : /var/log/sshd.log
stderr path : /var/log/sshd.log
Environment : CYGWIN="ntsec tty"
Process Type: Own Process
Startup : Automatic
Dependencies: tcpip
Account : LocalSystem
14. $ ls -l /var
total 0
drwxrwx---+ 3 ladmin Users  0 Feb 18 21:38 cache
drwxr-xr-x+ 2 SYSTEM Administrators 0 Feb 18 21:40 empty
drwxrwx---+ 3 ladmin Users  0 Feb 18 21:38 lib
drwxrwx---+ 2 ladmin Users  0 Feb 18 21:40 log
drwxrwx---+ 2 ladmin Users  0 Feb 18 21:38 run
drwxrwx---+ 2 ladmin Users  0 Feb 18 21:38 tmp
15. $ mv /var/empty/ /var/empty_ori
16. $ mkdir /var/empty
17. $ chmod 755 /var/empty
18. $ ls -ld /var/empty
drwxr-xr-x+ 2 ladmin Users 0 Feb 18 21:50 /var/empty
19. $ /usr/sbin/sshd -D
20. $ ssh localhost date # (from 2nd cygwin-window)
[EMAIL PROTECTED]'s password:
Sun Feb 18 21:52:18 WEST 2007
---cut---

did I do anything wrong?
can I give you some more information?

thanks for yor assistance!!!
michi

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



Re: problem installing cygwin+sshd

2007-02-18 Thread René Berber
Michael Manzenreither wrote:

> ok - here listed what I did (sorry for the long listing):
> ---cut---
> 01. $ cygrunsrv -R sshd
> 02. remove registry-keys: HK(CU|LM)->SOFTWARE->Cygnus Solutions
> 03. remove windows/user sshd
> 04. rename c:\cygwin to c:\cygwin_1
> 05. run http://www.cygwin.com/setup.exe from user ladmin member of
> group local admins
> - install from internet
> - install for all users
> - added packages: openssh, tcp_wrappers
> 06. $ mkpasswd -cl > /etc/passwd
> 07. $ mkgroup -l > /etc/group
> 08. $ ssh-host-config
> - privilege separation -> yes
> - install sshd as service -> yes
> - CYGWIN=ntsec tty

Don't add tty, use only ntsec.

Everything else looks fine...

[snip]
> 19. $ /usr/sbin/sshd -D
> 20. $ ssh localhost date # (from 2nd cygwin-window)
> [EMAIL PROTECTED]'s password:
> Sun Feb 18 21:52:18 WEST 2007
> ---cut---

What happened?  Did you login or not?  It looks like you did.
-- 
René Berber


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



[ANNOUNCEMENT] Updated: proj-4.5.0a-1, libproj-devel-4.5.0a-1, libproj0-4.5.0a-1

2007-02-18 Thread Charles Wilson
The PROJ Cartographic Projections library (and utilities) originally 
written by Gerald Evenden then of the USGS.  It is used by libgeotiff, 
among other things, for manipulating map and coordinate system data. 
This is a feature enhancement update.


Changes (since 4.4.8-1)

o update to 4.5.0 (actually, cvs checkout 2007-Feb-18)
o no longer requires clients to use --enable-runtime-pseudo-reloc
o geod functions added to the library
  http://bugzilla.remotesensing.org/show_bug.cgi?id=1378
o moderate internal source code reorganization
o switch to cygport build framework

--
Charles Wilson
proj volunteer maintainer for cygwin

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:

[EMAIL PROTECTED]

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 the above URL.

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



Re: Lost support for baud rate of 230400 after minor Cygwin upgrade

2007-02-18 Thread David le Comte

Thank you for your response Corinna.

When I did my upgrade to include cron, I just upgraded the "admin" 
section.  I came in
to work on the weekend, and did a full upgrade and everything is back to 
normal.

I must have got something out of whack with something else by only doing a
partial upgrade?

My reference to a baud rate of 25 was a mistake, and I apologise for the
consequent confusion, I should have written 256000 bps.

I noted that this 256000 bps rate was included in termios.h and that 
cfsetspeed
did not complain to this rate.  tcsetattr(), as I recall, may have 
complained, but I think
I assumed this was because the serial port driver for my USB connected 
serial

port did not support that rate.

Part of my termios.h file (at the time)
.
#define B230400  0x01004
#define B256000  0x01005
...

My USB serial port card can support 9216000 bps, and all power of 2 
sub-multiples
to 115200, then the "usual suspects" below that.  Is this list a subset 
of your new list of
supported baudrates?  When might I expect (roughly) that this new 
release might

happen.  If I can help in some way, please let me know.

I am very appreciative of the work that you and the others are doing, by 
the way.


best regards,

David le Comte

[BTW, I was very impressed at how easy it was to get cron up and working -
though I do have a question: /ect/rc does not appear to be automatically
invoked; is that possible?  What is the best way to ensure that cron is
started automatically - maybe add it to the Windows list of Services?]

Corinna Vinschen wrote:

On Feb 16 10:27, David le Comte wrote:
  

Two days ago, I upgraded my Cygwin to extend my "admin" components so that
I could use cron.  When I did this I found that a program I had previously
written to set a baudrate on a serial port to 230400bps is now failing, 
whereas

before it was OK.  Note that using stty -F /dev/comX where X is the
"Comm port number" still works, ie it can still set the baud rate to 230400
(or even 25).

Here is my C code:
  /if ((cfsetispeed(&t,local_rate) != -1) && 
(cfsetospeed(&t,local_rate) != -1))

   {
 if (tcsetattr(rtnval,TCSANOW,&t) == -1)
 {
   rtnval = -1;
 fprintf(stderr,"tcsetattr() could not handle the selected baud 
rate.\n");

   }
   }
   else
   {
 rtnval = -1;
 fprintf(stderr,"cfsetispeed() or cfsetopseed() couldnt handle the 
selecetd baud rate.\n");

   }
 }
/Prior to the day before yesterday, the cfsetispeed() and cfsetospeed() 
and tcsetattr() calls

all worked, now tcsetattr() is returning -1 on any baud rate above 115200.



This is suspect.  If stty works but your application doesn't, even
though they use basically the same interface...

Up to 1.5.24, the only baudrate supported above B115200 is B230400 btw.

  
In an earlier posting, it was noted that whilst Windows had informal 
support for
_any_ baudrate above 115200, Cygwin did not.  It was noted that for 
baudrates

above 115200, Windows XP would pass (via SetCommState()?) the actual
(long) value of the baudrate, to the vendor's driver, which would then 
either
handle it (or not).  This was in contrast to 115200 or lower baud rates, 
where it

would pass a number "#defined" (In the form SBR_nn) in an include file.



CBR_, but they are just defines for the same value, e.g.

  #define CBR_9600 9600

so actually there's no difference between using a number and a define.

  

Now, at the time, I found out by experimentation, and from what I found
in my termios.h file, that Cygwin did support 230400 and 25 bps.
I decided that, whilst I would have liked to go as high as 9216000 bps,
that I could live with 230400.  Now, though, that has been lost.



25 is not supported and never was.  As I wrote above, B115200 and
B230400 are supported for now.  The next Cygwin version will support
baudrates up to 300 (7 digits), which includes 256000, but 25
is not amongst them.  It's not a baudrate defined on Linux either.

What you could do is to create a simple, as-short-as-possible,
self-contained testcase in plain C, which builds OOTB and which allows
to reproduce the problem.


Corinna

  



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



Re: problem installing cygwin+sshd

2007-02-18 Thread Michael

> ok - here listed what I did (sorry for the long listing):
> ---cut---
> 01. $ cygrunsrv -R sshd
> 02. remove registry-keys: HK(CU|LM)->SOFTWARE->Cygnus Solutions
> 03. remove windows/user sshd
> 04. rename c:\cygwin to c:\cygwin_1
> 05. run http://www.cygwin.com/setup.exe from user ladmin member of
> group local admins
> - install from internet
> - install for all users
> - added packages: openssh, tcp_wrappers
> 06. $ mkpasswd -cl > /etc/passwd
> 07. $ mkgroup -l > /etc/group
> 08. $ ssh-host-config
> - privilege separation -> yes
> - install sshd as service -> yes
> - CYGWIN=ntsec tty

Don't add tty, use only ntsec.


ok, I changed my Windows-env-variable CYGWIN to "ntsec" and
$ cygrunsrv  -R sshd
$ ssh-host-config
- always -> yes
- CYGWIN=ntsec


Everything else looks fine...

[snip]
> 19. $ /usr/sbin/sshd -D
> 20. $ ssh localhost date # (from 2nd cygwin-window)
> [EMAIL PROTECTED]'s password:
> Sun Feb 18 21:52:18 WEST 2007
> ---cut---

What happened?  Did you login or not?  It looks like you did.


yes, I was able to login successfully and executed the "date"-command
"remotely".

so what is wrong with my installation (fyi - I did the same steps 2
days ago on a similar machine -> same error ...)

michael

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



Re: problem installing cygwin+sshd

2007-02-18 Thread Larry Hall (Cygwin)

Michael wrote:

> ok - here listed what I did (sorry for the long listing):
> ---cut---
> 01. $ cygrunsrv -R sshd
> 02. remove registry-keys: HK(CU|LM)->SOFTWARE->Cygnus Solutions
> 03. remove windows/user sshd
> 04. rename c:\cygwin to c:\cygwin_1
> 05. run http://www.cygwin.com/setup.exe from user ladmin member of
> group local admins
> - install from internet
> - install for all users
> - added packages: openssh, tcp_wrappers
> 06. $ mkpasswd -cl > /etc/passwd
> 07. $ mkgroup -l > /etc/group
> 08. $ ssh-host-config
> - privilege separation -> yes
> - install sshd as service -> yes
> - CYGWIN=ntsec tty

Don't add tty, use only ntsec.


ok, I changed my Windows-env-variable CYGWIN to "ntsec" and
$ cygrunsrv  -R sshd
$ ssh-host-config
- always -> yes
- CYGWIN=ntsec


Everything else looks fine...

[snip]
> 19. $ /usr/sbin/sshd -D
> 20. $ ssh localhost date # (from 2nd cygwin-window)
> [EMAIL PROTECTED]'s password:
> Sun Feb 18 21:52:18 WEST 2007
> ---cut---

What happened?  Did you login or not?  It looks like you did.


yes, I was able to login successfully and executed the "date"-command
"remotely".

so what is wrong with my installation (fyi - I did the same steps 2
days ago on a similar machine -> same error ...)



Hm.  What exactly is the point to showing us a sequence of steps that
results in a working install on one machine rather than the details of
the failure of these steps on another?  Perhaps the point of this merry
chase has been lost on me through this protracted thread.  Anyway, if
you're suggesting that the above steps do not provide a running 'sshd'
on some other system, please try running it _on that system_ as debug.
That should tell you what 'sshd' has a problem with.  If there's no
issue there, check the Windows event log.  If you can't interpret the
feedback you're getting from this sleuthing, please send information
about your process, errors, configuration, setup, etc., to this list
and hopefully someone will be able to spot the issue.



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

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



Re: problem installing cygwin+sshd

2007-02-18 Thread René Berber
Larry Hall (Cygwin) wrote:
[snip]
> Hm.  What exactly is the point to showing us a sequence of steps that
> results in a working install on one machine rather than the details of
> the failure of these steps on another?

It did not result in a working install, that is his point.  It works when sshd
is started manually but not as a service.
-- 
René Berber


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



Re: problem installing cygwin+sshd

2007-02-18 Thread Larry Hall (Cygwin)

René Berber wrote:

Larry Hall (Cygwin) wrote:
[snip]

Hm.  What exactly is the point to showing us a sequence of steps that
results in a working install on one machine rather than the details of
the failure of these steps on another?


It did not result in a working install, that is his point.  It works when sshd
is started manually but not as a service.


Has Michael tried running a debug version with a SYSTEM-owned shell to see
why running as SYSTEM is unhappy?  My WAG is that he still has a file out
there that doesn't have the proper permissions for SYSTEM.  It would be
helpful to address this issue directly.

For ways to open a SYSTEM-owned shell, see the email archives.

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

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



Re: problem installing cygwin+sshd

2007-02-18 Thread René Berber
Larry Hall (Cygwin) wrote:

> René Berber wrote:
>> Larry Hall (Cygwin) wrote:
>> [snip]
>>> Hm.  What exactly is the point to showing us a sequence of steps that
>>> results in a working install on one machine rather than the details of
>>> the failure of these steps on another?
>>
>> It did not result in a working install, that is his point.  It works
>> when sshd
>> is started manually but not as a service.
> 
> Has Michael tried running a debug version with a SYSTEM-owned shell to see
> why running as SYSTEM is unhappy?

No.

> My WAG is that he still has a file out
> there that doesn't have the proper permissions for SYSTEM.  It would be
> helpful to address this issue directly.

That was the point of testing with a complete re-install... which had the same
result.

> For ways to open a SYSTEM-owned shell, see the email archives.

Hint: A Windows shortcut with the following properties

C:\cygwin\bin\bash.exe -c "at $(date +%H):$(($(date +%M) + 1)) /interactive
'c:\cygwin\bin\bash.exe' --login -i; secs=$((60 - $(date +%S))); while [ $secs
-ne 0 ]; do echo -ne 'Please wait '$secs' seconds for the shell \r'; sleep 1;
secs=$(($secs - 1)); done"

and don't forget to return /var/empty to its original state before doing any
more testing.
-- 
René Berber


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



cron run task can not see samba mounts.

2007-02-18 Thread Daksa

I have a cronjob setup so that I can backup several files from the
windows local fs to folders on one of my samba shares which is mounted
on my windows machine. I setup cron as a windows service using the
following as a guide
http://www.cygwin.com/ml/cygwin/2002-01/msg01940.html. The cronjob
worked for a while. I can't say for sure when it stopped working but I
first noticed it somewhere around when I changed the IP of my samba
server. The cronjob currently can not see  the samba share. I have the
cronjob setup as a shell script, which I've added diagnostics to to
try and figure out what is wrong. I have rebooted my windows machine
several times to see if that helps any, it has not. The following is
the current iteration of the shell script:

#!/usr/bin/bash

echo "" >> /home/Mike/rsync.log
date >> /home/Mike/rsync.log
whoami >> /home/Mike/rsync.log 2>&1
env >> /home/Mike/rsync.log 2>&1
mkdir /mnt >> /home/Mike/rsync.log 2>&1
mkdir /mnt/z >> /home/Mike/rsync.log 2>&1
mount z: /mnt/z >> /home/Mike/rsync.log 2>&1
df >> /home/Mike/rsync.log 2>&1
nice -19 rsync -au /cygdrive/c/Documents\ and\ Settings/Mike/
/mnt/z/backup/c/Documents\ and\ Settings/Mike/ >> /home/Mike/rsync.log
2>&1
nice -19 rsync -au /cygdrive/g/Photos/ /mnt/z/backup/g/Photos/ >>
/home/Mike/rsync.log 2>&1
nice -19 rsync -au /cygdrive/g/Temp/ /mnt/z/backup/g/Temp/ >>
/home/Mike/rsync.log 2>&1
nice -19 rsync -au /cygdrive/g/Desktop\ Extension/
/mnt/z/backup/g/Desktop\ Extension/ >> /home/Mike/rsync.log 2>&1
umount /mnt/z

Below is the output when run from cron as the following crontab entry:

1-59 * * * * nohup /home/Mike/rsync.sh &

Sun Feb 18 18:55:02 EST 2007
Mike
ALLUSERSPROFILE=C:\Documents and Settings\All Users
CLASSPATH="C:\Program Files\Java\j2re1.4.2_01\lib\ext\QTJava.zip"
COMMONPROGRAMFILES=C:\Program Files\Common Files
COMPUTERNAME=ZWEI
COMSPEC=C:\WINDOWS\system32\cmd.exe
CYGWIN=ntsec
DEFAULT_CA_NR=CA6
HOME=/home/Mike
HOMEDRIVE=F:
HOMEPATH=\cygwin\home\Mike
LOGNAME=Mike
LOGONSERVER=\\ZWEI
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
PATH=/imagemagick-6.0.0-q16:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Program
Files/Common Files/Adaptec Shared/System:/cygdrive/f/
Program Files/Executive Software/Diskeeper/:/cygdrive/c/Program
Files/Common Files/Teleca Shared:/cygdrive/c/Program Files/Common
Files/Roxio Shared/DLLShared:/bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 15 Model 5 Stepping 8, AuthenticAMD
PROCESSOR_LEVEL=15
PROCESSOR_REVISION=0508
PROGRAMFILES=C:\Program Files
PWD=/home/Mike
QTJAVA="C:\Program Files\Java\j2re1.4.2_01\lib\ext\QTJava.zip"
SHELL=/bin/sh
SHLVL=1
SYSTEMDRIVE=C:
SYSTEMROOT=C:\WINDOWS
TEMP=/cygdrive/c/WINDOWS/TEMP
TERM=cygwin
TMP=/cygdrive/c/WINDOWS/TEMP
TZ=EST5EDT4,M4.1.0/2,M10.5.0/2
USERDOMAIN=ZWEI
USERNAME=Mike
USERPROFILE=C:\Documents and Settings\Mike
WINDIR=C:\WINDOWS
_=/bin/env
mkdir: cannot create directory `/mnt': File exists
mkdir: cannot create directory `/mnt/z': No such file or directory
mount: /mnt/z: Device or resource busy
Filesystem   1K-blocks  Used Available Use% Mounted on
F:\Program Files\NX Client for Windows\usr\X11R6\lib\X11\fonts
103635280  93394188  10241092  91% /mnt/NX/fonts
C:\Documents and Settings\Mike\.nx\tmp
 13582924  10920904   2662020  81% /tmp
F:\Program Files\NX Client for Windows
103635280  93394188  10241092  91% /usr/NX
F:\cygwin\usr\X11R6\lib\X11\fonts
103635280  93394188  10241092  91% /usr/X11R6/lib/X11/fonts
F:\cygwin\bin103635280  93394188  10241092  91% /usr/bin
F:\cygwin\lib103635280  93394188  10241092  91% /usr/lib
F:\cygwin103635280  93394188  10241092  91% /
df: `/mnt/z': No such file or directory
c:13582924  10920904   2662020  81% /cygdrive/c
f:   103635280  93394188  10241092  91% /cygdrive/f
g:   117218240  49112440  68105800  42% /cygdrive/g
h: 3835684   3835684 0 100% /cygdrive/h
rsync: mkdir "/mnt/z/backup/c/Documents and Settings/Mike" failed: No
such file or directory (2)
rsync error: error in file IO (code 11) at
/home/lapo/packaging/tmp/rsync-2.6.3/main.c(381)
rsync: connection unexpectedly closed (8 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at
/home/lapo/packaging/tmp/rsync-2.6.3/io.c(359)
rsync: mkdir "/mnt/z/backup/g/Photos" failed: No such file or directory (2)
rsync error: error in file IO (code 11) at
/home/lapo/packaging/tmp/rsync-2.6.3/main.c(381)
rsync: connection unexpectedly closed (8 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at
/home/lapo/packaging/tmp/rsync-2.6.3/io.c(359)
rsync: mkdir "/mnt/z/backup/g/Temp" failed: No such file or directory (2)
rsync error: error in file IO (code 11) at
/home/lapo/packaging/tmp/rsync-2.6.3/main

Re: cron run task can not see samba mounts.

2007-02-18 Thread Larry Hall (Cygwin)

Daksa wrote:




As you can see, when I run the command manually from a xcygwin xterm
the script has no issues seeing z: mounted at /mnt/z. No such luck
when the script is run from cron. I notice some subtle differences in
the env but I can't explain why the samba share would not appear from
the cron...



Read the FAQ entry:



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

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



[ANNOUNCEMENT] Updated: proj-4.5.0a-2, libproj-devel-4.5.0a-2, libproj0-4.5.0a-2

2007-02-18 Thread Charles Wilson
The PROJ Cartographic Projections library (and utilities) originally 
written by Gerald Evenden then of the USGS.  It is used by libgeotiff, 
among other things, for manipulating map and coordinate system data. 
This is a feature enhancement update.


Changes (since 4.5.0a-1, now withdrawm)

o Brown paper bag: fix packaging bug wherein devel files were in the 
libproj0 package, and the DLL was in the libproj-devel package.  Oops.


Changes (since 4.4.8-1)

o update to 4.5.0 (actually, cvs checkout 2007-Feb-18)
o no longer requires clients to use --enable-runtime-pseudo-reloc
o geod functions added to the library
  http://bugzilla.remotesensing.org/show_bug.cgi?id=1378
o moderate internal source code reorganization
o switch to cygport build framework

--
Charles Wilson
proj volunteer maintainer for cygwin

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:

[EMAIL PROTECTED]

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 the above URL.

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



[ANNOUNCEMENT] Updated: libgeotiff-1.2.3a-1, libgeotiff-devel-1.2.3a-1, libgeotiff1-1.2.3a-1

2007-02-18 Thread Charles Wilson
GeoTIFF represents an effort by over 160 different remote sensing, GIS, 
cartographic, and surveying related companies and organizations to 
establish a TIFF based interchange format for georeferenced raster 
imagery.  All code within libgeotiff is either public domain, or 
licensed under X style terms.  This is a routine version update.


Changes (since 1.2.2-1)
o updated to 1.2.3 (CVS: 2007-02-18) version
o internal code reorganization, enabling...
o added support for automake/libtool
o switch to cygport build framework

--
Charles Wilson
libgeotiff volunteer maintainer for cygwin

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:

[EMAIL PROTECTED]

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 the above URL.

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



Re: FW: Re: [EMAIL PROTECTED]: ***MEMORY-ERROR***: emacs[5172]: GSlice: failed

2007-02-18 Thread Jan Djärv

Christopher Faylor wrote:


If someone is positing that one of several functions possibly isn't
working in cygwin why not report exactly which function that would be?
I.e., a little more work than reposting speculation would be
appreciated.


I did that comment, it is not speculation.  I currently have no W32 machine, 
hence no cygwin at all.  I don't know how the original poster configured Gtk+, 
I don't know which version of cygwin he/she has, I don't know which version of 
Gtk+ he/she has.  I only tried to find out if Emacs could fix this somehow, 
which it can't.  If the original poster ([EMAIL PROTECTED]) can send in 
his/hers config.h from the Gtk+ configuration, we can figure out what function 
we are talking about.


Jan D.



cgf


GSlice is a memory handling function in Gtk+ (Glib).  It tries to
allocate an aligned block of memory using posix_memalign, memalign or
valloc.  I don't know which of these three is used on cygwin, but
apparently cygwin does not have a correct implementation.  I'd say it
is either a cygwin problem, or a glib problem.  The allocation is done
when Emacs tries to create a widget and is done within the Gtk+ liby.
There is nothing Emacs can do to fix this.  It must be done in cygwin
(by implemeting whatever function is used correctly) or by glib (by
recovering better from errors like this).



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



Setting up environment variables and paths for mySQL

2007-02-18 Thread robert_neville310
I am new to cygwin and need some assistance setting up environment
variables and paths. My main goal is to use various mysql commands
located in xamp\mysql\bin (like mysqldump and mysql). I could copy
them to /cygwin/bin/, but it would create duplicate files.

I would like to sync my production site with my development site on a
Windows XP machine on the command line. I am familiar with some unix
commands, yet do know how to set up my environment. The shell gives me
the following output.

bash: mysql.exe: command not found

This message appears even in the in /cygdrive/d/xampp/mysql/bin. 


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



Re: FW: Re: [EMAIL PROTECTED]: ***MEMORY-ERROR***: emacs[5172]: GSlice: failed

2007-02-18 Thread Christopher Faylor
On Mon, Feb 19, 2007 at 08:26:36AM +0100, Jan Dj??rv wrote:
>Christopher Faylor wrote:
>>If someone is positing that one of several functions possibly isn't
>>working in cygwin why not report exactly which function that would be?
>>I.e., a little more work than reposting speculation would be
>>appreciated.
>
>I did that comment, it is not speculation.  I currently have no W32
>machine, hence no cygwin at all.

So if you have no way to verify anything then it sounds like it would be
speculation by definition.  Speculation isn't a bad word but speculating
doesn't actually do any good until someone can confirm the speculation.
Since I doubt that anyone here is going to download emacs to satisfy a
speculation that cygwin's API is broken, we obviously need more details
from people who care about this.

i.e.:

>I don't know how the original poster configured Gtk+, I don't know
>which version of cygwin he/she has, I don't know which version of Gtk+
>he/she has.  I only tried to find out if Emacs could fix this somehow,
>which it can't.  If the original poster ([EMAIL PROTECTED]) can
>send in his/hers config.h from the Gtk+ configuration, we can figure
>out what function we are talking about.

So, basically you're saying "a little more work" is required.

cgf

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