geekmaster / eyefiserver2

Automatically exported from code.google.com/p/eyefiserver2
0 stars 0 forks source link

Config file can't be changed from the Web-GUI #14

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In Web-GUI sed in inplace mode is used to save configuration changes. This 
method is not working if config file is placed in directory without write 
access to www user. Can be fixed by placing config file in a separate 
application directory with write access for www user and making a symlink to 
/etc. QNAP version is not affectec, because config file is already a symlink to 
one placed in QPKG directory.

Original issue reported on code.google.com by duke...@gmail.com on 26 Jun 2012 at 7:57

GoogleCodeExporter commented 8 years ago

Original comment by vilius.s...@gmail.com on 27 Jun 2012 at 9:06

GoogleCodeExporter commented 8 years ago
We must decide how to make installation package and where conf file should be 
placed, it should definitely only a symlink for Web-GUI - enabled package. This 
is a general Linux/Apache security feature so we can't get write access to 
system directories. I don'n like the idea with another one sudoing or writing a 
separate binary jist to make changes in file inplace.

Original comment by duke...@gmail.com on 28 Jun 2012 at 7:50

GoogleCodeExporter commented 8 years ago
Solved with temporary config file. Works fine for both files and symlinks. 
Operates on a symlink target so only write acces for a file itself needed - 
removed chmod for package directore in QNAP installation scripts.

Original comment by duke...@gmail.com on 28 Jun 2012 at 2:06