Sign in to follow this  
Tree Penguin

Access rights?

Recommended Posts

Urxae    182
I sure hope not, unless the program doing so is running as a different user. Otherwise, it somewhat defeats the purpose of not giving that user access to those files...

Share this post


Link to post
Share on other sites
kaysik    382
Short: No.

Long: Programs have the samer permission as the user who started them (ok you can start apps under another user but then they just have that set of permissions so no biggie). They can't read/write to any files their user can't read/write to. Basically you can think of new processes as new users to the system - there really isn't much (any?) difference between a program and a user. Anything a user can do a program can and the opposite. So if your user can't access a file your programs can't.

Share this post


Link to post
Share on other sites
paulecoyote    1065
yes - but the program must be able to impersonate a user with the rights. In Windows this is done via tokens. [Google] for tools like "runas". In Win32API calls to CreateProcessWithLogon will probably be required.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this