divyap Guest
|
 |
« on: November 18, 2009, 01:52:02 AM » |
|
Hi, Is there any way to restrict dir command to list hidden files. I want to secure a drive. Even though i have modified registry settings to restrict access to a drive, dir command lists all the contents in the drive . I do not want any user to let to know the contents of that drive. So, please any body tell me that for a particular drive, dir command should fail.
|
|
|
|
|
gh0std0g74
Thanked: 37 Posts: 590
|
 |
« Reply #1 on: November 18, 2009, 02:04:01 AM » |
|
then you should tackle the problem at the root. Disable cmd.exe and command.com totally.
|
|
|
|
divyap Guest
|
 |
« Reply #2 on: November 18, 2009, 02:13:54 AM » |
|
disabling command prompt may solve my problem, but at the same time I lose many dos utilities. any other idea pleaseee
|
|
|
|
|
gh0std0g74
Thanked: 37 Posts: 590
|
 |
« Reply #3 on: November 18, 2009, 02:27:40 AM » |
|
disabling command prompt may solve my problem, but at the same time I lose many dos utilities. any other idea pleaseee
describe you network architecture. If you are the administrator, you will have access to dos utilities, NOT your users.
|
|
|
|
divyap Guest
|
 |
« Reply #4 on: November 18, 2009, 02:54:55 AM » |
|
Its a client server architecture. I do not want to let others know about the existence of the drive and its contents.In one of my applications, I have to launch internet explorer to open a document , there it shows the path to that document which helps in knowing the existence of the drive. Even though i create the files in the drive as hidden, dir /a shows hidden files which i do not want it to happen. so, I want some solution to make the drive inaccessible and prevent directory listing.
|
|
|
|
|
gh0std0g74
Thanked: 37 Posts: 590
|
 |
« Reply #5 on: November 18, 2009, 03:27:53 AM » |
|
only you can have access to server command prompt as an administrator. There is no reason why a user can have access to the server to give a dir on your server! Is your application written in batch and then have to be installed on each user desktop ? If you want to restrict user keying in c:\ or equivalent at the URL text box of internet explorer, you can set those using global policies to restrict displaying drive information, or do some tweaking. Its been so long since i did that, so search internet for the exact method.
|
|
|
|
|
|
divyap Guest
|
 |
« Reply #7 on: November 20, 2009, 02:46:02 AM » |
|
no, I am not the administrator. I have an application that creates a drive and I want to prevent access to it.
|
|
|
|
|
|
|
divyap Guest
|
 |
« Reply #9 on: November 20, 2009, 03:18:31 AM » |
|
How can an administrator prevent access to a drive to all the users?
|
|
|
|
|
gh0std0g74
Thanked: 37 Posts: 590
|
 |
« Reply #10 on: November 20, 2009, 04:02:58 AM » |
|
How can an administrator prevent access to a drive to all the users?
you can ask your administrator.
|
|
|
|
|
|
billrich Guest
|
 |
« Reply #12 on: November 20, 2009, 06:37:01 PM » |
|
Hello
|
|
|
|
« Last Edit: November 21, 2009, 10:33:16 PM by billrich »
|
IP logged
|
|
|
|
billrich Guest
|
 |
« Reply #13 on: November 20, 2009, 06:47:06 PM » |
|
Hello
|
|
|
|
« Last Edit: November 21, 2009, 10:32:27 PM by billrich »
|
IP logged
|
|
|
|
Sidewinder
Thanked: 89 Posts: 4,315
Experience: Experienced OS: Windows XP
|
 |
« Reply #14 on: November 20, 2009, 07:00:33 PM » |
|
Is there any way to restrict dir command to list hidden files.
Not really, but you can ensure that hidden files are listed by setting the dircmd environment variable. Control Panel > System > Advanced tab > Environment Variables. Create the system variable " DIRCMD" and assign a value of /a or /a:hNote: dircmd parameters can be overridden on the command line but this might prove helpful. Good luck. 
|
If you don't know where you are going, any road will get you there
-Lewis Carroll
|
|
|