This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Incorrect names for file owners on mapped samba drives
- From: "John Daintree" <johnd at dyalog dot com>
- To: <cygwin at cygwin dot com>
- Date: Mon, 2 Nov 2009 13:58:55 -0000
- Subject: RE: Incorrect names for file owners on mapped samba drives
- 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>
> -----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