delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/06/15/23:32:02

X-Recipient: archive-cygwin AT delorie DOT 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 DOT johnson AT cs DOT utoronto DOT 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 AT cygwin DOT com
Subject: Re: Map uid/gid of SMB share to local account?
References: <70952A932255A2489522275A628B97C31371A2B5 AT xmb-sjc-233 DOT amer DOT cisco DOT com>
In-Reply-To: <70952A932255A2489522275A628B97C31371A2B5@xmb-sjc-233.amer.cisco.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019