]> pere.pagekite.me Git - homepage.git/blob - blog/index.rss
9267d3bceeeb0c155dd8cb7e50f52c299cbfa58e
[homepage.git] / blog / index.rss
1 <?xml version="1.0" encoding="utf-8"?>
2 <rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/' xmlns:atom="http://www.w3.org/2005/Atom">
3 <channel>
4 <title>Petter Reinholdtsen</title>
5 <description></description>
6 <link></link>
7 <atom:link href="index.rss" rel="self" type="application/rss+xml" />
8
9 <item>
10 <title>Forcing new users to change their password on first login</title>
11 <link>Forcing_new_users_to_change_their_password_on_first_login.html</link>
12 <guid isPermaLink="true">Forcing_new_users_to_change_their_password_on_first_login.html</guid>
13 <pubDate>Sun, 2 May 2010 13:40:00 +0200</pubDate>
14 <description>
15 &lt;p&gt;One interesting feature in Active Directory, is the ability to
16 create a new user with an expired password, and thus force the user to
17 change the password on the first login attempt.&lt;/p&gt;
18
19 &lt;p&gt;I&#39;m not quite sure how to do that with the LDAP setup in Debian
20 Edu, but did some initial testing with a local account. The account
21 and password aging information is available in /etc/shadow, but
22 unfortunately, it is not possible to specify an expiration time for
23 passwords, only a maximum age for passwords.&lt;/p&gt;
24
25 &lt;p&gt;A freshly created account (using adduser test) will have these
26 settings in /etc/shadow:&lt;/p&gt;
27
28 &lt;blockquote&gt;&lt;pre&gt;
29 root@tjener:~# chage -l test
30 Last password change : May 02, 2010
31 Password expires : never
32 Password inactive : never
33 Account expires : never
34 Minimum number of days between password change : 0
35 Maximum number of days between password change : 99999
36 Number of days of warning before password expires : 7
37 root@tjener:~#
38 &lt;/pre&gt;&lt;/blockquote&gt;
39
40 &lt;p&gt;The only way I could come up with to create a user with an expired
41 account, is to change the date of the last password change to the
42 lowest value possible (January 1th 1970), and the maximum password age
43 to the difference in days between that date and today. To make it
44 simple, I went for 30 years (30 * 365 = 10950) and January 2th (to
45 avoid testing if 0 is a valid value).&lt;/p&gt;
46
47 &lt;p&gt;After using these commands to set it up, it seem to work as
48 intended:&lt;/p&gt;
49
50 &lt;blockquote&gt;&lt;pre&gt;
51 root@tjener:~# chage -d 1 test; chage -M 10950 test
52 root@tjener:~# chage -l test
53 Last password change : Jan 02, 1970
54 Password expires : never
55 Password inactive : never
56 Account expires : never
57 Minimum number of days between password change : 0
58 Maximum number of days between password change : 10950
59 Number of days of warning before password expires : 7
60 root@tjener:~#
61 &lt;/pre&gt;&lt;/blockquote&gt;
62
63 &lt;p&gt;So far I have tested this with ssh and console, and kdm (in
64 Squeeze) login, and all ask for a new password before login in the
65 user (with ssh, I was thrown out and had to log in again).&lt;/p&gt;
66
67 &lt;p&gt;Perhaps we should set up something similar for Debian Edu, to make
68 sure only the user itself have the account password?&lt;/p&gt;
69
70 &lt;p&gt;If you want to comment on or help out with implementing this for
71 Debian Edu, please contact us on debian-edu@lists.debian.org.&lt;/p&gt;
72 </description>
73 </item>
74
75 <item>
76 <title>Thoughts on roaming laptop setup for Debian Edu</title>
77 <link>Thoughts_on_roaming_laptop_setup_for_Debian_Edu.html</link>
78 <guid isPermaLink="true">Thoughts_on_roaming_laptop_setup_for_Debian_Edu.html</guid>
79 <pubDate>Wed, 28 Apr 2010 20:40:00 +0200</pubDate>
80 <description>
81 &lt;p&gt;For some years now, I have wondered how we should handle laptops in
82 Debian Edu. The Debian Edu infrastructure is mostly designed to
83 handle stationary computers, and less suited for computers that come
84 and go.&lt;/p&gt;
85
86 &lt;p&gt;Now I finally believe I have an sensible idea on how to adjust
87 Debian Edu for laptops, by introducing a new profile for them, for
88 example called Roaming Workstations. Here are my thought on this.
89 The setup would consist of the following:&lt;/p&gt;
90
91 &lt;ul&gt;
92
93 &lt;li&gt;During installation, the user name of the owner / primary user of
94 the laptop is requested and a local home directory is set up for
95 the user, with uid and gid information fetched from the LDAP
96 server. This allow the user to work also when offline. The
97 central home directory can be available in a subdirectory on
98 request, for example mounted via CIFS. It could be mounted
99 automatically when a user log in while on the Debian Edu network,
100 and unmounted when the machine is taken away (network down,
101 hibernate, etc), it can be set up to do automatic mounting on
102 request (using autofs), or perhaps some GUI button on the desktop
103 can be used to access it when needed. Perhaps it is enough to use
104 the fish protocol in KDE?&lt;/li&gt;
105
106 &lt;li&gt;Password checking is set up to use LDAP or Kerberos
107 authentication when the machine is on the Debian Edu network, and
108 to cache the password for offline checking when the machine unable
109 to reach the LDAP or Kerberos server. This can be done using
110 &lt;a href=&quot;http://www.padl.com/OSS/pam_ccreds.html&quot;&gt;libpam-ccreds&lt;/a&gt;
111 or the Fedora developed
112 &lt;a href=&quot;https://fedoraproject.org/wiki/Features/SSSD&quot;&gt;System
113 Security Services Daemon&lt;/a&gt; packages.&lt;/li&gt;
114
115 &lt;li&gt;File synchronisation with the central home directory is set up
116 using a shared directory in both the local and the central home
117 directory, using unison.&lt;/li&gt;
118
119 &lt;li&gt;Printing should be set up to print to all printers broadcasting
120 their existence on the local network, and should then work out of
121 the box with CUPS. For sites needing accurate printer quotas, some
122 system with Kerberos authentication or printing via ssh could be
123 implemented.&lt;/li&gt;
124
125 &lt;li&gt;For users that should have local root access to their laptop,
126 sudo should be used to allow this to the local user.&lt;/li&gt;
127
128 &lt;li&gt;It would be nice if user and group information from LDAP is
129 cached on the client, but given that there are entries for the
130 local user and primary group in /etc/, it should not be needed.&lt;/li&gt;
131
132 &lt;/ul&gt;
133
134 &lt;p&gt;I believe all the pieces to implement this are in Debian/testing at
135 the moment. If we work quickly, we should be able to get this ready
136 in time for the Squeeze release to freeze. Some of the pieces need
137 tweaking, like libpam-ccreds should get support for pam-auth-update
138 (&lt;a href=&quot;http://bugs.debian.org/566718&quot;&gt;#566718&lt;/a&gt;) and nslcd (or
139 perhaps debian-edu-config) should get some integration code to stop
140 its daemon when the LDAP server is unavailable to avoid long timeouts
141 when disconnected from the net. If we get Kerberos enabled, we need
142 to make sure we avoid long timeouts there too.&lt;/p&gt;
143
144 &lt;p&gt;If you want to help out with implementing this for Debian Edu,
145 please contact us on debian-edu@lists.debian.org.&lt;/p&gt;
146 </description>
147 </item>
148
149 <item>
150 <title>Great book: &quot;Content: Selected Essays on Technology, Creativity, Copyright, and the Future of the Future&quot;</title>
151 <link>Great_book___Content__Selected_Essays_on_Technology__Creativity__Copyright__and_the_Future_of_the_Future_.html</link>
152 <guid isPermaLink="true">Great_book___Content__Selected_Essays_on_Technology__Creativity__Copyright__and_the_Future_of_the_Future_.html</guid>
153 <pubDate>Mon, 19 Apr 2010 17:10:00 +0200</pubDate>
154 <description>
155 &lt;p&gt;The last few weeks i have had the pleasure of reading a
156 thought-provoking collection of essays by Cory Doctorow, on topics
157 touching copyright, virtual worlds, the future of man when the
158 conscience mind can be duplicated into a computer and many more. The
159 book titled &quot;Content: Selected Essays on Technology, Creativity,
160 Copyright, and the Future of the Future&quot; is available with few
161 restrictions on the web, for example from
162 &lt;a href=&quot;http://craphound.com/content/&quot;&gt;his own site&lt;/a&gt;. I read the
163 epub-version from
164 &lt;a href=&quot;http://www.feedbooks.com/book/2883&quot;&gt;feedbooks&lt;/a&gt; using
165 &lt;a href=&quot;http://www.fbreader.org/&quot;&gt;fbreader&lt;/a&gt; and my N810. I
166 strongly recommend this book.&lt;/p&gt;
167 </description>
168 </item>
169
170 <item>
171 <title>Kerberos for Debian Edu/Squeeze?</title>
172 <link>Kerberos_for_Debian_Edu_Squeeze_.html</link>
173 <guid isPermaLink="true">Kerberos_for_Debian_Edu_Squeeze_.html</guid>
174 <pubDate>Wed, 14 Apr 2010 17:20:00 +0200</pubDate>
175 <description>
176 &lt;p&gt;&lt;a href=&quot;http://www.nuug.no/aktiviteter/20100413-kerberos/&quot;&gt;Yesterdays
177 NUUG presentation&lt;/a&gt; about Kerberos was inspiring, and reminded me
178 about the need to start using Kerberos in Skolelinux. Setting up a
179 Kerberos server seem to be straight forward, and if we get this in
180 place a long time before the Squeeze version of Debian freezes, we
181 have a chance to migrate Skolelinux away from NFSv3 for the home
182 directories, and over to an architecture where the infrastructure do
183 not have to trust IP addresses and machines, and instead can trust
184 users and cryptographic keys instead.&lt;/p&gt;
185
186 &lt;p&gt;A challenge will be integration and administration. Is there a
187 Kerberos implementation for Debian where one can control the
188 administration access in Kerberos using LDAP groups? With it, the
189 school administration will have to maintain access control using flat
190 files on the main server, which give a huge potential for errors.&lt;/p&gt;
191
192 &lt;p&gt;A related question I would like to know is how well Kerberos and
193 pam-ccreds (offline password check) work together. Anyone know?&lt;/p&gt;
194
195 &lt;p&gt;Next step will be to use Kerberos for access control in Lwat and
196 Nagios. I have no idea how much work that will be to implement. We
197 would also need to document how to integrate with Windows AD, as such
198 shared network will require two Kerberos realms that need to cooperate
199 to work properly.&lt;/p&gt;
200
201 &lt;p&gt;I believe a good start would be to start using Kerberos on the
202 skolelinux.no machines, and this way get ourselves experience with
203 configuration and integration. A natural starting point would be
204 setting up ldap.skolelinux.no as the Kerberos server, and migrate the
205 rest of the machines from PAM via LDAP to PAM via Kerberos one at the
206 time.&lt;/p&gt;
207
208 &lt;p&gt;If you would like to contribute to get this working in Skolelinux,
209 I recommend you to see the video recording from yesterdays NUUG
210 presentation, and start using Kerberos at home. The video show show
211 up in a few days.&lt;/p&gt;
212 </description>
213 </item>
214
215 <item>
216 <title>På vegne av vanvitting mange, Aftenposten!</title>
217 <link>P___vegne_av_vanvitting_mange__Aftenposten_.html</link>
218 <guid isPermaLink="true">P___vegne_av_vanvitting_mange__Aftenposten_.html</guid>
219 <pubDate>Sat, 6 Mar 2010 21:15:00 +0100</pubDate>
220 <description>
221 &lt;p&gt;&lt;a href=&quot;http://fotball.aftenposten.no/incoming/article163000.ece&quot;&gt;Aftenposten
222 melder&lt;/a&gt; på forsiden av webavisen sin at de tror Erling Fossen
223 provoserer nordlendinger med sine uttalelser på
224 fotballtinget. Jeg er utflyttet nordlending, og må innrømme at jeg
225 ikke kjennet så mye som et snev av provokasjon fra denne litt morsomme
226 uttalelsen til Hr. Fossen. Lurer på om Aftenposten har noen kilder
227 utenom redaksjonen for sin påstand om at nordledinger er provosert av
228 Hr. Fossen. Må innrømme at jeg tviler på det.&lt;/p&gt;
229
230 &lt;p&gt;Det hele bringer tankene tilbake til Sture Hansen i Hallo i Uken.&lt;/p&gt;
231 </description>
232 </item>
233
234 <item>
235 <title>After 6 years of waiting, the Xreset.d feature is implemented</title>
236 <link>After_6_years_of_waiting__the_Xreset_d_feature_is_implemented.html</link>
237 <guid isPermaLink="true">After_6_years_of_waiting__the_Xreset_d_feature_is_implemented.html</guid>
238 <pubDate>Sat, 6 Mar 2010 18:15:00 +0100</pubDate>
239 <description>
240 &lt;p&gt;6 years ago, as part of the Debian Edu development I am involved
241 in, I asked for a hook in the kdm and gdm setup to run scripts as root
242 when the user log out. A bug was submitted against the xfree86-common
243 package in 2004 (&lt;a href=&quot;http://bugs.debian.org/230422&quot;&gt;#230422&lt;/a&gt;),
244 and revisited every time Debian Edu was working on a new release.
245 Today, this finally paid off.&lt;/p&gt;
246
247 &lt;p&gt;The framework for this feature was today commited to the git
248 repositry for the xorg package, and the git repository for xdm has
249 been updated to use this framework. Next on my agenda is to make sure
250 kdm and gdm also add code to use this framework.&lt;/p&gt;
251
252 &lt;p&gt;In Debian Edu, we want to ability to run commands as root when the
253 user log out, to get rid of runaway processes and do general cleanup
254 after a user. With this framework in place, we finally can do that in
255 a generic way that work with all display managers using this
256 framework. My goal is to get all display managers in Debian use it,
257 similar to how they use the Xsession.d framework today.&lt;p&gt;
258 </description>
259 </item>
260
261 <item>
262 <title>Digitale bøker uten digitale restriksjonsmekanismer (DRM) bør få mva-fritak</title>
263 <link>Digitale_b__ker_uten_digitale_restriksjonsmekanismer__DRM__b__r_f___mva_fritak.html</link>
264 <guid isPermaLink="true">Digitale_b__ker_uten_digitale_restriksjonsmekanismer__DRM__b__r_f___mva_fritak.html</guid>
265 <pubDate>Wed, 3 Mar 2010 19:00:00 +0100</pubDate>
266 <description>
267 &lt;p&gt;Den norske bokbransjen har
268 &lt;a href=&quot;http://www.digi.no/823912/nei-til-moms-paa-e-boker&quot;&gt;bedt om at
269 digitale bøker må få mva-fritak&lt;/a&gt; slik papirbøker har det, og
270 &lt;a href=&quot;http://www.digi.no/836875/moms-paa-alt-digitalt-innhold&quot;&gt;finansdepartementet
271 har sagt nei&lt;/a&gt;. Det er et interessant spørsmål om digitale bøker
272 bør ha mva-fritak eller ikke, og svaret er ikke så enkelt som et ja
273 eller nei.
274 &lt;a href=&quot;http://www.digi.no/836925/norske-e-boker-truet-av-moms&quot;&gt;Enkelte
275 medlemmer&lt;/a&gt; av bokbransjen truer med å droppe den planlagte
276 lanseringen av norske digitale bøker med digitale restriksjonsmekanismer
277 (DRM) som de har snakket om å gjennomføre nå i vår, og det må de
278 gjerne gjøre for min del.&lt;/p&gt;
279
280 &lt;p&gt;Papirbøker har mva-fritak pga. at de fremmer kultur- og
281 kunnskapsspredning. Digitale bøker uten digitale
282 restriksjonsmekanismer (DRM) fremmer kultur- og kunnskapsspredning,
283 mens digitale bøker med DRM hindrer kultur og kunnskapsspredning.
284 Digitale bøker uten DRM bør få mva-fritak da det er salg av bøker på
285 lik linje med salg av papirbøker, mens digitale bøker med DRM ikke bør
286 få det da det er utleie av bøker og ikke salg.&lt;/p&gt;
287
288 &lt;p&gt;Jeg foretrekker å kjøpe bøker, og velger dermed å la være å bruke
289 DRM-belastede digitale bøker. Vet ikke helt hva jeg ville være villig
290 til å betale for å leie en bok, men tror ikke det er mange kronene.
291 Heldigvis er det mye bøker tilgjengelig uten slike restriksjoner, og
292 de som vil ha tak i engelske bøker kan laste ned bøker som er
293 tilgjengelig uten bruksbegresninger fra &lt;a href=&quot;http://www.archive.org/&quot;&gt;The
294 Internet Archive&lt;/a&gt;. Der er det pr. i dag 1 889 313 bøker
295 tilgjengelig. De er tilgjengelig i flere formater. Besøk
296 &lt;a href=&quot;http://www.archive.org/details/texts&quot;&gt;oversikten over tekster
297 der&lt;/a&gt; for å se hva de har.
298 </description>
299 </item>
300
301 <item>
302 <title>Debian Edu / Skolelinux based on Lenny released, work continues</title>
303 <link>Debian_Edu___Skolelinux_based_on_Lenny_released__work_continues.html</link>
304 <guid isPermaLink="true">Debian_Edu___Skolelinux_based_on_Lenny_released__work_continues.html</guid>
305 <pubDate>Thu, 11 Feb 2010 17:15:00 +0100</pubDate>
306 <description>
307 &lt;p&gt;On Tuesday, the Debian/Lenny based version of
308 &lt;a href=&quot;http://www.skolelinux.org/&quot;&gt;Skolelinux&lt;/a&gt; was finally
309 shipped. This was a major leap forward for the project, and I am very
310 pleased that we finally got the release wrapped up. Work on the first
311 point release starts imediately, as we plan to get that one out a
312 month after the major release, to include all fixes for bugs we found
313 and fixed too late in the release process to include last Tuesday.&lt;/p&gt;
314
315 &lt;p&gt;Perhaps it even is time for some partying?&lt;/p&gt;
316
317 &lt;p&gt;After this first point release, my plan is to focus again on the
318 next major release, based on Squeeze. We will try to get as many of
319 the fixes we need into the official Debian packages before the freeze,
320 and have just a few weeks or months to make it happen.&lt;/p&gt;
321 </description>
322 </item>
323
324 <item>
325 <title>Danmark går for ODF?</title>
326 <link>Danmark_g__r_for_ODF_.html</link>
327 <guid isPermaLink="true">Danmark_g__r_for_ODF_.html</guid>
328 <pubDate>Fri, 29 Jan 2010 12:00:00 +0100</pubDate>
329 <description>
330 &lt;p&gt;Ble nettopp gjort oppmerksom på en
331 &lt;a href=&quot;http://www.version2.dk/artikel/13690-breaking-odf-vinder-dokumentformat-krigen &quot;&gt;nyhet fra Version2&lt;/a&gt;
332 fra Danmark, der det hevdes at Folketinget har vedtatt at ODF skal
333 brukes som dokumentutvekslingsformat i Staten.&lt;/p&gt;
334
335 &lt;p&gt;Hyggelig lesning, spesielt hvis det viser seg at de av vedtatt
336 kravlisten for hva som skal aksepteres som referert i kommentarfeltet
337 til artikkelen og
338 &lt;a href=&quot;http://www.version2.dk/artikel/13693-er-ooxml-doemt-ude-her-er-kravene-til-en-offentlig-dokumentstandard&quot;&gt;en
339 annen artikkel&lt;/a&gt; i samme nett-avis. Liker spesielt godt denne:&lt;/p&gt;
340
341 &lt;p&gt;&lt;blockquote&gt; Det skal demonstreres, at standarden i sin helhed kan
342 implementeres af alle direkte i sin helhed på flere
343 platforme.&lt;/blockquote&gt;&lt;/p&gt;
344
345 &lt;p&gt;Noe slikt burde være et krav også i Norge.&lt;/p&gt;
346 </description>
347 </item>
348
349 <item>
350 <title>Automatic Munin and Nagios configuration</title>
351 <link>Automatic_Munin_and_Nagios_configuration.html</link>
352 <guid isPermaLink="true">Automatic_Munin_and_Nagios_configuration.html</guid>
353 <pubDate>Wed, 27 Jan 2010 15:15:00 +0100</pubDate>
354 <description>
355 &lt;p&gt;One of the new features in the next Debian/Lenny based release of
356 Debian Edu/Skolelinux, which is scheduled for release in the next few
357 days, is automatic configuration of the service monitoring system
358 Nagios. The previous release had automatic configuration of trend
359 analysis using Munin, and this Lenny based release take that a step
360 further.&lt;/p&gt;
361
362 &lt;p&gt;When installing a Debian Edu Main-server, it is automatically
363 configured as a Munin and Nagios server. In addition, it is
364 configured to be a server for the
365 &lt;a href=&quot;http://wiki.debian.org/DebianEdu/HowTo/SiteSummary&quot;&gt;SiteSummary
366 system&lt;/a&gt; I have written for use in Debian Edu. The SiteSummary
367 system is inspired by a system used by the University of Oslo where I
368 work. In short, the system provide a centralised collector of
369 information about the computers on the network, and a client on each
370 computer submitting information to this collector. This allow for
371 automatic information on which packages are installed on each machine,
372 which kernel the machines are using, what kind of configuration the
373 packages got etc. This also allow us to automatically generate Munin
374 and Nagios configuration.&lt;/p&gt;
375
376 &lt;p&gt;All computers reporting to the sitesummary collector with the
377 munin-node package installed is automatically enabled as a Munin
378 client and graphs from the statistics collected from that machine show
379 up automatically on http://www/munin/ on the Main-server.&lt;/p&gt;
380
381 &lt;p&gt;All non-laptop computers reporting to the sitesummary collector are
382 automatically monitored for network presence (ping and any network
383 services detected). In addition, all computers (also laptops) with
384 the nagios-nrpe-server package installed and configured the way
385 sitesummary would configure it, are monitored for full disks, software
386 raid status, swap free and other checks that need to run locally on
387 the machine.&lt;/p&gt;
388
389 &lt;p&gt;The result is that the administrator on a school using Debian Edu
390 based on Lenny will be able to check the health of his installation
391 with one look at the Nagios settings, without having to spend any time
392 keeping the Nagios configuration up-to-date.&lt;/p&gt;
393
394 &lt;p&gt;The only configuration one need to do to get Nagios up and running
395 is to set the password used to get access via HTTP. The system
396 administrator need to run &quot;&lt;tt&gt;htpasswd /etc/nagios3/htpasswd.users
397 nagiosadmin&lt;/tt&gt;&quot; to create a nagiosadmin user and set a password for
398 it to be able to log into the Nagios web pages. After that,
399 everything is taken care of.&lt;/p&gt;
400 </description>
401 </item>
402
403 </channel>
404 </rss>