#122971 - 2004-07-15 08:40 AM
unable to see drivers folder
|
jechilt
Starting to like KiXtart
Registered: 2000-12-01
Posts: 102
Loc: Denver Colorado
|
ok....got a challenge and I am not sure how to do this...
as administrator there is no problem. logon script is looking for the permissions of a file (usbstor.sys) in the winnt\system32\drivers folder. as an administrator, we can see the drivers folder. as a user, the drivers folder is NOT visible and system files are hidden from the user. when the script runs as the user, the result is "File Name Can Not Be Located", even though it does exist. Is there a sly kix-way to see the directory so we can locate the file and read it?
_________________________
John LM Contractor One of the 2 dads
|
|
Top
|
|
|
|
#122973 - 2004-07-15 09:40 AM
Re: unable to see drivers folder
|
jechilt
Starting to like KiXtart
Registered: 2000-12-01
Posts: 102
Loc: Denver Colorado
|
well, the reason we need to see it is for security reasons.
I am not sure why the reason for our inquiry is important to the forum. We could be looking for permissions on any file for any reason. I hope you don't think I put posts on the forum just to see how good of a script can be developed for no good reason.... I am not as good of a "kixter" as most of the guru's here and the assistance from the forum has helped us tremendously. I, for one, am very thankful for this board and the help that is provided in it. This is why I continue to come to the board and ask for help.
Our systems are on a classified network and the systems must meet certain security requirements. Reading permissions on selective files helps us identify vulnerabilites in our systems which have the potential of putting National and/or Global security at risk.
_________________________
John LM Contractor One of the 2 dads
|
|
Top
|
|
|
|
#122975 - 2004-07-15 12:36 PM
Re: unable to see drivers folder
|
jechilt
Starting to like KiXtart
Registered: 2000-12-01
Posts: 102
Loc: Denver Colorado
|
i appreciate the help, but am just a little irritated. sorry...
we are going to use SMS to push the script and we avoid the user permission altogether. in response to your question about normal user having access to a file has somehow missed its mark. If you look from a broader pespective of an Operating System (OS), users don't have to have visible 'access' to a file or folder in order for the OS to use the required resource.
I am sorry if this thread has gone astray...I was really just hoping to know if there was a possible solution to the challenge...etc...etc...etc.
_________________________
John LM Contractor One of the 2 dads
|
|
Top
|
|
|
|
#122978 - 2004-07-15 01:01 PM
Re: unable to see drivers folder
|
jechilt
Starting to like KiXtart
Registered: 2000-12-01
Posts: 102
Loc: Denver Colorado
|
NTDOC - I am not 100% on this, but I do think that MS Win2K has their settings as such, out of the box install..
1. When you go to WINNT directly, the right side window will be white and there will be a link that says "Show Files" or something to that degree. These are not hidden, but they are not visible to the user at this point. When we click on show files, we get to see the files. However, I also believe that the SYSTEM files are hidden from the user (by default)...so any .sys (.dll, etc) files are not visible by the user. Though the files exist, the user can't see them. Remember, we are trying to read the "drivers" directory (not driver). The drivers directory is hidden from the user.
Our systems are modified so the administrator can see the files and system files, but the user can not. The system is locked down and the user can't change that status.
As mentioned a few responses back, we are going to use SMS to run the package with an admin level account so we should be able to avoid the problem altogether.
I do not think there is any bug in the script...but at my experience level, I am sure I am more of the bug than the application
Lonkero - there are times to hate NTFS and for me, right now is one of those moments!
Edited by jechilt (2004-07-15 01:02 PM)
_________________________
John LM Contractor One of the 2 dads
|
|
Top
|
|
|
|
#122979 - 2004-07-15 01:10 PM
Re: unable to see drivers folder
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11634
Loc: Space
|
That is ony a GUI setting as far as I know that prevents Explorer from showing, but I think KiXtart should be able to access this location just fine.
Try giving some code like this a try as a normal user and I "think" it will work. Make sure the file you use is really on the test system.
Code:
If Exist ('%windir%\system32\drivers\usb8023.sys')
'Found file you were looking for: ' ?
Else
'Unable to locate the file you were looking for: ' ?
EndIf
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(Henriques)
and 2516 anonymous users online.
|
|
|