]> pere.pagekite.me Git - homepage.git/blobdiff - blog/index.rss
Generated.
[homepage.git] / blog / index.rss
index f6b4be66fd91740e232a1b21fdd9b252c7931feb..b17eaee40b28cd99ab8d224d266a2abffe957f79 100644 (file)
@@ -6,6 +6,107 @@
                 <link>http://people.skolelinux.org/pere/blog/</link>
                 <atom:link href="http://people.skolelinux.org/pere/blog/index.rss" rel="self" type="application/rss+xml" />
        
+       <item>
+               <title>Broken umask handling with sshfs</title>
+               <link>http://people.skolelinux.org/pere/blog/Broken_umask_handling_with_sshfs.html</link>
+               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Broken_umask_handling_with_sshfs.html</guid>
+                <pubDate>Thu, 26 Aug 2010 13:30:00 +0200</pubDate>
+               <description>
+&lt;p&gt;My file system sematics program
+&lt;a href=&quot;http://people.skolelinux.org/pere/blog/Testing_if_a_file_system_can_be_used_for_home_directories___.html&quot;&gt;presented
+a few days ago&lt;/a&gt; is very useful to verify that a file system can
+work as a unix home directory,and today I had to extend it a bit.  I&#39;m
+looking into alternatives for home directory access here at the
+University of Oslo, and one of the options is sshfs.  My friend
+Finn-Arne mentioned a while back that they had used sshfs with Debian
+Edu, but stopped because of problems.  I asked today what the problems
+where, and he mentioned that sshfs failed to handle umask properly.
+Trying to detect the problem I wrote this addition to my fs testing
+script:&lt;/p&gt;
+
+&lt;pre&gt;
+mode_t touch_get_mode(const char *name, mode_t mode) {
+  mode_t retval = 0;
+  int fd = open(name, O_RDWR|O_CREAT|O_LARGEFILE, mode);
+  if (-1 != fd) {
+    unlink(name);
+    struct stat statbuf;
+    if (-1 != fstat(fd, &amp;statbuf)) {
+      retval = statbuf.st_mode &amp; 0x1ff;
+    }
+    close(fd);
+  }
+  return retval;
+}
+
+/* Try to detect problem discovered using sshfs */
+int test_umask(void) {
+  printf(&quot;info: testing umask effect on file creation\n&quot;);
+
+  mode_t orig_umask = umask(000);
+  mode_t newmode;
+  if (0666 != (newmode = touch_get_mode(&quot;foobar&quot;, 0666))) {
+    printf(&quot;  error: Wrong file mode %o when creating using mode 666 and umask 000\n&quot;,
+           newmode);
+  }
+  umask(007);
+  if (0660 != (newmode = touch_get_mode(&quot;foobar&quot;, 0666))) {
+    printf(&quot;  error: Wrong file mode %o when creating using mode 666 and umask 007\n&quot;,
+           newmode);
+  }
+
+  umask (orig_umask);
+  return 0;
+}
+
+int main(int argc, char **argv) {
+  [...]
+  test_umask();
+  return 0;
+}
+&lt;/pre&gt;
+
+&lt;p&gt;Sure enough.  On NFS to a netapp, I get this result:&lt;/p&gt;
+
+&lt;pre&gt;
+Testing POSIX/Unix sematics on file system
+info: testing symlink creation
+info: testing subdirectory creation
+info: testing fcntl locking
+  Read-locking 1 byte from 1073741824
+  Read-locking 510 byte from 1073741826
+  Unlocking 1 byte from 1073741824
+  Write-locking 1 byte from 1073741824
+  Write-locking 510 byte from 1073741826
+  Unlocking 2 byte from 1073741824
+info: testing umask effect on file creation
+&lt;/pre&gt;
+
+&lt;p&gt;When mounting the same directory using sshfs, I get this
+result:&lt;/p&gt;
+
+&lt;pre&gt;
+Testing POSIX/Unix sematics on file system
+info: testing symlink creation
+info: testing subdirectory creation
+info: testing fcntl locking
+  Read-locking 1 byte from 1073741824
+  Read-locking 510 byte from 1073741826
+  Unlocking 1 byte from 1073741824
+  Write-locking 1 byte from 1073741824
+  Write-locking 510 byte from 1073741826
+  Unlocking 2 byte from 1073741824
+info: testing umask effect on file creation
+  error: Wrong file mode 644 when creating using mode 666 and umask 000
+  error: Wrong file mode 640 when creating using mode 666 and umask 007
+&lt;/pre&gt;
+
+&lt;p&gt;So, I can conclude that sshfs is better than smb to a Netapp or a
+Windows server, but not good enough to be used as a home
+directory.&lt;/p&gt;
+</description>
+       </item>
+       
        <item>
                <title>Elektronisk stemmegiving er ikke til å stole på - heller ikke i Norge</title>
                <link>http://people.skolelinux.org/pere/blog/Elektronisk_stemmegiving_er_ikke_til____stole_p_____heller_ikke_i_Norge.html</link>
