1.7.7: Win7 SSHD, chown bad file descriptor
Tue Nov 16 15:57:00 GMT 2010
On Nov 12 21:20, Jeff Odegard wrote:
> Today I installed Cygwin 1.7.7 on Windows 7 Enterprise. OpenSSH
> version is OpenSSH_5.6p1, OpenSSL 0.9.8o 01 Jun 2010
> With admin privileges, I set up sshd as a service using
> ssh-host-config, and said yes to all questions except I kept the
> cyg_server username.
> The service started fine, then I tried to ssh to the system, entered
> user/pass, and was immediately disconnected. The windows
> application log had the following error:
> sshd: PID 728: fatal: chown(/dev/tty0, 1000, 1002) failed: Bad
> file descriptor
> $ ls -la /dev/tty0
> crw------- 1 SYSTEM Administrators 136, 0 2010-11-12 14:41 /dev/tty0
> (I noticed on older Cygwins on XP this is crw-rw-rw- Can I
> change this? Will it stay permanent on reboot? This looks like a
> security issue, having a tty world read/writable.)
This is just the default ls output for ttys which currently don't exist.
As soon as a tty starts to exist, the permissions shown in ls output
will reflect the actual owner and permissions. You only can change the
perms when the tty exists and you have sufficent privileges.
Having said that, this problem looks vaguely similar to the one
reported in http://cygwin.com/ml/cygwin/2010-11/msg00097.html.
Needless to say that I can't reproduce it either, just like Ken's
I'm really puzzled thinking of something which could trigger that
effect. Maybe it's some kind of BLODA problem which affects setting
permissions on pipes?!?
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin