<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Brablc.com &#187; Missing Answers</title>
	<atom:link href="http://brablc.com/category/missing-answers/feed/" rel="self" type="application/rss+xml" />
	<link>http://brablc.com</link>
	<description>This is not an acronym, this is a regular surname ...</description>
	<lastBuildDate>Mon, 30 Jan 2012 19:02:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Disable password expiration in Windows 7 Home Premium</title>
		<link>http://brablc.com/2012/01/30/disable-password-expiration-in-windows-7-home-premium/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=disable-password-expiration-in-windows-7-home-premium</link>
		<comments>http://brablc.com/2012/01/30/disable-password-expiration-in-windows-7-home-premium/#comments</comments>
		<pubDate>Mon, 30 Jan 2012 19:02:25 +0000</pubDate>
		<dc:creator>Ondrej</dc:creator>
				<category><![CDATA[Missing Answers]]></category>

		<guid isPermaLink="false">http://brablc.com/?p=147</guid>
		<description><![CDATA[It looks like admin accounts in Windows 7 Home Premium have password expiration set on. However, Windows 7 in Home Premium edition does not have a GUI tool to remove it. There is, however, a command line tool which allows to do it over Windows Management Instrumentation &#8211; its name is wmic. If you want [...]]]></description>
			<content:encoded><![CDATA[<p>It looks like admin accounts in Windows 7 Home Premium have password expiration set on. However, Windows 7 in Home Premium edition does not have a GUI tool to remove it. There is, however, a command line tool which allows to do it over Windows Management Instrumentation &#8211; its name is <strong>wmic</strong>.</p>
<p>If you want to remove password expiration do the following:</p>
<ol>
<li>Click on <strong>Start</strong> button.</li>
<li>Type <strong>wmic</strong></li>
<li>Right click listed program <strong>wmic</strong> and &#8220;Run as Administrator&#8221;</li>
<li>Now you can list accounts that have password expiration set:<br />
<code>path Win32_UserAccount where PasswordExpires=TRUE get Name</code></li>
<li>And you can disable it &#8211; you will be prompted to confirm the change:<br />
<code>path Win32_UserAccount where PasswordExpires=TRUE set PasswordExpires=FALSE</code></li>
</ol>
<p>This is not really a missing answer, however, there are plenty of solutions which do not work well, or contain typos &#8211; mostly because of different quotes used in the command. This script allows changing the expiration at once for all users that have it set &#8211; and it does not contain any quotes <img src='http://brablc.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Anyway, this is so far the biggest failure I have encountered when using Windows 7 Home Premium edition: Force password expiration in home environment and do not provide a GUI how to disable it.</p>
]]></content:encoded>
			<wfw:commentRss>http://brablc.com/2012/01/30/disable-password-expiration-in-windows-7-home-premium/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Write into multiple ssh screens at once</title>
		<link>http://brablc.com/2011/09/15/write-into-multiple-ssh-screens-at-once/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=write-into-multiple-ssh-screens-at-once</link>
		<comments>http://brablc.com/2011/09/15/write-into-multiple-ssh-screens-at-once/#comments</comments>
		<pubDate>Thu, 15 Sep 2011 14:13:44 +0000</pubDate>
		<dc:creator>Ondrej</dc:creator>
				<category><![CDATA[Missing Answers]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://brablc.com/?p=132</guid>
		<description><![CDATA[Sometimes I need to write commands to a handful of SSH sessions at once. I use putty terminal from Windows and did not find anything useful. So I let myself inspired by Rusty Klophaus&#8217;s pecho and wrote a Perl script, which is little bit more gentle to the escape sequences and than a small bash [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes I need to write commands to a handful of SSH sessions at once. I use putty terminal from Windows and did not find anything useful. So I let myself inspired by Rusty Klophaus&#8217;s <a href="http://rustyklophaus.com/articles/20100618-Pecho.html">pecho</a> and wrote a Perl script, which is little bit more gentle to the escape sequences and than a small bash script which will nicely open multiple SSH sessions to given list of hosts. The nice think is that this works almost everywhere and does not need more than one standard Perl library on the writer side (on CentOS just run <em>yum install perl-TermReadKey</em>).</p>
<p><script src="https://gist.github.com/1219314.js"> </script></p>
]]></content:encoded>
			<wfw:commentRss>http://brablc.com/2011/09/15/write-into-multiple-ssh-screens-at-once/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Internal cryptographic library error when signing document</title>
		<link>http://brablc.com/2011/06/25/internal-cryptographic-library-error-when-signing-document/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=internal-cryptographic-library-error-when-signing-document</link>
		<comments>http://brablc.com/2011/06/25/internal-cryptographic-library-error-when-signing-document/#comments</comments>
		<pubDate>Fri, 24 Jun 2011 22:03:26 +0000</pubDate>
		<dc:creator>Ondrej</dc:creator>
				<category><![CDATA[Missing Answers]]></category>

		<guid isPermaLink="false">http://brablc.com/?p=128</guid>
		<description><![CDATA[Adobe Reader marked document signed with PDFCreator as invalid with this error message: Error during signature verification. Error encountered while validating: Internal cryptographic library error. Error Code: 0&#215;2711 &#8211; Czech equivalent &#8212; Chyba v průběhu ověřování podpisu. Při ověřování se vyskytla chyba: Interní chyba šifrovací knihovny. Kód chyby: 0&#215;2711 There is no info available on [...]]]></description>
			<content:encoded><![CDATA[<p>Adobe Reader marked document signed with PDFCreator as invalid with this error message:</p>
<p>Error during signature verification.<br />
Error encountered while validating:<br />
Internal cryptographic library error.<br />
Error Code: 0&#215;2711</p>
<p>&#8211; Czech equivalent &#8212;<br />
Chyba v průběhu ověřování podpisu.<br />
Při ověřování se vyskytla chyba:<br />
Interní chyba šifrovací knihovny.<br />
Kód chyby: 0&#215;2711 </p>
<p>There is no info available on the internet what does it mean, so I contacted support and the answer was easy &#8211; I was signing the document with backup of my private key &#8211; there was no certificate present in that file, so there was not way how to calculate hash of the document. The solution is to export the private key including your certificate.</p>
]]></content:encoded>
			<wfw:commentRss>http://brablc.com/2011/06/25/internal-cryptographic-library-error-when-signing-document/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to use own vim configuration after sudo to shared account</title>
		<link>http://brablc.com/2011/06/17/how-to-use-own-vim-configuration-after-sudo-to-shared-account/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-use-own-vim-configuration-after-sudo-to-shared-account</link>
		<comments>http://brablc.com/2011/06/17/how-to-use-own-vim-configuration-after-sudo-to-shared-account/#comments</comments>
		<pubDate>Fri, 17 Jun 2011 09:34:50 +0000</pubDate>
		<dc:creator>Ondrej</dc:creator>
				<category><![CDATA[Missing Answers]]></category>

		<guid isPermaLink="false">http://brablc.com/?p=120</guid>
		<description><![CDATA[Recently I become a fan of vim &#8211; and after storing my tuned dotvim on github, I found out, that I miss my configuration when I sudo to the root account. However, I&#8217;m not the only sudo user and I we have our own dotvim configuration. Here is a simple solution to be put into [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I become a fan of <a href="http://www.vim.org/">vim</a> &#8211; and after storing my tuned <a href="https://github.com/brablc/dotvim">dotvim</a> on github, I found out, that I miss my configuration when I sudo to the root account. However, I&#8217;m not the only sudo user and I we have our own dotvim configuration. Here is a simple solution to be put into root&#8217;s <strong>.bashrc</strong>:</p>
<p><code>if [ -n "${SUDO_USER}" -a -d "/home/${SUDO_USER}/.vim" ]; then<br />
        alias vim="/usr/bin/vim --cmd \"set runtimepath+=/home/${SUDO_USER}/.vim\" -u /home/${SUDO_USER}/.vimrc"<br />
fi<br />
</code></p>
<p>It took me quite a lot of googling to find the right combintation of $VIMRC, $VIMRUNTIME, $VIMINIT, $VIMHOME &#8211; and finally as you can see, none of those variables is used. Very usefull during debugging was to run vim with <strong>-V</strong>. to see where it looks for its configuration. And yes, I have tried putting the code to set the runtimepath to the .vimrc, but it would have to be conditional and this seems more clean.</p>
]]></content:encoded>
			<wfw:commentRss>http://brablc.com/2011/06/17/how-to-use-own-vim-configuration-after-sudo-to-shared-account/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to change sar output time format to 24 (solution)</title>
		<link>http://brablc.com/2011/06/06/how-to-change-sar-output-time-format-to-24/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-change-sar-output-time-format-to-24</link>
		<comments>http://brablc.com/2011/06/06/how-to-change-sar-output-time-format-to-24/#comments</comments>
		<pubDate>Mon, 06 Jun 2011 19:54:28 +0000</pubDate>
		<dc:creator>Ondrej</dc:creator>
				<category><![CDATA[Missing Answers]]></category>

		<guid isPermaLink="false">http://brablc.com/?p=115</guid>
		<description><![CDATA[I always forget how to change this and Google is not giving the right answer anywhere among top results, so here just for my record: # Put into your .bashrc export LC_TIME="POSIX" # Or use just when needed LC_TIME="POSIX" sar sar is a command from systat package. It provides output in AM/PM format by default. [...]]]></description>
			<content:encoded><![CDATA[<p>I always forget how to change this and Google is not giving the right answer anywhere among top results, so here just for my record:<br />
<code># Put into your .bashrc<br />
export LC_TIME="POSIX"</p>
<p># Or use just when needed<br />
LC_TIME="POSIX" sar</code></p>
<p><strong>sar</strong> is a command from <strong>systat</strong> package. It provides output in AM/PM format by default. Setting the locale LC_TIME to POSIX changes the time format to 24.</p>
]]></content:encoded>
			<wfw:commentRss>http://brablc.com/2011/06/06/how-to-change-sar-output-time-format-to-24/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enabling Integration Features for IE Application Compatibility VPC Images on Windows 7</title>
		<link>http://brablc.com/2011/02/17/enabling-integration-features-for-ie-application-compatibility-vpc-images-on-windows-7/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=enabling-integration-features-for-ie-application-compatibility-vpc-images-on-windows-7</link>
		<comments>http://brablc.com/2011/02/17/enabling-integration-features-for-ie-application-compatibility-vpc-images-on-windows-7/#comments</comments>
		<pubDate>Thu, 17 Feb 2011 10:30:41 +0000</pubDate>
		<dc:creator>Ondrej</dc:creator>
				<category><![CDATA[Missing Answers]]></category>

		<guid isPermaLink="false">http://brablc.com/?p=100</guid>
		<description><![CDATA[We use Microsoft Internet Explorer Application Compatibility VPC Image to test compatibility with IE6, IE7 and IE8. Recently we have moved to Windows 7 and the last update of perpetually expiring images (created last time on January 18, 2011) raised some issues which made enabling of Integration Features quite difficult (BTW, the images have changed [...]]]></description>
			<content:encoded><![CDATA[<p>We use <a href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=21eabb90-958f-4b64-b5f1-73d0a413c8ef&amp;displaylang=en">Microsoft Internet Explorer Application Compatibility VPC Image</a> to test compatibility with IE6, IE7 and IE8. Recently we have moved to Windows 7 and the last update of perpetually expiring images (created last time on January 18, 2011) raised some issues which made enabling of Integration Features quite difficult (BTW, the images have changed filenames, <strong>IE User</strong> does not have password stated in the <code>IE_VPC_ReadMe.txt</code>).</p>
<h4>Missing drivers</h4>
<p>When enabling the features, the installation requested <strong>usbhub.sys</strong> and <strong>usbd.sys</strong>. The first file was recommended by MS to be taken from the Windows XP SP3. I have <a href="http://support.microsoft.com/kb/977285">downloaded the SP3</a> and extracted the file using 7zip:</p>
<p><code>7za x WindowsXP-KB936929-SP3-x86-ENU.exe i386\usb*.*</code></p>
<p>But the installation requested another file &#8211; <strong>usbd.sys</strong>, which is not part of the XP SP3 &#8211; so I have copied the file from my Windows 7 (<code>C:\Windows\System32\drivers\usbd.sys</code>).</p>
<h4>Password prompt</h4>
<p>With enabled integration features the VPC asks for password. As it turned out, it tries to do remote desktop connection to itself. It suggests <strong>Admin</strong> user but <strong>Password1</strong> does not work &#8211; apparently the Admin account is missing completely. <strong>IE User</strong> does not work either, because this user does not have password and cannot make remote desktop connection to this PC. So the solution is to give <strong>IE User</strong> a password and to save the credentials during start up (you may need to delete credentials of the Admin user before using properties on the .VMC files.</p>
<p>This way I have solved all the problems I did not have when running the Compatibility images on <strong>Windows Vista</strong> with earlier images.</p>
]]></content:encoded>
			<wfw:commentRss>http://brablc.com/2011/02/17/enabling-integration-features-for-ie-application-compatibility-vpc-images-on-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Odstranění klávesnice Spojené státy &#8211; mezinárodní ve Windows 7</title>
		<link>http://brablc.com/2010/11/29/odstraneni-klavesnice-spojene-staty-mezinarodni-ve-windows-7/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=odstraneni-klavesnice-spojene-staty-mezinarodni-ve-windows-7</link>
		<comments>http://brablc.com/2010/11/29/odstraneni-klavesnice-spojene-staty-mezinarodni-ve-windows-7/#comments</comments>
		<pubDate>Mon, 29 Nov 2010 08:17:39 +0000</pubDate>
		<dc:creator>Ondrej</dc:creator>
				<category><![CDATA[Czech]]></category>
		<category><![CDATA[Missing Answers]]></category>

		<guid isPermaLink="false">http://brablc.com/?p=85</guid>
		<description><![CDATA[Přepínám mezi českou a anglickou klávesnicí, ve Windows 7 je ale super vychytávka při psaní s defaultní anglickou klávesnicí &#8211; Spojené státy (mezinárodní), kdy uvozovky a jiné podobné znaky slouží ke psaní znaků s diakritikou. Řešení je změnit klávesnici na Angličtina (Spojené státy). Nicméně to mi pouze přidá další rozložení pro psaní Anglickým jazykem. Mezi [...]]]></description>
			<content:encoded><![CDATA[<p>Přepínám mezi českou a anglickou klávesnicí, ve Windows 7 je ale super vychytávka při psaní s defaultní anglickou klávesnicí &#8211; <strong>Spojené státy (mezinárodní)</strong>, kdy uvozovky a jiné podobné znaky slouží ke psaní znaků s diakritikou. Řešení je změnit klávesnici na <strong>Angličtina (Spojené státy)</strong>. Nicméně to mi pouze přidá další rozložení pro psaní Anglickým jazykem. Mezi těmito rozloženími mě Windows přepínají natolik náhodně, že jsem to dodnes nepochopil.</p>
<p>Zatím jediný způsob jak se toho nadobro zbavit pro mě byl zásah v registrech &#8211; smazal jsem rozložení z registrů:</p>
<blockquote><p>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layouts\00020409]<br />
&#8220;Layout Text&#8221;=&#8221;United States-International&#8221;<br />
&#8220;Layout Display Name&#8221;=&#8221;@%SystemRoot%\\system32\\input.dll,-5026&#8243;<br />
&#8220;Layout File&#8221;=&#8221;KBDUSX.DLL&#8221;<br />
&#8220;Layout Id&#8221;=&#8221;0001&#8243;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://brablc.com/2010/11/29/odstraneni-klavesnice-spojene-staty-mezinarodni-ve-windows-7/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Disable user authentication for subdirectory when using RewriteRule on Apache server</title>
		<link>http://brablc.com/2010/08/30/disable-user-authentication-for-subdirectory-when-using-mod_rewrite-on-apache-server/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=disable-user-authentication-for-subdirectory-when-using-mod_rewrite-on-apache-server</link>
		<comments>http://brablc.com/2010/08/30/disable-user-authentication-for-subdirectory-when-using-mod_rewrite-on-apache-server/#comments</comments>
		<pubDate>Mon, 30 Aug 2010 13:18:33 +0000</pubDate>
		<dc:creator>Ondrej</dc:creator>
				<category><![CDATA[Missing Answers]]></category>

		<guid isPermaLink="false">http://brablc.com/?p=75</guid>
		<description><![CDATA[If you protect your private beta release from public with AuthType and you are using RewriteRule from mod_rewrite, you will soon find, that combination of &#60;Location&#62; and  Satisfy does not work for you &#8211; it does not allow access to the subdirectory as expected. &#60;VirtualHost *:80&#62; ServerName beta.example.com DocumentRoot /var/www/example &#60;Location /&#62; AuthType basic AuthName [...]]]></description>
			<content:encoded><![CDATA[<p>If you protect your private beta release from public with <a href="http://httpd.apache.org/docs/2.0/mod/core.html#authtype"><strong>AuthType</strong></a> and you are using <strong><a href="http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewriterule">RewriteRule</a> </strong>from <a href="http://httpd.apache.org/docs/current/mod/mod_rewrite.html">mod_rewrite</a>, you will soon find, that combination of <a href="http://httpd.apache.org/docs/2.0/mod/core.html#location"><strong>&lt;Location&gt;</strong></a> and  <a href="http://httpd.apache.org/docs/2.0/mod/core.html#satisfy"><strong>Satisfy</strong></a> does not work for you &#8211; it does not allow access to the subdirectory as expected.</p>
<pre>&lt;VirtualHost *:80&gt;
 ServerName beta.example.com
 DocumentRoot /var/www/example

 &lt;Location /&gt;
 AuthType basic
 AuthName "Top Secret Beta!"
 AuthUserFile /etc/httpd/htpasswd.beta
 Require valid-user
 &lt;/Location&gt;

 &lt;Location /upload-callback&gt;
 Allow from all
 Satisfy Any
 &lt;/Location&gt;

 &lt;Directory /var/www/example&gt;
 RewriteEngine On
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule !\.(swf|pdf|php|js|ico|txt|gif|jpg|png|css|rar|zip|tar\.gz)$ /index.php [L]
 &lt;/Directory&gt;
&lt;/VirtualHost&gt;
</pre>
<p>With this setup, the subdirectory will require valid user &#8211; because <strong>mod_rewrite</strong> is applied before <strong>&lt;Location&gt;</strong> and changes the URL, which no longer matches. You can change this by adding an alias:</p>
<pre>Alias /upload-callback /var/www/example/index.php
</pre>
<p>Now all URLs will go through your nice url generator index.php, but the specified URL will be checked against &lt;Location&gt; and give access based on the Allow directive (in this case to everyone).</p>
]]></content:encoded>
			<wfw:commentRss>http://brablc.com/2010/08/30/disable-user-authentication-for-subdirectory-when-using-mod_rewrite-on-apache-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal 5 and strange behavior of jQuery</title>
		<link>http://brablc.com/2010/06/28/drupal-5-and-strange-behavior-of-jquery/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=drupal-5-and-strange-behavior-of-jquery</link>
		<comments>http://brablc.com/2010/06/28/drupal-5-and-strange-behavior-of-jquery/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 12:22:58 +0000</pubDate>
		<dc:creator>Ondrej</dc:creator>
				<category><![CDATA[Missing Answers]]></category>

		<guid isPermaLink="false">http://brablc.com/?p=70</guid>
		<description><![CDATA[We have some jQuery code, that we use on all our company sites, however, this code did not work on Drupal sites. jQuery call to position() was returning &#8220;static&#8221; instead of expected object with top and left properties. We thought we should use newer jQuery (instead of 1.2.6), but this throwed &#8220;too much recursion&#8221; error [...]]]></description>
			<content:encoded><![CDATA[<p>We have some jQuery code, that we use on all our company sites, however, this code did not work on Drupal sites. jQuery call to <strong>position()</strong> was returning <strong>&#8220;static&#8221;</strong> instead of expected object with <strong>top</strong> and <strong>left </strong>properties. We thought we should use newer jQuery (instead of 1.2.6), but this throwed &#8220;too much recursion&#8221; error in Firebug &#8211; which we tried to solve with patch from bug <a href="http://drupal.org/node/335741">http://drupal.org/node/335741</a> . However, neither upgrade nor that patch really helped. The reason why <strong>position()</strong> did not work was hidden here: <em>/sites/all/modules/jquery_update/compat.js</em> (I was looking at linked files and this one sounded suspiciously).</p>
<p>And indeed, these helpers caused the problem:</p>
<pre>// UPGRADE: The following css helpers should now be used as:
// .css("top") or .css("top","30px")
jQuery.each("top,left,position,float,overflow,color,background".split(","), function(i,n){
  jQuery.fn[ n ] = function(h) {
    return h == undefined ?
      ( this.length ? jQuery.css( this[0], n ) : null ) :
      this.css( n, h );
  };
});</pre>
<p>We have replaced <strong>position</strong> with <strong>xposition</strong> and our jQuery works as expected even with version 1.2.6.</p>
]]></content:encoded>
			<wfw:commentRss>http://brablc.com/2010/06/28/drupal-5-and-strange-behavior-of-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ViewVC modified rights of the subversion repository</title>
		<link>http://brablc.com/2009/10/25/viewvc-modified-rights-of-the-subversion-repository/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=viewvc-modified-rights-of-the-subversion-repository</link>
		<comments>http://brablc.com/2009/10/25/viewvc-modified-rights-of-the-subversion-repository/#comments</comments>
		<pubDate>Sun, 25 Oct 2009 09:00:32 +0000</pubDate>
		<dc:creator>Ondrej</dc:creator>
				<category><![CDATA[Missing Answers]]></category>

		<guid isPermaLink="false">http://brablc.com/?p=38</guid>
		<description><![CDATA[From various reasons I ended up with some sophisticated rights settings for my subversion repository, the main idea is to grant access based on group. So I need that the files are created with proper group and with write right on the group. For the command line ans svn+ssh access I created following files (based [...]]]></description>
			<content:encoded><![CDATA[<p>From various reasons I ended up with some sophisticated rights settings for my <a href="http://teamforge.net/viewvc/viewvc.cgi/">subversion repository</a>, the main idea is to grant access based on group. So I need that the files are created with proper group and with write right on the group.</p>
<p>For the command line ans svn+ssh access I created following files (based on some advice, which I found 4 years ago and did not notice a link):</p>
<p><strong>/usr/local/bin/svn</strong></p>
<pre>
#!/bin/sh
umask 002
/usr/bin/svn.orig "$@"
</pre>
<p><strong>/usr/local/bin/svnserver</strong>
</pre>
<p>#!/bin/sh<br />
umask 002<br />
/usr/bin/svnserve.orig "$@"
</pre>
<p>As big surprise you will find that the web interface modifies files in the subversion repository - it removes write permission on group. I have solved this by adding following line to <strong>viewvc.cgi</strong>:</p>
<pre>
--- viewvc.cgi.orig     2009-10-25 09:55:34.738716284 +0100
+++ viewvc.cgi  2009-10-25 09:51:14.914726062 +0100
@@ -58,4 +58,5 @@

 server = sapi.CgiServer()
 cfg = viewvc.load_config(CONF_PATHNAME, server)
+os.umask(0002)
 viewvc.main(server, cfg)
</pre>
]]></content:encoded>
			<wfw:commentRss>http://brablc.com/2009/10/25/viewvc-modified-rights-of-the-subversion-repository/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

