delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/02/11:58:07

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
From: "Mike Maxwell" <maxwell AT ldc DOT upenn DOT edu>
Subject: no longer administrator, can't mkdir /foo
Date: Thu, 2 Oct 2003 11:57:53 -0400
Lines: 56
Message-ID: <blhhu1$51u$1@sea.gmane.org>
X-Complaints-To: usenet AT sea DOT gmane DOT org
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165

For security reasons, I am no longer an administrator on my Win2k machine.
(No, I didn't mess up, there's an issue with passwords or something--a
recent break-in.)

The upshot is that under CygWin, I can't do a mkdir in the / dir (i.e.
/cygdrive/c/cygwin).
  $ mkdir foo
  mkdir: cannot create directory `foo': No such file or directory

Oddly, a side effect of that seems to be that cygwin no longer sees /tmp;
bash says:

    bash.exe: warning: could not find /tmp, please create!

ls / shows it, but ls /tmp does not:

  $ ls /
  bin         cygwin.ico  home  pkg        setup.log       tmp  var
  cygwin.bat  etc         lib   setup.exe  setup.log.full  usr
  $ ls /tmp
  ls: /tmp: No such file or directory

I can create a directory in / (i.e. c:/cygwin) from MsWindows, but again,
Cygwin doesn't see it:

  $ cmd
  Microsoft Windows 2000 [Version 5.00.2195]
  (C) Copyright 1985-2000 Microsoft Corp.

  C:\cygwin>mkdir tmp

  C:\cygwin>exit

  $ ls /tmp
  ls: /tmp: No such file or directory

Possibly related to all this is the fact that my Windows username has
changed.  So Cygwin doesn't seem to know where my (new) ~ is, i.e. it
reports ~ as the local drive's root directory:

  $ cd ~

  $ pwd
  /cygdrive/c

I tried re-naming my old /home/<OldUsername> directory to
/home/<NewUsername>, but that doesn't seem to be sufficient.

Short of re-installing CygWin, is there a fix to all this mess?

-- 
    Mike Maxwell
    Linguistic Data Consortium
    NomaxwellSpam at ldc dot upenn dot edu




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