Re: How to mount a volume as a current user.
- From: JPB <JPB@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 15 May 2008 01:09:01 -0700
I understant what you mean.
But in my case, I've got a driver which instantiate a volume (it's a file
behind).
This action is not a "mount" it's a volume creation.
After that my driver create an entry in the mount manager. Is itnot a
"mount", for me it's a reference with a name like "Volume{GUID}"
(IOCTL_MOUNTMGR_CREATE_POINT).
Then, and it was what i was missing, I create a junction point to this
"POINT". And THAT is, on my point of view, a "mount".
Do I miss something ?
Thanks for the discussion.
"Pavel A." wrote:
"JPB" <JPB@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message.
news:20293D0F-FC79-4F0E-B378-3B9010EA4A0D@xxxxxxxxxxxxxxxx
So just a word to explain that it can be done.
A mount point is just a kind of "reparse point".
A user can create a reparse point if he add NTFS rights.
Here is the URL wich help me :
http://www.flexhex.com/docs/articles/hard-links.phtml#download
I wrote a small tool Mountvol like wich can be used as user.
thanks for your suggestions.
Then you do _not_ mount the volume, you just add another hard or soft link
to already mounted volume (so the link target is accessible).
This is not obvious, because usually Windows auto-mounts
new disks.
Try to remove all mount points to the disk (by using disk manager as admin).
This will dismount the volume, and then your additional links will cease to
work
(acessing them as regular user will not cause remount).
Thanks for reading.
--PA
"Pavel A." wrote:
"JPB" <JPB@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1ADEB990-189E-4273-9633-110DF1C2E491@xxxxxxxxxxxxxxxx
....
Not be able to mount as a user is a strange feature for me.
Why? Mounting a new volume is a privileged action, even in the Other
Better
OS.
Make a service to mount on users behalf.
--PA
- Follow-Ups:
- Re: How to mount a volume as a current user.
- From: Pavel A.
- Re: How to mount a volume as a current user.
- References:
- How to mount a volume as a current user.
- From: JPB
- Re: How to mount a volume as a current user.
- From: David Craig
- Re: How to mount a volume as a current user.
- From: JPB
- Re: How to mount a volume as a current user.
- From: Alexander Grigoriev
- Re: How to mount a volume as a current user.
- From: JPB
- Re: How to mount a volume as a current user.
- From: Scott Seligman
- Re: How to mount a volume as a current user.
- From: JPB
- Re: How to mount a volume as a current user.
- From: Pavel A.
- Re: How to mount a volume as a current user.
- From: JPB
- Re: How to mount a volume as a current user.
- From: Pavel A.
- How to mount a volume as a current user.
- Prev by Date: Launch an executable as a user from an administrative account
- Next by Date: Re: Launch an executable as a user from an administrative account
- Previous by thread: Re: How to mount a volume as a current user.
- Next by thread: Re: How to mount a volume as a current user.
- Index(es):
Relevant Pages
|