* determining what user mounted a drive
@ 2011-05-10 21:25 Len Giambrone
2011-05-10 21:52 ` Jeremy Bopp
2011-05-10 22:05 ` Buchbinder, Barry (NIH/NIAID) [E]
0 siblings, 2 replies; 4+ messages in thread
From: Len Giambrone @ 2011-05-10 21:25 UTC (permalink / raw)
To: cygwin; +Cc: Len Giambrone
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?
-Len
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: determining what user mounted a drive
2011-05-10 21:25 determining what user mounted a drive Len Giambrone
@ 2011-05-10 21:52 ` Jeremy Bopp
2011-05-10 22:05 ` Buchbinder, Barry (NIH/NIAID) [E]
1 sibling, 0 replies; 4+ messages in thread
From: Jeremy Bopp @ 2011-05-10 21:52 UTC (permalink / raw)
To: cygwin
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: determining what user mounted a drive
2011-05-10 21:25 determining what user mounted a drive Len Giambrone
2011-05-10 21:52 ` Jeremy Bopp
@ 2011-05-10 22:05 ` Buchbinder, Barry (NIH/NIAID) [E]
2011-05-11 6:36 ` Corinna Vinschen
1 sibling, 1 reply; 4+ messages in thread
From: Buchbinder, Barry (NIH/NIAID) [E] @ 2011-05-10 22:05 UTC (permalink / raw)
To: cygwin, 'Len Giambrone'
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?
And if you want to see the user mounts of individual users, according to
the UG <http://cygwin.com/cygwin-ug-net/using.html#mount-table>, that
should be in </etc/fstab.d/user_name>.
Otherwise, what about the following?
$ stat -c %U /mount_point
But if you are talking about, something that happened before a cygwin
process was lanched, I think you want to use the word "mapped", not
"mounted" and I can't say much more than that.
- Barry
Disclaimer: Statements made herein are not made on behalf of NIAID.
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: determining what user mounted a drive
2011-05-10 22:05 ` Buchbinder, Barry (NIH/NIAID) [E]
@ 2011-05-11 6:36 ` Corinna Vinschen
0 siblings, 0 replies; 4+ messages in thread
From: Corinna Vinschen @ 2011-05-11 6:36 UTC (permalink / raw)
To: cygwin
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-05-11 6:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-10 21:25 determining what user mounted a drive Len Giambrone
2011-05-10 21:52 ` Jeremy Bopp
2011-05-10 22:05 ` Buchbinder, Barry (NIH/NIAID) [E]
2011-05-11 6:36 ` Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).