This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Incorrect names for file owners on mapped samba drives

> -----Original Message-----
> From: Corinna Vinschen 
> Sent: 02 November 2009 12:31
> To:
> 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:
> 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.

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]