This is a follow up question to this: (write.csv permisson shiny server - R).
I am using shiny to write a .csv file locally (shiny server). To do this I had to make shiny the owner of the sub directory by doing this:
sudo chown shiny:shiny /path_to_app/sub_with_csv_in
see: (https://groups.google.com/forum/#!topic/shiny-discuss/srWETT6uL-I)
..which worked nicely. Now I want to update the .csv saved in "sub_with_csv_in" by running a script outside of the app. However, because I changed the permission, now I get:
In file(file, ifelse(append, "a", "w")) :
cannot open file 'Available.csv': Permission denied
..when I run my script outside of shiny. So my question is, is it possible to have shiny own a directory while keeping the permission to write to the same directory outside of shiny?