@@ -655,125 +756,5 @@ it.&lt;/p&gt;
 </description>
        </item>
        
-       <item>
-               <title>First Debian Edu test release (alpha0) based on Squeeze is released</title>
-               <link>http://people.skolelinux.org/pere/blog/First_Debian_Edu_test_release__alpha0__based_on_Squeeze_is_released.html</link>
-               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/First_Debian_Edu_test_release__alpha0__based_on_Squeeze_is_released.html</guid>
-                <pubDate>Tue, 27 Jul 2010 17:45:00 +0200</pubDate>
-               <description>
-&lt;p&gt;I just posted this announcement culminating several months of work
-with the next Debian Edu release.  Not nearly done, but one major step
-completed.&lt;/p&gt;
-
-&lt;blockquote&gt;
-&lt;p&gt;This is the first test release based on Squeeze. The focus of this
-release is to test the user application selection. To have a look,
-install the standalone profile and let the developers know if the set
-of installed packages i.e. applications should be modified. If some
-user application is missing, or if there are some applications that no
-longer make sense to be included in Debian Edu, please let us know.
-Also, if a useful application is missing the translation for your
-language of choice, please let us know too.&lt;/p&gt;
-
-&lt;p&gt;In addition, feedback and help to polish the desktop (menus,
-artwork, starters, etc.) is appreciated. We would like to ship a nice
-and handy KDE4 desktop targeted for schools out of the box.&lt;/p&gt;
-
-&lt;p&gt;The other profiles should be installable, but there is a lot more
-work left to be done before they are ready, so do not expect to
-much.&lt;/p&gt;
-
-&lt;p&gt;Changes compared to the lenny based version&lt;/p&gt;
-
-&lt;ul&gt;
-&lt;li&gt;Everything from Debian Squeeze
-&lt;ul&gt;
-  &lt;li&gt;Desktop environment KDE 4.4 =&gt; the new KDE desktop in
-         combination with some new artwork
-  &lt;li&gt;Web browser Iceweasel 3.5
-  &lt;li&gt;OpenOffice.org 3.2
-  &lt;li&gt;Educational toolbox GCompris 9.3
-  &lt;li&gt;Music creator Rosegarden 10.04.2
-  &lt;li&gt;Image editor Gimp 2.6.10
-  &lt;li&gt;Virtual universe Celestia 1.6.0
-  &lt;li&gt;Virtual stargazer Stellarium 0.10.4
-  &lt;li&gt;3D modeler Blender 2.49.2 (new application)
-  &lt;li&gt;Video editor Kdenlive 0.7.7 (new application)
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;Now using Kerberos for password checking (migration not finished).
-    Enabled for:
-&lt;ul&gt;
-  &lt;li&gt;PAM
-  &lt;li&gt;LDAP
-  &lt;li&gt;IMAP
-  &lt;li&gt;SMTP (sender verification)
-&lt;/ul&gt;
-&lt;/li&gt;
-&lt;li&gt;New experimental roaming workstation profile for laptops.&lt;/li&gt;
-&lt;li&gt;Show welcome page to users when they first log in. The URL is
-    fetched from LDAP.&lt;/li&gt;
-&lt;li&gt;New LXDE desktop option, in addition to KDE (default) and Gnome.&lt;/li&gt;
-&lt;li&gt;General cleanup (not finished)&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;The following features are not working as they should&lt;/p&gt;
-
-&lt;ul&gt;
-&lt;li&gt;No web based administration tool for creating users and groups. The
-    scripts ldap-createuser-krb and ldap-add-user-to-group can be used
-    for testing.&lt;/li&gt;
-&lt;li&gt;DVD installs are missing debian-installer images for the PXE boot,
-    and do not set up the PXE menu on eth0 because of this. LTSP
-    clients should still boot from eth1 on thin client servers.&lt;/li&gt;
-&lt;li&gt;The restructured KDE menu is not implemented.&lt;/li&gt;
-&lt;li&gt;The LDAP server setup need to be reviewed for security.&lt;/li&gt;
-&lt;li&gt;The LDAP directory structure need to be reworked.&lt;/li&gt;
-&lt;li&gt;Different sets of packages are installed when using the DVD and the
-    netinst CD. More packages are installed using the netinst CD.&lt;/li&gt;
-&lt;li&gt;The jackd package fail to install. This is believed to be caused by
-    some ongoing transition, and hopefully should be solved soon. The
-    jackd1 package can be installed manually for those that need it.&lt;/li&gt;
-&lt;li&gt;Some packages lack translations. See
-    http://wiki.debian.org/DebianEdu/Status/Squeeze for updated status,
-    and help out with translations.&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;p&gt;To download this multiarch netinstall release you can use&lt;/p&gt;
-
-&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;ftp://ftp.skolelinux.org/skolelinux-cd/squeeze-alpha/debian-edu-6.0.0+edua0-CD.iso&quot;&gt;ftp://ftp.skolelinux.org/skolelinux-cd/squeeze-alpha/debian-edu-6.0.0+edua0-CD.iso&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;http://ftp.skolelinux.org/skolelinux-cd/squeeze-alpha/debian-edu-6.0.0+edua0-CD.iso&quot;&gt;http://ftp.skolelinux.org/skolelinux-cd/squeeze-alpha/debian-edu-6.0.0+edua0-CD.iso&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;rsync -avzP ftp.skolelinux.org::skolelinux-cd/squeeze-alpha/debian-edu-6.0.0+edua0-CD.iso&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;To download this multiarch dvd release you can use&lt;/p&gt;
-
-&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;ftp://ftp.skolelinux.org/skolelinux-cd/squeeze-alpha/debian-edu-6.0.0+edua0-DVD.iso&quot;&gt;ftp://ftp.skolelinux.org/skolelinux-cd/squeeze-alpha/debian-edu-6.0.0+edua0-DVD.iso&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;http://ftp.skolelinux.org/skolelinux-cd/squeeze-alpha/debian-edu-6.0.0+edua0-DVD.iso&quot;&gt;http://ftp.skolelinux.org/skolelinux-cd/squeeze-alpha/debian-edu-6.0.0+edua0-DVD.iso&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;rsync -avzP ftp.skolelinux.org::skolelinux-cd/squeeze-alpha/debian-edu-6.0.0+edua0-DVD.iso&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;p&gt;There is no source DVD available yet. It will be prepared when we
-get closer to the final release.&lt;/p&gt;
-
-&lt;p&gt;The MD5SUM of these images are&lt;/p&gt;
-
-&lt;ul&gt;
-&lt;li&gt;3dbf45d59f42a53518b6e3c9ec3b5eb6 debian-edu-6.0.0+edua0-CD.iso&lt;/li&gt;
-&lt;li&gt;22f2cbfce281d1c6e478be452638675d debian-edu-6.0.0+edua0-DVD.iso&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;p&gt;The SHA1SUM of these images are&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;c53d1b69b40cf37cd27aefaf33f6f6a3821bedf0 debian-edu-6.0.0+edua0-CD.iso&lt;/li&gt;
-&lt;li&gt;2ec29d7db676d59d32197b05c277ffe16348376c debian-edu-6.0.0+edua0-DVD.iso&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;How to report bugs:
-http://wiki.debian.org/DebianEdu/HowTo/ReportBugsInBugzilla&lt;/p&gt;
-
-&lt;p&gt;Please direct replies to debian-edu@lists.debian.org&lt;/p&gt;
-&lt;/blockquote&gt;
-</description>
-       </item>
-       
         </channel>
 </rss>