X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 	tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
From: "John Daintree" <johnd@dyalog.com>
To: <cygwin@cygwin.com>
References: <001b01ca5978$32cbb900$98632b00$@com>  <4AEB0D7D.8090006@cygwin.com>  <002501ca5984$eddd7830$c9986890$@com>  <4AEB29DE.50407@cygwin.com>  <000e01ca5b9d$ddecb0b0$99c61210$@com> <20091102123106.GC7831@calimero.vinschen.de>
In-Reply-To: <20091102123106.GC7831@calimero.vinschen.de>
Subject: RE: Incorrect names for file owners on mapped samba drives
Date: Mon, 2 Nov 2009 13:58:55 -0000
Message-ID: <002201ca5bc4$9f084f40$dd18edc0$@com>
MIME-Version: 1.0
Content-Type: text/plain; 	charset="us-ascii"
Content-Transfer-Encoding: 7bit
x-cr-hashedpuzzle: Bfwn BtSZ CLxS CWZB Dh1j EJIt EZN1 F7BN Hole Ht+b Hwkj IRNy JFD6 J8FU KLTt LwYP;1;YwB5AGcAdwBpAG4AQABjAHkAZwB3AGkAbgAuAGMAbwBtAA==;Sosha1_v1;7;{D05809D3-4691-43F6-AE62-EC8F5EA93FE3};agBvAGgAbgBkAEAAZAB5AGEAbABvAGcALgBjAG8AbQA=;Mon, 02 Nov 2009 13:58:53 GMT;UgBFADoAIABJAG4AYwBvAHIAcgBlAGMAdAAgAG4AYQBtAGUAcwAgAGYAbwByACAAZgBpAGwAZQAgAG8AdwBuAGUAcgBzACAAbwBuACAAbQBhAHAAcABlAGQAIABzAGEAbQBiAGEAIABkAHIAaQB2AGUAcwA=
x-cr-puzzleid: {D05809D3-4691-43F6-AE62-EC8F5EA93FE3}
X-Identified-User: {765:host89.hostmonster.com:dyalogco:dyalog.co.uk} {sentby:smtp auth 81.187.162.50 authed with johnd@dyalog.co.uk}
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

> -----Original Message-----
> From: Corinna Vinschen 
> Sent: 02 November 2009 12:31
> To: cygwin@cygwin.com
> Subject: Re: Incorrect names for file owners on mapped samba drives
> 
> If you want nice entries in ls -l output, add the users and groups to
> your local /etc/passwd and /etc/group files using mkpasswd and mkgroup
> with the new -U options:
> 
> http://cygwin.com/1.7/cygwin-ug-net/using-utils.html#mkpasswd
> http://cygwin.com/1.7/cygwin-ug-net/using-utils.html#mkgroup
> 
> For instance:
> 
>   $ mkpasswd -U root,corinna -S_ -L my_samba_box
>   Unix User_root:unused:10000:99999:,S-1-22-1-0::
>   Unix User_corinna:unused:10500:99999:,S-1-22-1-500::
>   $ mkpasswd -U root,corinna -S_ -L my_samba_box >> /etc/passwd
>   $ mkgroup -U root,corinna -S_ -L my_samba_box
>   Unix Group_root:S-1-22-2-0:10000:
>   Unix Group_vinschen:S-1-22-2-11125:21125:
>   $ mkgroup -U root,corinna -S_ -L my_samba_box >> /etc/group
>   $ cd //my_samba_box/my_share
>   $ ls -l some_file
>   -rw------- 1 UnixUser_corinna UnixGroup_vinschen 172 2009-09-22 16:27
> some_file
> 


Hi Corinna,

Thanks for the examples. I had read the man pages for mkpasswd and mkgroup
(honest!), but I must have had my incantations a little wrong.

I have most of the users and groups over now. Interestingly the "root" group
still displays as "????????" in the ls output, but such files are rare and I
can live with that for now.

Thanks again.
/john








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

