red hat enterprise linux – Sheep Guarding Llama https://sheepguardingllama.com Scott Alan Miller :: A Life Online Sun, 16 Nov 2008 19:19:02 +0000 en-US hourly 1 https://wordpress.org/?v=6.9.1 Subversion Permission Issues https://sheepguardingllama.com/2008/11/subversion-permission-issues/ https://sheepguardingllama.com/2008/11/subversion-permission-issues/#comments Sun, 16 Nov 2008 19:19:02 +0000 http://www.sheepguardingllama.com/?p=2940 Continue reading "Subversion Permission Issues"

]]>
In my installation of Subversion (SVN) on Red Hat Enterprise Linux 5 (a.k.a. RHEL 5 or CentOS 5), I was attempting to access my working Subversion repository through the web interface using Apache.  I came across a permissions issue giving the following errors:

This one is from the Apache error log (/var/log/httpd/error_log) and is generated whenever an attempt to connect to the resource via the web interface is made:

[error] [client 127.0.0.1] Could not open the requested SVN filesystem  [500, #2]

This is what was visible from the web browser.  This is its rendering of the XML response.

<D:error>
<C:error/>
<m:human-readable errcode=”2″>
Could not open the requested SVN filesystem
</m:human-readable>
</D:error>

This one arose when attempting to run the svn command as the apache user (sudo -u apache svn list….)

svn: Can’t open file ‘/root/.subversion/servers’: Permission denied

I eventually discovered that this problem was being caused by the Subversion binary looking to the root home directory, instead of to the Apache / httpd home directory (~apache which was /var/www in my configuration.)  This is not the correct behaviour but until the issue is fixed you can fix the problem yourself with this:

cp -r /root/.subversion/* ~apache/.subversion/

chown -R apache:apache ~apache/.subversion/

]]>
https://sheepguardingllama.com/2008/11/subversion-permission-issues/feed/ 3
Issues Sharing Automount Home Directories from Solaris to Linux https://sheepguardingllama.com/2008/02/issues-sharing-automount-home-directories-from-solaris-to-linux/ https://sheepguardingllama.com/2008/02/issues-sharing-automount-home-directories-from-solaris-to-linux/#respond Sat, 09 Feb 2008 12:04:00 +0000 http://www.sheepguardingllama.com/?p=2235 Continue reading "Issues Sharing Automount Home Directories from Solaris to Linux"

]]>
I discovered this problem while attempting to share our automounted home directories from my Solaris 10 NFS file server to my SUSE and Red Hat Linux NFS clients.

automount[10581]: >> mount: block device 192.168.0.2:/data/home/samiller is write-protected, mounting read-only
kernel: call_verify: server 192.168.0.2 requires stronger authentication.

It turns out that the solution is quite simple. The issue is with a mismatch of anonymous credentials. Let’s take a look at the erroneous entry in /etc/dfs/dfstab on the Solaris NFS server:

share -F nfs -o public,nosuid,rw,anon=-1 -d "backup" /data

The piece of this configuration that is an issue here is “anon=-1”. In theory this is designed to block users who do not have accounts on the local system. However this causes issues with Linux systems. You can solve this problem by simply removing the anon setting from the configuration file. Not an ideal fix but it does solve the problem.

share -F nfs -o public,nosuid,rw -d "backup" /data

Simply run the “shareall” command and you should be back in business.

]]>
https://sheepguardingllama.com/2008/02/issues-sharing-automount-home-directories-from-solaris-to-linux/feed/ 0