Package Cant Edit Theme Files Due to Directory Permissions

Permalink
Hello,
Much like the title suggests i have a package that i created with the express intent on editing files in the Application directory. The package pulls a list of files in said directory while also exposing the content of the files to an editor like feature (see where im going here?).

I set an error to display if the file is not writable using a php function (is_writable())
The problem occurs after i go to make a change and attempt to save the file it seems the permissions on that application/theme directory prevents me from saving to the files.
mind you im trying to edit these files all from a dashboard page..
So im wondering if i need to change to owner:group on my package or set certain directory permission to 775?
Does anyone who has decent knowledge of the file system permissions know of a workaround or solution?
mind you i plan on adding this to marketplace once its complete.
How can i give my package permission to edit theme files in short?

 
JohntheFish replied on at Permalink Reply
JohntheFish
Permission settings vary between web server setups and whether file ownership is the same for all applications working with the web space (Apache, FTP, shell.....). In general, 755 is good and anything that relaxes that is a compromise.

Before messing with permissions, you should look for other reasons a file may not be writable. A couple of obvious checks that come to mind are wrong directory and already open.