Re: How to mount a volume as a user ?



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.

"Pegasus (MVP)" wrote:

I was looking for some background information so that I
might be able to suggest the best solution. I was not looking
for an argument.


"JPB" <JPB@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:B6BB9AE4-DE3A-4EB5-8104-A608778F3F81@xxxxxxxxxxxxxxxx
I would say "super"

I try to understand why, on the security architectural point of view, it's
not possible.

Is it a privilège ?
Is it an ACL ?

We are talking about an Operating System, not a religion ;o)

Thanks in advance.

"Pegasus (MVP)" wrote:


"JPB" <JPB@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:D691C437-4C73-4A1D-AECD-C0BD8993641E@xxxxxxxxxxxxxxxx
Hi,

I wrote some piece of code using the API "SetVolumeMountPoint" wich
allow
me
to mount a volume wich looks like \\?\Volume{GUID} (I create myself
this
volume from my own driver) in an NTFS folder.

It works as far as my process run as an user from the "administrators"
group, but when I try tu run it as a normal user I receive an "access
denied".

As in Vista I get also an "access denied" when my process run as an
user
from the "administrators" group I dig the users access right (former
privilege) but no success.

I know how to put NTFS rights on the root of the volume I mount. But
I'am
not so clear with the access right of the "\\?\Volume{GUID}" object.

Is this object just a link on the internal "\device\Mydriver" object ?
As
swhon in WinObj (Sysinternals tool).

How can I change the DACL of this object ?

Do have I to change the acces rights of "\device\Mydriver" (deficult
for
me
I'am not allowed to use IoCreateDeviceSecure to run from W2K to Vista)
?

So can anybody can help me to use Mountvol.exe as a user ?

Thanks in advance.

Cheers

PS : last solution will be to mount from a service, but I'am a bit
upset
to
create a service just for that !

Mmh. Why would you want to let a user mount a volume? In my
book this is strictly an admin function.






.



Relevant Pages

  • My kernel cant access my hdd, but the LiveCD can.
    ... can I mount my hdd wich is pluged on my raid controller (wich ... this hdd, I have installed Gentoo-Linux and the boot-loader grub on it. ... Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block ...
    (alt.os.linux)
  • Re: How to mount a volume as a user ?
    ... I wrote some piece of code using the API "SetVolumeMountPoint" wich allow ... I know how to put NTFS rights on the root of the volume I mount. ... I'am not allowed to use IoCreateDeviceSecure to run from W2K to Vista)? ...
    (microsoft.public.windows.file_system)
  • How to mount a volume as a current user.
    ... I wrote some piece of code using the API "SetVolumeMountPoint" wich allow me ... I know how to put NTFS rights on the root of the volume I mount. ... I'am not allowed to use IoCreateDeviceSecure to run from W2K to Vista)? ...
    (microsoft.public.win32.programmer.kernel)
  • How to mount a volume as a user.
    ... I wrote some piece of code using the API "SetVolumeMountPoint" wich allow me ... I know how to put NTFS rights on the root of the volume I mount. ... I'am not allowed to use IoCreateDeviceSecure to run from W2K to Vista)? ...
    (microsoft.public.windowsxp.security_admin)
  • How to mount a volume as a user ?
    ... I wrote some piece of code using the API "SetVolumeMountPoint" wich allow ... I know how to put NTFS rights on the root of the volume I mount. ... I'am not allowed to use IoCreateDeviceSecure to run from W2K to Vista)? ...
    (microsoft.public.windows.file_system)

Loading