Menu

/root/.subversion permission denied

Help
Jason Lim
2005-10-06
2013-05-01
  • Jason Lim

    Jason Lim - 2005-10-06

    Hi,

    I'm getting this error message when I click on edit Group Privillage - Repository Admin.

    svn: Can't check path '/root/.subversion': Permission denied (cmd: /usr/local/bin/svn list --non-interactive file:///data/repos/testload01)
    Command used: /usr/local/bin/svn list --non-interactive file:///data/repos/testload01

    #note:
    - /data/repos/testload01 is my repository folder name
    - NO problem with /usr/local/bin/svn list --non-interactive file:///data/repos/testload01
    - NO problem I have no problem running http://localhost/svn/testload01

    Kindly help

     
    • Marijn Verkerk

      Marijn Verkerk - 2005-10-16

      Hi there,

      Somehow the command to retrieve the information from the repository tries to open the subversion configuration file from the root user's config directory, which isn't allowed.

      If you haven't solved this problem, I would start to make sure that the apache webserver user isn't the root user and has it's own (writable) home directory. This is specified in the apache webserver configuration and the password file in your etc directory.

      Kind regards,
      Marijn Verkerk

       
    • o,r

      o,r - 2007-12-27

      Im having the same error.
      My apache is running as user apache group apache.
      using version 1.03 on gentoo linux.
      Please help..

       
      • Marijn Verkerk

        Marijn Verkerk - 2007-12-27

        Please make sure that the home directory of the apache user is something else than /root, see the /etc/passwd file!

        Marijn

         
    • o,r

      o,r - 2007-12-27

      svn var # cat /etc/passwd | grep apache
      apache:x:81:81:added by portage for apache:/var/www:/sbin/nologin

      The apache home dir is /var/www , own by apache.

      svn var # ls -la /var/www
      total 0
      drwxr-xr-x  3 apache root  80 2007-12-07 00:05 .
      drwxr-xr-x 13 root   root 360 2007-12-13 17:47 ..
      drwxr-xr-x  7 root   root 168 2007-12-26 08:32 localhost

       
    • o,r

      o,r - 2008-01-06

      Marijn
      Is there anything else I should check? I'm kinda stuck with this and it's quite important..

       
      • Marijn Verkerk

        Marijn Verkerk - 2008-01-10

        Hi again,

        Could you please su to apache (as root):
        su apache -

        and then run the svn command manually?

        Does this work?

        Could you show me your environment variables (export's output)?

        Thanks!

        Marijn

        P.S. jlchannel, are you following this? Have you got it solved?

         
    • o,r

      o,r - 2008-01-10

      I cant su to the apache account:

      svn ~ # su apache
      This account is currently not available.

      HOWEVER, the bug is gone and the only thing i did was rebooting the machine since i added RAM.

      Not getting this error again...

       
    • o,r

      o,r - 2008-01-10

      I've got the feeling that it's something with environment variables since this is what could have change from the last time the server booted.

      You will probably know better than me. :)
      Thanks anyway.

       
      • Marijn Verkerk

        Marijn Verkerk - 2008-01-11

        Great news!

        Marijn

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.