X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.6 required=5.0	tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL,TW_MK,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4FDBFDF3.5090107@cs.utoronto.ca>
Date: Fri, 15 Jun 2012 23:30:59 -0400
From: Ryan Johnson <ryan.johnson@cs.utoronto.ca>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Map uid/gid of SMB share to local account?
References: <70952A932255A2489522275A628B97C31371A2B5@xmb-sjc-233.amer.cisco.com>
In-Reply-To: <70952A932255A2489522275A628B97C31371A2B5@xmb-sjc-233.amer.cisco.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
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

On 15/06/2012 5:23 PM, Matt Seitz (matseitz) wrote:
>> On Behalf Of Ryan Johnson
>>
>> `mkpasswd` and `mkpasswd -l -U0-20000' produce the same output
> (neither
>> includes the SMB user); the drive is mapped in Windows as z: and I can
>> also access it directly from the cygwin prompt.
> What is the output is you run:
>
> mkpasswd -l<samba-server-hostname>  -U 0-20000

It's rather prodigious (and slow, as warned by the man page). If I limit 
it to my own uid on that server, I get:
> ryanjohn:unused:12680:99999:,S-1-22-1-2680::
> mkpasswd (370): [31] A device attached to the system is not functioning.

Thanks for explaining  that. I've never used the command before and the 
man pages weren't closing the gap.

Not sure how that will help my local user have write permissions to 
ryanjohn's files, tho...

Regards,
Ryan

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

