Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to force an application (like gedit) so that it can only save files in one specific folder (like ~/bla). Sort of like a prison where you can only save files.

I already thought about modifying gtk's source to force it, or using openroot.

share|improve this question
add comment

migrated from superuser.com Apr 24 '11 at 20:05

This question came from our site for computer enthusiasts and power users.

2 Answers

There are two things you could do:

  1. Run gedit as a user that only has the ability to write to the one folder.
  2. Change the source code of gedit to reject saving to any other folder but the one you want and recompile it.
share|improve this answer
1  
Actually 1 is a pretty good idea, thought of it before. –  puckipedia Apr 24 '11 at 18:12
add comment

I haven't done this personally but I believe that you can accomplish this using SELinux.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.