delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/03/02/08:37:08

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <2bf229d30902280210h7e39865bw7ff889c879c9f081@mail.gmail.com>
References: <2bf229d30902271645u74a7beb3n64b3312e2889e30b AT mail DOT gmail DOT com> <2bf229d30902271853w1f4f8da5w5728fa179e2bdf30 AT mail DOT gmail DOT com> <2bf229d30902280210h7e39865bw7ff889c879c9f081 AT mail DOT gmail DOT com>
Date: Mon, 2 Mar 2009 08:36:50 -0500
Message-ID: <2bf229d30903020536h632e001dg6e1252d359993548@mail.gmail.com>
Subject: Re: [1.7] Editing in /etc
From: Chris Sutcliffe <ir0nh34d AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

>> Looks like it's related to some issue reading stdin... I executed vim
>> in debug mode ('vim -D passwd') and got the following:
>
> Fixed... =A0I messed up the permissions in my /dev directory.

Perhaps I spoke to soon...  I'm still having the issue, this time with
a domain based user.

I executed 'mkpasswd -l -c > /etc/passwd' which again acted as
expected, and the /etc/passwd file was created.  I went to edit the
file with 'vim -D /etc/passwd' to change the users' default group and
vim again displayed the message about an error opening input.

Looking in /dev I have:

drwxrwxrwt+ 1 ironhead Users  0 Dec  5 08:22 shm/
drwxrwxrwt+ 1 ironhead Users  0 Dec  5 08:22 mqueue/
lrwxrwxrwx  1 ironhead Users 15 Dec  5 08:22 stdin -> /proc/self/fd/0
lrwxrwxrwx  1 ironhead Users 15 Dec  5 08:22 stdout -> /proc/self/fd/1
lrwxrwxrwx  1 ironhead Users 15 Dec  5 08:22 stderr -> /proc/self/fd/2
lrwxrwxrwx  1 ironhead Users 13 Dec  5 08:22 fd -> /proc/self/fd/

(note that the domain user ID is 'csutclif' and 'ironhead' is the
local user ID that was giving me problems before).

Further checking on stdin reveals:

$ ls -ltr /proc/self/fd/0
lrwxrwxrwx 1 csutclif Users 0 Nov 30  2006 /proc/self/fd/0 -> /dev/tty0

however, there is no /dev/tty0.  Should there be?  If so, how do I create i=
t?

I'm at a loss here, could anybody hazard an idea as to what could be
happening, or how I could further debug the issue?

Thanx!

Chris

--=20
Chris Sutcliffe
http://emergedesktop.org

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019