Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to view own svn permissions

Tags:

I need to view svn permissions assigned to me. Is there any way to do it with out accessing to svn configuration files?

like image 972
Ilia Avatar asked Oct 04 '12 10:10

Ilia


People also ask

Does svn store file permissions?

Graham, svn doesn't store permissions. Your only option is to wrap your call to svn in a script. The script should call svn with its arguments, then set the permissions afterward. Depending on your environment, you might need to call your script svn and tweak your PATH to ensure it gets called.

How do I know if I have svn access?

To check whether it is installed or not use following command. If Subversion client is not installed, then command will report error, otherwise it will display the version of the installed software. If you are using RPM-based GNU/Linux, then use yum command for installation.

How do I give permission to a folder in svn?

If you have control over the filesystem in the svn server and that filesystem is ACL capable (for example ext3/4) you can turn on ACLs to have a grain control over the permissions of you svn tree. The directory folder3 will store the permissions for both groups which cannot be done with default unix permissions.


1 Answers

The answer is: it depends, but normally no.

Subversion has no concept of permissions or users or logins. That might sound strange to the vast majority of people who use Subversion since they need to use accounts and logins, but Subversion does not handle security directly.

Instead, Subversion passes security control to the server that's acting as a Subversion server. For example, if you use Apache httpd, you could use Basic HTTP authentication, LDAP, or a wide variety of authentication mechanisms that Apache httpd can offer. If Apache httpd says you're cool, Subversion says you're cool.

Even the base svnserve process can use anything that handles SASL authentication.

Then, you have pre-commit hooks that can take away write permission from the user outside of the server's security mechanism.

Now, it's possible for the security mechanism to tell you your permissions, but I've rarely seen it. For example, a simple JavaScript can display the user permissions from basic httpd authentication.

I wrote a pre-commit hook that keeps its security control file inside the repository where everyone can view it. This allows a manager of a project to change the project's permissions without having to get onto the Subversion server (or more importantly, pester me to do it). However, even that doesn't tell you the permission from the server's authentication mechanism.

So, the answer is probably no. There's probably no way to tell at your site what permissions you have with Subversion because even Subversion itself doesn't know.

like image 118
David W. Avatar answered Oct 05 '22 17:10

David W.