I moved a Subversion repository from the Home windows box to some UNIX machine. Both in conditions I have handled authentication through Apache.
Around the UNIX box following the move, I possibly could checkout source but received the next error when carrying out anything:
svn: Can't open file '/home/brianly/svn/test/db/txn-current-lock': Permission denied
It appeared to become a UNIX permission problem and also the following command resolves the problem:
chmod -R 777 /home/brianly/svn/test
Now, I have opened up this as much as be writable by all customers (right?). It is possible to security problem with carrying this out? Must I have transformed the dog owner to become the apache user (daemon) rather? What is the best practice for setting the file system permissions?
List of positive actions is alter the directory owner towards the apache process user, e.g.
chown -R apache /home/brianly/svn/test
You have to run
chown as root (directly or through
You can observe who the consumer is by using (whether it's linux):
ps -fadeww|grep httpd
You should also change it out to 755 or 700 or whatever.
When the only access is thru HTTP, you'll be able to limit accessibility user the net server runs under. At this time with 777, this is not merely a burglar risk regarding local customers but additionally a loss of revenue of permissions as you've just made executables files that shouldn't be... See orip's answer for that relaxation.