delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/08/15/18:49:17

X-Spam-Check-By: sourceware.org
Message-ID: <44E23BCB.6040804@cygwin.com>
Date: Tue, 15 Aug 2006 17:25:31 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20060112 Fedora/1.5-1.fc4.remi Thunderbird/1.5 Mnenhy/0.7.4.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Permissions problems after domain change
References: <ebt34a$ods$1 AT sea DOT gmane DOT org> <44E212E9 DOT 9060604 AT cygwin DOT com> <ebtbdp$lm1$1 AT sea DOT gmane DOT org> <ebtc2b$nli$1 AT sea DOT gmane DOT org>
In-Reply-To: <ebtc2b$nli$1@sea.gmane.org>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

mwoehlke wrote:
> Chuck wrote:
>> Larry Hall (Cygwin) wrote:
>>> Chuck wrote:
>>>> My winXP ID was recently moved from one domain to another. Now when I
>>>> log in to cygwin, I don't have permissions to access some of my own
>>>> files - like my ssh id_rsa file for example. Can someone tell me what I
>>>> need to do to fix this? Also, the group name is showing up as all
>>>> question marks when I do an "ls -l". Can anyone help me fix this? TIA.
>>>>
>>>> $ ls -laF
>>>> total 64
>>>> drwx------+ 17 CHamilto Domain Users     0 Aug 15 10:21 ./
>>>> drwx------+  3 CHamilto Domain Users     0 Apr  6 17:10 ../
>>>> -rw-------   1 CHamilto Users         6998 Jul 13 09:50 .bash_history
>>>> -rw-------   1 CHamilto Domain Users     0 Oct  7  2004 .ICEauthority
>>>> -rw-r--r--   1 CHamilto Domain Users   354 Oct  7  2004 .XSM-Default
>>>> -rw-r--r--   1 CHamilto Domain Users    93 Oct 11  2004 .Xdefaults
>>>> [snipped]
>>>> drwx------+  2 CHamilto ????????         0 Aug 15 12:28 .keychain/
>>>> drwx------+  2 CHamilto ????????         0 Jul 26 09:12 .ssh/
>>>
>>> Looks to me like you just need to recreate your '/etc/group'  and
>>> '/etc/passwd' files.  Try:
>>>
>>> mkpasswd -l -d >/etc/passwd
>>> mkgroup -l -d >/etc/group
>>>
>>> If this takes too long, look at the -D flag for each so you can specify
>>> the domain.
>>>
>>>
>>
>> Doesn't seem like my versions of these commands support the -D option.
>>
>> $ mkpasswd -l -D
>> mkpasswd: unknown option -- D
>> Try 'mkpasswd --help' for more information.
>>
>> $ mkgroup -l -D
>> mkgroup: unknown option -- D
>> Try 'mkgroup --help' for more information.
> 
> Did you try 'man mkpasswd'? It looks like the correct syntax is 
> 'mkpasswd -l -d [<domain> ...]'
> 


Right.  Sorry folks.  I'm away from my Windows machine so I'm doing this
from memory.  The "-d" alone works though.  I only mentioned adding the
domain name as an option in case your domains are huge and/or you have
ones that are now unreachable.


-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

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