Folder Permissions

Folder Permissions

Secure Home | Search | About
 Microsoft Applications Security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content add this group's latest topics to your Google content
Subject Author Date
Folder Permissions David 09-06-2008
---> Re: Folder Permissions Roger Abell [MV...09-07-2008
Posted by David on September 6, 2008, 2:54 pm
If you were  Registered and logged in, you could reply and use other advanced thread options


Confused -- Newbie to Permissions!!!!!

1) Sole owner and Admin of XP-Pro Machine.

2) I have a DLL incorporated into a program ("exe") I've written. This
"exe" maintains a real-time link to a server. Other than seeing the
function headers I don't what resides in the server provided DLL.

3) DLL is currently registered in c:\Windows\System

4) I would like to keep someone from the server side from accessing other
folders on my machine.

QUESTIONS:

How do I go about this?

a) Move and Register the DLL in the "exe" folder?
b) Set permissions on the "exe" folder or do all higher folders need
to have permissions set?
c) What are the recommended permissions settings for this?
d) Is encryption needed?

Thanks
David



Posted by Roger Abell [MVP] on September 7, 2008, 4:34 am
If you were  Registered and logged in, you could reply and use other advanced thread options


> Confused -- Newbie to Permissions!!!!!
>
> 1) Sole owner and Admin of XP-Pro Machine.
>
> 2) I have a DLL incorporated into a program ("exe") I've written. This
> "exe" maintains a real-time link to a server. Other than seeing the
> function headers I don't what resides in the server provided DLL.
>
> 3) DLL is currently registered in c:\Windows\System
>
> 4) I would like to keep someone from the server side from accessing other
> folders on my machine.
>
> QUESTIONS:
>
> How do I go about this?
>
> a) Move and Register the DLL in the "exe" folder?
> b) Set permissions on the "exe" folder or do all higher folders need
> to have permissions set?
> c) What are the recommended permissions settings for this?
> d) Is encryption needed?
>

David

There are many, mnay unknowns left unanswered by what you have said.
You wrote the exe, so you control what methods of the dll are called.
Evidently you do not know what the methods do, at least not fully, so you
do not have trust about what happens when exection has been transferred
to the dll, and you have only said that a connection if maintained between
the XP where your exe is running and some server.

A general answer to your scenario would go at this by controlling the
account the runs your exe, and hence is the security context in which the
methods of the dll will execute. If that account has no permissions other
than what is needed to run your exe, no permissions on extra areas of your
XP machine, then you know exactly what might be accessed. That however
is not always easy to do, since the account evidently needs to be able to
log
on locally in order to run the exe.

Roger



Posted by David on September 7, 2008, 9:55 am
If you were  Registered and logged in, you could reply and use other advanced thread options


Thanks for response Roger, but I need more specifics.

A dll may contain many used and unused functions. Hence who knows what may
reside in any DLL. Since a direct internet link is maintained between the
server and myself (client), the server may execute a function(s) within the
DLL unknown to the client -- hopefully not!

My understanding of NTFS is the design is to keep people from getting into
folders not out of them. Hence the orientation is based on user logon into
say my machine and then accessing a folder based on rights given to the user
at logon.

=====================

This is where "I Think" I'm confused.

If a DLL resides in c:\windows\system, that directory normally is a general
folder where most DLLs resides. Since I am the user of the program (also
administrator and normally logon as such), will the following solve any
potential DLL problems?:

1) Creation of a separate user account
2) Create a folder under this account
3) Move my program to the new folder under the new account
4) Move the supplied DLL to the new folder under the new account and
register it there (if possible)
5) Set user logon and folder permissions to read and execute

What if the DLL must reside in c\windows\system?


>> Confused -- Newbie to Permissions!!!!!
>>
>> 1) Sole owner and Admin of XP-Pro Machine.
>>
>> 2) I have a DLL incorporated into a program ("exe") I've written. This
>> "exe" maintains a real-time link to a server. Other than seeing the
>> function headers I don't what resides in the server provided DLL.
>>
>> 3) DLL is currently registered in c:\Windows\System
>>
>> 4) I would like to keep someone from the server side from accessing other
>> folders on my machine.
>>
>> QUESTIONS:
>>
>> How do I go about this?
>>
>> a) Move and Register the DLL in the "exe" folder?
>> b) Set permissions on the "exe" folder or do all higher folders need
>> to have permissions set?
>> c) What are the recommended permissions settings for this?
>> d) Is encryption needed?
>>
>
> David
>
> There are many, mnay unknowns left unanswered by what you have said.
> You wrote the exe, so you control what methods of the dll are called.
> Evidently you do not know what the methods do, at least not fully, so you
> do not have trust about what happens when exection has been transferred
> to the dll, and you have only said that a connection if maintained between
> the XP where your exe is running and some server.
>
> A general answer to your scenario would go at this by controlling the
> account the runs your exe, and hence is the security context in which the
> methods of the dll will execute. If that account has no permissions other
> than what is needed to run your exe, no permissions on extra areas of your
> XP machine, then you know exactly what might be accessed. That however
> is not always easy to do, since the account evidently needs to be able to
> log
> on locally in order to run the exe.
>
> Roger
>



Similar ThreadsPosted
Folder permissions April 26, 2007, 9:28 am
Folder permissions October 25, 2007, 6:26 pm
Folder permissions November 5, 2007, 8:17 am
Permissions on created folder July 28, 2005, 12:37 pm
Remove all permissions from folder February 13, 2006, 5:25 am
Setting Folder Permissions????? March 17, 2006, 12:40 pm
Folder/File Permissions April 21, 2006, 10:05 am
special folder Permissions November 28, 2006, 4:34 pm
Traverse Folder Permissions January 7, 2007, 11:55 am
folder permissions on folders January 16, 2007, 3:40 pm

The site map in XML format XML site map

Contact Us | Privacy Policy