Jump to content
  • Advertisement
Sign in to follow this  
Tree Penguin

Access rights?

This topic is 4803 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
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
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
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!