This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: determining what user mounted a drive
On May 10 18:04, Buchbinder, Barry (NIH/NIAID) [E] wrote:
> Len Giambrone sent the following at Tuesday, May 10, 2011 5:25 PM
> >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?
>
> I do not know but here is a guess. Wouldn't any user mount be that of
> the current user? Isn't that the point of user mounts - I only see my
> own? And if I'm root, I only see system mounts?
Yes and no. You only see your own user mounts, but if there is a user
root, this user would have a right to create user mounts, too.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
--
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