Results 1 to 15 of 15

Thread: Restrict direct access to drives

  1. #1

    Thread Starter
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Question Restrict direct access to drives

    Hi...

    Is there any workaround in WindowsXP to restrict direct access to harddisk drives (partitions) ?

    Some guys are misusing the data in the drives. So, I'm going to create a program to start other programs (a list of three for ten), in the meantime the drive would be restricting direct access..

    I mean, no one could directly open drives and locate the installed programs. But only through my program (which I will create in VB) which will list the programs that are allowed to use.

    Thanks

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  2. #2
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Restrict direct access to drives

    1. Restrict access to the drives with appropriate permissions and password.
    2. Run your program with elevated privileges.
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  3. #3

    Thread Starter
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: Restrict direct access to drives

    Quote Originally Posted by Pradeep1210 View Post
    1. Restrict access to the drives with appropriate permissions and password.
    2. Run your program with elevated privileges.
    Thanks

    Could you please shed some more light on these 2 ideas ?

    Do I have to change registry settings ? Or, do I have to block the drives by using some third party programs like FolderLock ?


    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  4. #4
    Frenzied Member TheBigB's Avatar
    Join Date
    Mar 2006
    Location
    *Stack Trace*
    Posts
    1,511

    Re: Restrict direct access to drives

    Do you have XP Home or Pro?
    Delete it. They just clutter threads anyway.

  5. #5

    Thread Starter
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: Restrict direct access to drives

    Quote Originally Posted by TheBigB View Post
    Do you have XP Home or Pro?
    Windows XP Pro SP2

    Thanks

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  6. #6
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: Restrict direct access to drives

    if you have xp pro, you can simply set disk quotas for each user. they could still have a small area of disk for personal use if you wish (say, 100mb) but once it's full, that's that. You log on as admin and you can set it up easily. Here's a link that gives directions.
    http://www.netadmintools.com/art160.html
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  7. #7

    Thread Starter
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: Restrict direct access to drives

    Quote Originally Posted by Lord Orwell View Post
    if you have xp pro, you can simply set disk quotas for each user. they could still have a small area of disk for personal use if you wish (say, 100mb) but once it's full, that's that. You log on as admin and you can set it up easily. Here's a link that gives directions.
    http://www.netadmintools.com/art160.html
    Thanks Lord

    Does that mean we could prevent read access to other folders in the drive or just limiting the write access ?
    (I couldn't test it in my system as it is for my uncle's new computer institute)


    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  8. #8
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: Restrict direct access to drives

    you can prevent read access to any user folder that doesn't belong to the current user. Also you can set encryption on individual folders as long as you don't have compression turned on. If an admin encrypts a folder, only an admin or higher can read it. (system is higher).

    http://www.microsoft.com/resources/d....mspx?mfr=true
    Last edited by Lord Orwell; Mar 28th, 2011 at 02:46 AM.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  9. #9

    Thread Starter
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: Restrict direct access to drives

    Thanks

    I'll explain my scenario in detail. In my uncle's computer centre, there are several machines where students used to learn, play games, etc...

    Most of these people(these students) are a bit over smart and they would wander around each drive and folder, during our absence. So, my uncle asked me to create a program which will act as an interface. ie., the current user using that system won't be allowed to open any drives or folders. But if they want to open any software or game, they have to use my application which will allow the external application to be started. The main advantage is that, we could track what these students are using. ie., what all programs they have opened and how much time spent on that.

    So, we could make sure that these guys are doing whatever we have asked to do (say, drawing a picture in MS Paint) and not doing anything else (say, playing NFS:Carbon)

    So, what all things could be considered ?

    I have already made the VB application which will act as an interface. The only thing remaining is how to restrict direct access but only through my VB application, for opening other programs.


    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  10. #10
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: Restrict direct access to drives

    well this really isn't that difficult. in xp, you can open win.ini (i think: it might be system.ini) and replace explorer.exe with your own program's name. This will replace the taskbar with your program completely so they would have no way to launch a program except by ctrl-alt-del, and you can disable THAT with a policy. I am not 100% positive this will stop the win-r from opening a run box, but i do know you can block that with a policy as well.

    Whenever you have 10 or more computers, microsoft recommends you connect them through a domain. Any user can use any computer and all their user files will be on the domain server. You would have full microscopic control of what every user is doing, including what times of day they can log on.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  11. #11

    Thread Starter
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: Restrict direct access to drives

    Thanks

    I have tried testing that idea. But I didn't found the "explorer.exe" listed anywhere !

    System.ini
    Code:
    ; for 16-bit app support
    [drivers]
    wave=mmdrv.dll
    timer=timer.drv
    [mci]
    [driver32]
    [386enh]
    woafont=dosapp.FON
    EGA80WOA.FON=EGA80WOA.FON
    EGA40WOA.FON=EGA40WOA.FON
    CGA80WOA.FON=CGA80WOA.FON
    CGA40WOA.FON=CGA40WOA.FON
    [vicax]
    msacm711=78547
    msacm811=162469
    msacm911=42405
    Win.ini
    Code:
    ; for 16-bit app support
    [fonts]
    [extensions]
    [mci extensions]
    [files]
    [Mail]
    MAPI=1
    [MCI Extensions.BAK]
    aif=MPEGVideo
    aifc=MPEGVideo
    aiff=MPEGVideo
    asf=MPEGVideo
    asx=MPEGVideo
    au=MPEGVideo
    m1v=MPEGVideo
    m3u=MPEGVideo
    mp2=MPEGVideo
    mp2v=MPEGVideo
    mp3=MPEGVideo
    mpa=MPEGVideo
    mpe=MPEGVideo
    mpeg=MPEGVideo
    mpg=MPEGVideo
    mpv2=MPEGVideo
    snd=MPEGVideo
    wax=MPEGVideo
    wm=MPEGVideo
    wma=MPEGVideo
    wmv=MPEGVideo
    wmx=MPEGVideo
    wpl=MPEGVideo
    wvx=MPEGVideo
    [MSUCE]
    Advanced=0
    CodePage=Unicode
    Font=Times New Roman
    [SciCalc]
    layout=0
    [Compatibility16]
    DXRCH=92038
    SEKTVER=186885
    R1CHMEDIA=42405
    [Ans2000]
    Pattern=92297
    [annie]
    WantPreview=1
    UseFrameRate=1
    FrameRate=333333
    CaptureFile=X:\Documents and Settings\XXX\My Documents\12
    VideoDevice2=@device:pnp:\\?\usb#vid_0c45&pid_612a#5&2f621ee5&0&1#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global
    AudioDevice2="@device:cm:{33D9A762-90C8-11D0-BD43-00A0C911CE86}\Realtek HD Audio Input"
    CaptureAudio=1
    CaptureCC=0
    MasterStream=1
    UseTimeLimit=0
    TimeLimit=0
    Whenever you have 10 or more computers, microsoft recommends you connect them through a domain. Any user can use any computer and all their user files will be on the domain server. You would have full microscopic control of what every user is doing, including what times of day they can log on.
    I'll check that too...


    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  12. #12
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: Restrict direct access to drives

    google shell=explorer.exe
    they moved it to the registry, and i forgot.
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
    it's in there.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  13. #13

    Thread Starter
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: Restrict direct access to drives

    Thanks...
    I'll check that

    I have recently got some piece of code to lock screen. I have posted that in the CodeBank: http://www.vbforums.com/showthread.php?t=639579

    But I didn't know the working of it. So, I consider there would be some disadvantages if I use that to lock the screen and allow the user select a program to run from that screen (kind of my own interface).

    Yesterday, I created a thread asking for details on that code in here : http://www.vbforums.com/showthread.php?t=645776

    What's your opinion ? If I use that code to lock the screen and allow the user to run programs like Photoshop, MSOffice, Games, etc.. will it be burden to the processor or RAM ? Or will it cause any conflicts ?

    Thanks

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  14. #14
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: Restrict direct access to drives

    it shouldn't cause any undue processing since the code only works with windows' built in functions for multiple desktops.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  15. #15

    Thread Starter
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: Restrict direct access to drives

    Quote Originally Posted by Lord Orwell View Post
    it shouldn't cause any undue processing since the code only works with windows' built in functions for multiple desktops.
    So, it's ok to use it for locking the screen as I needed ? I mean, a window will be shown (like UAC) and the user can select whatever application listed on that window and it starts that process ?


    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width