delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/03/02/19:35:07

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4B8DAEAA.8060605@wesbarris.com>
Date: Wed, 3 Mar 2010 10:34:50 +1000
From: Wes Barris <wesb AT wesbarris DOT com>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: How to properly set up /etc/passwd and /etc/group
References: <4B8B4B2E DOT 1040506 AT wesbarris DOT com> <4B8C1AF8 DOT 7010701 AT gmail DOT com> <4B8C48EE DOT 5040006 AT wesbarris DOT com> <4B8DB0C7 DOT 2000403 AT gmail DOT com>
In-Reply-To: <4B8DB0C7.2000403@gmail.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

Dave Korn wrote:
> On 01/03/2010 23:08, Wes Barris wrote:
>> Dave Korn wrote:
>>> On 01/03/2010 05:05, Wes Barris wrote:
>>>
>>>> What I normally end up doing is to list the directory with the '-n'
>>>> option that shows me the uid and gid information (in this case
>>>> both are 4294967295.  I manually edit the /etc/passwd and /etc/group
>>>> files accordingly so that my directory listing looks like this:
>>>>
>>>> drwxrwxrwt+ 1 wes     admin   0 2010-01-10 17:13 Projects
>>>   That suggests you set your uid and gid to 4294967295, aka -1, aka
>>> 'nobody';
>>> that's probably not a good thing.
>> Hi Dave,
>>
>> I changed my uid an gid in my passwd file to 4294967295 because that
>> is what ls -ln showed.  If that is not a good thing to do what is
>> the right thing to do?
> 
>   Hi Wes,
> 
>     The right thing to do is to leave your uid/gid in the way that mkpasswd
> and mkgrp choose, because that gives the cygwin dll the information it needs
> to link them back to your actual user account in the windows OS permissions.
> The other right thing to do is to then figure out what's going wrong with your
> W: drive, and why the perms on it are wrong.  Is this some kind of network
> drive, by any chance?

My W: drive is a mapped network drive.  However, it is mapped to a
share coming from the same physical computer.  This drive contains
all of my data including a folder that I wish to use as my home
directory (W: is mapped to //mycomputer/share/home).

The contents of this drive was copied from my previous computer
on which I used the same username.  The file ownerships appear
to be ok when viewed though the Windows Explorer security tab.
I can create and delete files via Windows Explorer so the permissions
appear to be ok.  However, cygwin does not recognize the same files
as being owned by me.
-- 
Wes Barris
--------------------------------------------------------------------
Today's fortune: Memory should be the starting point of the present.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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