I am trying to import a repository into SVN using:
svn import /home/guest/Desktop/first_repo/ file:///var/www/svn/repos/first_one -m "first repository"
When I fire this command, I get a big list of added files and finally it exits with the error listed below:
svn: Can't move '/var/www/svn/repos/db/txn-protorevs/1-d.rev' to
'/var/www/svn/repos/db/revs/0/2': Permission denied
I changed the permissions of the repos directory and all the files in it to 777. I disabled selinux.
Then, I tried the same as Super User: it has been added and I am also able to checkout. But, when I try to commit with some changes (as a normal user) I get the same error again:
Transmitting file data .svn: Commit failed (details follow):
svn: Can't move '/var/www/svn/repos/db/txn-protorevs/1-e.rev' to
'/var/www/svn/repos/db/revs/0/2': Permission denied
Now I have two questions:
- Is
svn importa must and should it be done asSuper User? If yes, why I am not able to commit as a normal user? (I am giving 777 permissions) - Am I doing anything wrong?