X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Message-ID: <4DC9B3A1.8020103@bopp.net> Date: Tue, 10 May 2011 16:52:33 -0500 From: Jeremy Bopp User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: determining what user mounted a drive References: <20110510212510 DOT C80AD9D5A0C AT mail2 DOT intersystems DOT com> In-Reply-To: <20110510212510.C80AD9D5A0C@mail2.intersystems.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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 5/10/2011 16:25, Len Giambrone wrote: > Is there a way of determining with what user credentials a share was mounted? > I suppose I could touch a file on the drive and then find out who the owner is, but that's not ideal. > > mount will tell me that it's a user mount, but won't tell me WHICH user. > > Is there some way (windows native or Cygwin) of getting this information? Are you asking about shares mapped to drive letters using a Windows-native process such as "net use", or are you asking about shares mapped to Cygwin paths using the mount command? -Jeremy -- 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