This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [1.7] Editing in /etc


>> Looks like it's related to some issue reading stdin... I executed vim
>> in debug mode ('vim -D passwd') and got the following:
>
> Fixed... ?I 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 it?

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

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]