Wednesday, July 24, 2019

svn - How do i know which program-user access a certain folder in linux debian?




How do i know which program-user access a certain folder in linux debian?, basically a screwed my svn repo, basically cause i could not commit to it due to permission. got a



db/txn-current-lock': Permission denied error.



So i tried to fix it and screwed up again. because of emergency in the programing team, i gave 777 permission to all folder and change the user:group permission to root:root to all. Now i want to fix the setup like god commands. I want to create a a group which only people on these groups are able to use the svn, but i don´t know which user (program) access the repo.



Is it www-data ? or is it _svn:*:73:73:SVN Server:/var/empty:/usr/bin/false (this from /etc/passwwd) ? how do i check ? Thank you!


Answer



How do you serve the repo?




Is it through apache mod_svn? Then the directory/files have to be owned by the user under which apache runs (www-data usually).



Through SSH? Then you have to create a group that will own the files (but there were some problems with this setup, don't remember what).



Through svnserve? Then it must be owned by user under which svnserve runs.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...