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