Re: How to mount a volume as a user ?



Ok,

Sorry, for me it looks like an handy man fixing things, not a MVP advise.

Best regards.

"Pegasus (MVP)" wrote:

The batch file shows the general idea - you can make it
as tight as you like, e.g. by putting it into a protected folder
so that only the command you put into it will be invoked.
I thought this was obvious and that there was no need to
spell this out in detail - sorry for not mentioning it before.


"JPB" <JPB@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:A11549CD-89F6-4D5F-A03B-11DFBE3420C7@xxxxxxxxxxxxxxxx
Your are joking !

which administrator would do that ! its strange to schedule gaps in the
security.
My trouble was about programming.

MVP means Most Valuable Professionals ... what else !

Just have a look to the shortcut in the preceding message and read what
"valuable" means.

Thanks for the joke.

"Pegasus (MVP)" wrote:


"JPB" <JPB@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3B8DFDA9-7A6B-4DF0-931C-AB66A650AB3F@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.


You can let a normal user do anything by working indirectly with
a semaphore file. Here is how it works.
1. Create the batch file c:\Windows\Mount.bat
@echo off
set Flag=c:\Semaphore\go.txt
if "%1"=="" (
echo %date% %time% > "%Flag%"
echo The volume will be mounted within the next five minutes.
pause
goto :eof
)
if exist "%Flag" (
del "%Flag%"
mountvol . . .
)
2. Give the user a shortcut on his desktop to invoke
c:\Windows\Mount.bat
3. Create a scheduled job under an admin account.
It should run once every 5 minutes and invoke
c:\windows\Mount.bat xxx.






.



Relevant Pages

  • Re: VBScript
    ... "Pegasus (MVP)" wrote: ... net groups /domain ... Line1 @echo off ...
    (microsoft.public.win2000.general)
  • Re: Cant Access File with Extded Ascii Characters in File Name
    ... "Pegasus (MVP)" wrote: ... public EJBRMIResponse call ... echo FileName=xxx%FileName%xxx ...
    (microsoft.public.windowsxp.general)
  • Re: MS Scheduled Task
    ... Pegasus (MVP) wrote: ... echo %date% %time% Start of task> c:\test.log ... A test.log does not get created when I run it via the scheduler. ...
    (microsoft.public.windowsxp.general)
  • Re: using NTBackup.exe
    ... "Pegasus (MVP)" wrote: ... @echo off ... Now execute this batch file from a Command ...
    (microsoft.public.windows.server.general)
  • Re: Sharing and Security on File Share
    ... The xxx dirctory was created in the test folder. ... "Pegasus (MVP)" wrote: ... net user rogene>> c:\test.txt ...
    (microsoft.public.windows.file_system)

Loading