Raphaël Hertzog: Google plus and server to give away
5 comments Liked this article? Click here. My blog is Flattr-enabled.
5 comments Liked this article? Click here. My blog is Flattr-enabled.
The kernel.org compromise has people talking about the security of git's
use of sha1. Talking about this is a good thing, I think, but there's
a lot of smug "we're cryptographically secure" in the air that does not
seem warranted coming from non-cryptographers like me.
Two years ago I had a discussion on my blog about git and
sha1, that reached similar conclusions to what I'm seeing
here: It seems that current known
sha1 attacks require somehow getting an ugly colliding binary file accepted
into the repository in the first place. Hard to manage for peer reviewed
source code. We all hate firmware in the kernel, so perhaps this is another
reason it's bad. ;-) Etc.
Well, not so fast. Git's exposure to sha1 collisions is broader than
just files. Git also stores data for commits, and directory trees.
Git's tree objects are interesting because they're a bag of bytes that is
rarely if ever manually examined. If there was a way to exploit git such
that it ignored some trailing garbage at the end of a tree object, then
here's an attack injection vector that would be unlikely to be caught by
peer review.
If you can change the content of a tree without changing its sha1, you can
simply make it link to an older version of a file that had an exploitable
problem. Or you can assemble a combination of files that results in an
new exploitable problem. (For example, suppose a buffer size was hardcoded
in two files in the kernel, and then the size was changed in both -- make a
tree that contains one change and not the other.)
Now, git's tree-walk code, until 2008, mishandled
malformed data by accessing memory outside the tree buffer. Was this
an exploitable bug in git? I don't know. It is interesting that
the fix, in 64cc1c0909949fa2866ad71ad2d1ab7ccaa673d9 relied on the
parser stopping at a NULL -- great if you want to put some garbage after
the tree's filename. With that said, the particular exploit I describe
above probably won't work -- I tried! Here's all the code that stands
between us and this exploit:
if (size < 24 buf[size - 21])
die("corrupt tree file");
path = get_mode(buf, &mode);
if (!path !*path)
die("corrupt tree file");
Any good C programmer would recognise that this magic-constant-laden code
needs to be careful about the size of the buffer. It's not as clear though,
that it needs to be careful about consuming the entire contents of the
buffer. And C programmers involved with git have gotten this code wrong
before.
tldr: If git is a castle, it was built just after cannons were invented,
and we've had our fingers in our ears for several years as their power
improved. Now the outer wall of sha1 is looking increasingly like one of
straw, and we're down to a rather thin inner wall of C code.
John Layt recently blogged about his adventure with having children use Plasma Active with quite some success.
The task
I was this evening out at a board meeting in my local scout group, and for such a event you of course need the following
There was another upsurge in discussion of Android GPL issues last month, triggered by couple of posts by Edward Naughton, followed by another by Florian Mueller. The central thrust is that section 4 of GPLv2 terminates your license on violation, and you need the copyright holders to grant you a new one. If they don't then you don't get to distribute any more copies of the code, even if you've now come into compliance. TLDR; most Android vendors are no longer permitted to distribute Linux.For example, Android uses bootcharting logic, which uses the 'bootchartd' script provided by www.bootchart.org, but a C re-implementation that is directly compiled into our init program. The license that appears at www.bootchart.org is the GPLv2, not the Apache 2.0 license that Google claims for its implementation.
I personally believe that intellectual property rights should usually be enforced against infringing publishers/manufacturers rather than mere resellers, but that's a separate issue.
You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License.
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
--quiet). On a related note, Lintian will now error out if it sees an unknown field in a vendor profile. Previously it would just silently ignore the field.
There is one more change I would like to highlight and this one is probably best served with an example:
$ lintian --show-overrides ../lintian_2.5.2.dsc
N: We build-depend on cdbs for the test suite
O: lintian source: unused-build-dependency-on-cdbs
N: We build-depend on quilt for the test suite
O: lintian source: quilt-build-dep-but-no-series-file
N: We don't have a patch system for lintian itself
O: lintian source: patch-system-but-no-source-readme
Lintian will now attempt to extract and print the comment related to the override from the overrides file. The comment will be printed above each tag the override applies to (so you may see some repeated comments). The full documentation for how Lintian finds the comments (or why it does not find the comment) is available in the Lintian User Manual.
The exact format of the comments being outputted may change in the near future. Particularly, we may add a marker to assist the tools generating lintian.d.o to find the comments. Hopefully we will be able to close #512901 soon.
Beyond the changes above, I am very happy to see the bug count drop below 180 unfixed bugs[1]. We have not been this low there since the 2.5.0~rc1 upload (in February) and I hope we can keep it this time.
As part of my development of a backup application,
I run benchmarks on it, and that means creating a test data set, running
some backups, and then removing the test data set. One of the test data
sets I use is a 140 gibibytes of my real data. The benchmark first copies
the data to a temporary location.
In other words, a fair bit of my current life is spent waiting for files
to be copied and removed. The faster that goes, the better.
Overnight, I ran a little benchmark on those operations, to compare
a couple of ways to do them. The results are below:
elapsed cmd
(s)
107.2 rm -rf tmp/data
98.4 find tmp/data -delete
100.1 find tmp/data -exec rm -rf +
116.2 find tmp/data -depth -print0 xargs -0 rm -rf
elapsed cmd
(s)
3567.5 cp -a tmp/data tmp/copy
3219.5 cd tmp && mkdir copy && tar -C data -cf - . tar -C copy -xf -
It is surprising, but it's clear that find is significantly
faster than rm in deleting files, by almost ten percent.
Since performance is a feature,
this would indicate that that feature in rm is buggy.
For file copying, the piping of two tars is a common trick, and
it really is faster, again by almost ten percent.
Obviously, there might also be a problem with the benchmark. I attach
the script, which uses benchmark-cmd in
extrautils, which I wrote for this kind
of thing. If there is a problem with the benchmark, don't hesitate
to provide a patch to fix that.
There may be other ways to remove or copy files that should be compared,
too. rsync? cpio? For file removal, a tool using Linux getdents directly
would probably be faster than the portable code in GNU coreutils and
findutils. Somebody should write that and compare.
In all cases above, the test data set to be removed or copied is
30 GiB. Copies happened to the same disk (that's what happens with
my backup benchmarks too). The filesystem used was ext4.
Folkert asks, not without
reason, whether my debian-installer
support for NBD is available for testing. The answer is: yes, it
is!
At DebConf11 in Banja
Luka, I sat down with Otavio, who helped me get the
necessary modules uploaded in the correct way. As such, you can now
install debian to an NBD device with a regular debian-installer
build although for now, you'll probably still need a daily build
to get it to work[1].
To test, you should do the following:
In light of the fact that it seems possible to fit the plastic caps of
a Debian branded Swiss Army Knife (Last orders
today!) on an existing Swiss Army Knife (German written
howto as PDF), I started to think about which Victorinox Cybertool
would be the best fitting for me.
And because the Victorinox comparison page doesn t really show diffs, just
columns with floating text which are not very helpful for generating
diffs in your head, I used command line tools for that purpose:
wdiff
Because the floating texts are not line- but just whitespace-based,
the tool of choice is not diff but wdiff, a word-based diff. It encloses additions and removals
in + + and [- -] blocks.
(No, those aren t Japanese smileys although they look a lot like some.
^^).
The easiest and clearest way is to copy and paste the texts from Victorinox comparison page into some text files and
compare them with wdiff:
$ wdiff cybertool34.txt cybertool41.txtSo this already extracted the information which are the seven tools which are in the Cybertool 41, but not in the Cybertool 34. Nevertheless the diff is still not easily recognizable on the first glance. There are several ways to help here. First
+Schraubendreher 2.5mm,+ Pinzette, N hahle mit Nadel hr, +Holzs ge,+ Bit-Schl ssel( 5 mm Innensechskant f r die D-SUB Steckverbinder, 4 mm Innensechskant f r Bits, Bit Phillips 0, Bit Phillips 1, Bit-Schlitzschrauben 4 mm, Bit Phillips 2, Bit Hex 4 mm, Bit Torx 8, Bit Torx 10, Bit Torx 15 ), Kombizange( H lsenpresser, Drahtschneider ), Stech-Bohrahle, Kugelschreiber( auch zum DIP-Switch verstellen ), Mehrzweckhaken (Pakettr ger), +Metalls ge( Metallfeile, Nagelfeile, Nagelreiniger ),+ Dosen ffner( kleiner Schraubendreher ), Kleine Klinge, Grosse Klinge, Ring, inox, Mini-Schraubendreher, Kapselheber( Schraubendreher, Drahtabisolierer ), +Holzmeissel / Schaber,+ Bit-Halter, Stecknadel, inox, Schere, Korkenzieher, Zahnstocher
wdiff has an option --no-common (the
according short option is -3) which just shows added and
removed words:
$ wdiff -3 cybertool34.txt cybertool41.txt ====================================================================== +Schraubendreher 2.5mm,+ ====================================================================== +Holzs ge,+ ====================================================================== +Metalls ge( Metallfeile, Nagelfeile, Nagelreiniger ),+ ====================================================================== +Holzmeissel / Schaber,+ ======================================================================This is already way better to quickly recognize the actual differences. But if you still also want to see the common tools of the two knifes you need some visual help: One option is to use
wdiff s --terminal (or
short -t) option. Added words are then displayed inverse
and removed words are shown underlined (background and foreground
colors hardcoded as there is no invert colors style in CSS or HTML):
But some still like to to use color instead of the contrast-rich inverse and the easily to oversee underlining. This is where colordiff comes into play: colordiff colordiff is like syntax highlighting for diffs on the command line. I works with classic and unified diffs as well as with wdiffs and debdiffs (the$ wdiff -t cybertool34.txt cybertool41.txt
Schraubendreher 2.5mm, Pinzette, N hahle mit Nadel hr, Holzs ge, Bit-Schl ssel( 5 mm Innensechskant f r die D-SUB Steckverbinder, 4 mm Innensechskant f r Bits, Bit Phillips 0, Bit Phillips 1, Bit-Schlitzschrauben 4 mm, Bit Phillips 2, Bit Hex 4 mm, Bit Torx 8, Bit Torx 10, Bit Torx 15 ), Kombizange( H lsenpresser, Drahtschneider ), Stech-Bohrahle, Kugelschreiber( auch zum DIP-Switch verstellen ), Mehrzweckhaken (Pakettr ger), Metalls ge( Metallfeile, Nagelfeile, Nagelreiniger ), Dosen ffner( kleiner Schraubendreher ), Kleine Klinge, Druckkugelschreiber, Grosse Klinge, Ring, inox, Mini-Schraubendreher, Kapselheber( Schraubendreher, Drahtabisolierer ), Holzmeissel / Schaber, Bit-Halter, Stecknadel, inox, Schere, Korkenzieher, Zahnstocher
debdiff command is part of the
devscripts package).
$ wdiff cybertool34.txt cybertool41.txt colordiff(Coloured Screenshots done with ANSI HTML Adapter from the package aha.) Some, especially those who are used to git, are probably confused by the default choice of diff colors. This is easily fixable by writing the following into you
+Schraubendreher 2.5mm,+ Pinzette, N hahle mit Nadel hr, +Holzs ge,+ Bit-Schl ssel( 5 mm Innensechskant f r die D-SUB Steckverbinder, 4 mm Innensechskant f r Bits, Bit Phillips 0, Bit Phillips 1, Bit-Schlitzschrauben 4 mm, Bit Phillips 2, Bit Hex 4 mm, Bit Torx 8, Bit Torx 10, Bit Torx 15 ), Kombizange( H lsenpresser, Drahtschneider ), Stech-Bohrahle, Kugelschreiber( auch zum DIP-Switch verstellen ), Mehrzweckhaken (Pakettr ger), +Metalls ge( Metallfeile, Nagelfeile, Nagelreiniger ),+ Dosen ffner( kleiner Schraubendreher ), Kleine Klinge, Grosse Klinge, Ring, inox, Mini-Schraubendreher, Kapselheber( Schraubendreher, Drahtabisolierer ), +Holzmeissel / Schaber,+ Bit-Halter, Stecknadel, inox, Schere, Korkenzieher, Zahnstocher $ wdiff cybertool29.txt cybertool41.txt colordiff
+Schraubendreher 2.5mm,+ Pinzette, N hahle mit Nadel hr, +Holzs ge,+ Bit-Schl ssel( 5 mm Innensechskant f r die D-SUB Steckverbinder, 4 mm Innensechskant f r Bits, Bit Phillips 0, Bit Phillips 1, Bit-Schlitzschrauben 4 mm, Bit Phillips 2, Bit Hex 4 mm, Bit Torx 8, Bit Torx 10, Bit Torx 15 ), +Kombizange( H lsenpresser, Drahtschneider ),+ Stech-Bohrahle, +Kugelschreiber( auch zum DIP-Switch verstellen ), Mehrzweckhaken (Pakettr ger), Metalls ge( Metallfeile, Nagelfeile, Nagelreiniger ),+ Dosen ffner( kleiner Schraubendreher ), Kleine Klinge, [-Druckkugelschreiber,-] Grosse Klinge, Ring, inox, Mini-Schraubendreher, Kapselheber( Schraubendreher, Drahtabisolierer ), +Holzmeissel / Schaber,+ Bit-Halter, Stecknadel, inox, +Schere,+ Korkenzieher, Zahnstocher
~/.colordiffrc:
newtext=green oldtext=red diffstuff=darkblue cvsstuff=darkyellow(See also
/etc/colordiff for the defaults and hints.)
colordiff has by the way two operating modes:
$ colordiff cybertool29-lines.txt cybertool34-lines.txt 12a13,14 > Kombizange( H lsenpresser > Drahtschneider ) 13a16,17 > Kugelschreiber( auch zum DIP-Switch verstellen ) > Mehrzweckhaken (Pakettr ger) 16d19 < Druckkugelschreiber 25a29 > SchereOr as unifed diff with some context:
$ colordiff -u cybertool29-lines.txt cybertool34-lines.txt --- cybertool29-lines.txt 2011-08-31 20:55:37.195546238 +0200 +++ cybertool34-lines.txt 2011-08-31 20:55:11.667710504 +0200 @@ -10,10 +10,13 @@ Bit Torx 8 Bit Torx 10 Bit Torx 15 ) +Kombizange( H lsenpresser +Drahtschneider ) Stech-Bohrahle +Kugelschreiber( auch zum DIP-Switch verstellen ) +Mehrzweckhaken (Pakettr ger) Dosen ffner( kleiner Schraubendreher ) Kleine Klinge -Druckkugelschreiber Grosse Klinge Ring inox @@ -23,5 +26,6 @@ Bit-Halter Stecknadel inox +Schere Korkenzieher ZahnstocherSo if you want nicely colored diffs with Subversion like you re used to with git, you can use
svn diff colordiff.
There are many SSH multiplexers in Debian and most of them have one or
two features which make them unique and especially useful for that
one use case. I use some of them regularily (I even maintain
the Debian package of one of them, namely pconsole :-) and
I ll present then and when one of them here.
For non-interactive purposes I really like parallel-ssh aka
pssh. It takes a file of hostnames and a bunch of common ssh
parameters as parameters, executes the given command in parallel in up
to 32 threads (by default, adjustable with -p) and waits
by default for 60 seconds (adjustable with -t). For
example to restart hobbit-client on all hosts in kiva.txt,
the following command is suitable:
$ parallel-ssh -h kiva.txt -l root /etc/init.d/hobbit-client restart [1] 19:56:03 [FAILURE] kiva6 Exited with error code 127 [2] 19:56:04 [SUCCESS] kiva [3] 19:56:04 [SUCCESS] kiva4 [4] 19:56:04 [SUCCESS] kiva2 [5] 19:56:04 [SUCCESS] kiva5 [6] 19:56:04 [SUCCESS] kiva3 [7] 19:57:03 [FAILURE] kiva1 Timed out, Killed by signal 9(Coloured Screenshots done with ANSI HTML Adapter from the package aha.) You easily see on which hosts the command failed and partially also why: On kiva6 hobbit-client is not installed and therefore the init.d script is not present. kiva1 is currently offline so the ssh connection timed out. If you want to see the output of the commands, you have a two choices. Which one to choose depends on the expected amount of output: If you don t expect a lot of output, the
-i (or
--inline) option for inline aggregated output is probably
the right choice:
$ parallel-ssh -h kiva.txt -l root -t 10 -i uptime [1] 20:30:20 [SUCCESS] kiva 20:30:20 up 7 days, 5:51, 0 users, load average: 0.12, 0.08, 0.06 [2] 20:30:20 [SUCCESS] kiva2 20:30:20 up 7 days, 5:50, 0 users, load average: 0.19, 0.08, 0.02 [3] 20:30:20 [SUCCESS] kiva3 20:30:20 up 7 days, 5:49, 0 users, load average: 0.10, 0.06, 0.06 [4] 20:30:20 [SUCCESS] kiva4 20:30:20 up 7 days, 5:49, 0 users, load average: 0.25, 0.17, 0.14 [5] 20:30:20 [SUCCESS] kiva6 20:30:20 up 7 days, 5:49, 10 users, load average: 0.16, 0.08, 0.02 [6] 20:30:21 [SUCCESS] kiva5 20:30:21 up 7 days, 5:49, 0 users, load average: 3.11, 3.36, 3.06 [7] 20:30:29 [FAILURE] kiva1 Timed out, Killed by signal 9If you expect a lot of output you can give directories with the
-o (or --outdir) and -e (or
--errdir) option:
$ parallel-ssh -h kiva.txt -l root -t 20 -o kiva-output lsb_release -a [1] 20:36:51 [SUCCESS] kiva [2] 20:36:51 [SUCCESS] kiva2 [3] 20:36:51 [SUCCESS] kiva3 [4] 20:36:51 [SUCCESS] kiva4 [5] 20:36:53 [SUCCESS] kiva6 [6] 20:36:54 [SUCCESS] kiva5 [7] 20:37:10 [FAILURE] kiva1 Timed out, Killed by signal 9 $ ls -l kiva-output total 24 -rw-r--r-- 1 abe abe 98 Aug 28 20:36 kiva -rw-r--r-- 1 abe abe 0 Aug 28 20:36 kiva1 -rw-r--r-- 1 abe abe 98 Aug 28 20:36 kiva2 -rw-r--r-- 1 abe abe 98 Aug 28 20:36 kiva3 -rw-r--r-- 1 abe abe 98 Aug 28 20:36 kiva4 -rw-r--r-- 1 abe abe 102 Aug 28 20:36 kiva5 -rw-r--r-- 1 abe abe 100 Aug 28 20:36 kiva6 $ cat kiva-output/kiva5 Distributor ID: Debian Description: Debian GNU/Linux 6.0.2 (squeeze) Release: 6.0.2 Codename: squeezeThe only annoying thing IMHO is that the host list needs to be in a file. With zsh, bash and the original ksh (but neither tcsh, pdksh nor mksh), you can circumvent this restriction with one of the following command lines:
$ parallel-ssh -h <(printf "host1\nhost2\nhost3\n ") -l root uptime [ ] $ parallel-ssh -h <(echo host1 host2 host3 xargs -n1) -l root uptime [ ]In addition to
parallel-ssh the pssh
package also contains some more ssh based tools:
parallel-scp and parallel-rsync for
parallel copying files onto a set of hosts.parallel-slurp for fetching files in parallel from a
list of hosts.parallel-nuke to kill a bunch of processes in
parallel on a set of machines.parallel-ssh is by far the most
useful tool from the pssh package. (Probably no wonder
as it s the most generic one. :-)
After more than 5 years at Easter-eggs as a system engineer, I'll be leaving
my job soon. It has been a fabulous adventure, also due to the "cooperative"
nature of the company. I've enjoyed worked here, with great people. I do
wish them luck for the future.
Looking at the numerous things I did for the past years, it has been quite
productive!
Therefore, I'll be looking for a new job in the next weeks, which will
probably keep me busy a bit. :-)
Flattr me!
about:tabs url to see the damage on your session. Please note that the number of groups is currently wrong until you open the tab grouping interface.
This is what the extension has to say about my session 2 days ago, right after a startup:
http://buildd.debian.org/iceweasel. It gives me the build status of the latest iceweasel package I uploaded to Debian unstable. That url is particularly known in my browsing history, and is the first hit when I type buildd in the urlbar (actually, even typing b brings it first). Unfortunately, that url redirects to https://buildd.debian.org/status/package.php?p=iceweasel through an HTTP redirection. I say unfortunately because when I type buildd in the urlbar, I get 6 suggestions for urls in the form http://buildd.debian.org/package (I also watch other packages build status), and the suggestion to switch to the existing tab for what the first hit would get me to is 7th. Guess what? The suggestion list only shows 6 items ; you have to scroll to see the 7th.
The result is that I effectively have fifteen tabs open on that url.
I also keep a lot of bugzilla.mozilla.org bugs open in different tabs. The extension tells me there are 255 of them for 166 unique bugs. Largely, the duplicate bug tabs are due to having these bugs open in some tab, but accessing the same bugs from somewhere else, usually a dependent bug or TBPL. I also have 5 tabs opened on my request queue. I usually get there by going to the bugzilla home page and clicking on the My Requests link. And I have several tabs opened on the same bug lists. For the same reason.
When I started using tab groups, I splitted in very distinct groups. Basically, one for Mozilla, one for Debian, one for stuff I want to follow (usually blog posts I want to follow comments from), and one for the rest. While I was keeping up with grouping at the beginning, I don t anymore, and the result is that each group is now a real mess.
Firefox has hundreds of millions users. It s impossible to create a user experience that works for everyone. One thing is sure, it doesn t work for me. My usage is probably very wrong at different levels, but I don t feel my browser is encouraging me to use it better, except by making my number of opened tabs explode to an unmanageable level (I already have 30 tabs more than when I started writing this post 2 days ago).
There are a few other things I would like to know about my usage that my extension hasn t told me yet, either because it doesn t tell, or because I haven t looked:
for the second
time, I'm at Steve's for his yearly barbecue.
After I'd done my waffles back at Banja Luka, I off-hand suggested to
do them again at the barbecue, which people replied to with an
enthousiastic 'oh yes!' from multiple mouths. So that's what
happened.
I did overdo it on the amounts, though since after I'd baked 750g
flour worth of dough, everyone still awake had already had a waffle; and
I still had 500g flour worth to go. Since the dough can't be conserved
overnight, I had to finish all of them. Which meant that I was still
making waffles at 2AM, and no-one was eating them anymore. Bummer. Oh
well, some people (including myself) had waffles this morning
instead.
Speaking of waffles, and by popular demand: A few years ago I blogged the
recipe of my waffles (hidden in a blog post about a large number of
other things).
The rest of the barbecue was fairly nice, too. I mean, obviously it
is: good food, good beer, good people to talk to, what more would you
want? Exactly.
Right now I'm waiting for food that is being prepared, after which
I'll probably get in my car and start driving home again. But that's not
for now just yet.
For a (german) talk I ll be giving soon I was interested in a list of open source projects which use Jenkins. Jenkins is a great open source continuous integration server. I was wondering whether such a list exists but since it doesn t exist yet I created my own and Kohsuke Kawaguchi (creator of Hudson/Jenkins) suggested to blog about it. There we go.
14:31 *<* Signoff: XTaran (*.net *.split)
doesn t prevent me from telling him
14:39 <mira AO> XTaran: n i e n i e n i e n i e n i e n i e n i e empfiehlt man k i l l a l l , i m m e r nur p k i l l !Now playing: Monzy kill dash good idea
By the way, you were probably looking for this
-x Require an exact match of the process name, or argument list if
-f is given. The default is to match any substring.
excerpt from the pkill(1) manual page, where you can see it stems from grep(1) clearly.
I already got mails like What a pity that your nice blog posting
series ended . No, it didn t end. As announced, I knew that I won t be
able to keep up a daily schedule. It worked as long as I had already
written the postings in advanced. But in the end the last postings
were already written just in time and then I ran out of leisure and
muse for a time. But as I said: It didn t end, it will be continued.
And this is the next such posting.
Oh, and for those who tell me further tools, I should blog about: I
appreciate that, especially because that way I also hear
about tools I didn t know about. But why just telling me and not
blogging yourself about it? :-) At least those whose blog is part of
Planet Debian or Planet Symlink anyway really should do this
themselves. I d really like to see also others writing about cool
tools. I neither have a right on the idea nor on the name of this
series (call it meme if you want :-), so please go on and publish your
favourite tools in a blog posting, too. :-)
And for all those who want to join me and Myon blogging about cool
Unix tools, independent if listed on Planet Debian or Planet
Symlink, I encourage you to offer a separate feed for this
kind of postings and join us on Planet Commandline.
Anyway, here s the next such posting:
As system administrator you often have the case that you have to kill
all processes of one user, e.g. if a daemon didn t properly shut down
itself or amok running leftovers of a GUI session.
Many use pkill -SIGNAL -u user from the
procps package or killall -SIGNAL -u user
from the psmisc package for it. But that s a) quite
cumbersome to type and b) is there a chance to forget about the -u and
then bad things may happen, especially with pkill s default substring
match, so I prefer another tool with a more explicit name:
kill itself:
slay -SIGNAL user [user ]But beware, slay is
sudo in front of some command is easier to forget than
doing an ssh root@localhost or su -
beforehand. They even seem to be so desperate about it that they forwarded the issue
from Launchpad to the Debian Bug Tracking System. ;-)
But to be honest even if I was very amused about those bug
reports isn t this issue grave , as it causes very likely
(unexpected) data loss?
Now playing: Monzy kill dash nine ( and your process is mine ;-)
So, we stopped our very boring story around 1992. Let's summarize
where I was at that moment:
Next.