Search Results: "will"

30 May 2008

Joey Hess: locking down ssh authorized keys

The way .ssh/authorized_keys is typically used is not secure. Because using it securely is hard, and dumping in passwordless ssh keys is easy. I spent about 5 hours today locking down my authorized_keys. rsync The only easy case is a rsync of a single directory. Follow these good instructions. If you need to rsync multiple separate directories, it's easy to find several documents involving a validate-rsync.sh. Do not use, it is insecure -- it allows rsync to be run with any parameters. Including parameters that allow the remote system to rsync in a new ~/.ssh/authorized_keys. Oops. (You can probably also trick validate-rsync.sh into running other arbitrary commands.) To be secure, you have to check the rsync parameters against some form of whitelist. git Locking down git should be easy. Use git-shell. Unless you also want to be able to log in to an interactive shell on the same account. To do that, you'll need to generate a separate ssh key for git. Both git servers I use are named git.*, so I set it up like this in ~/.ssh/config on the client:
Host git.*
    IdentityFile ~/.ssh/id_rsa.git
Then on the server, I added the key to authorized_keys, prefixed with this:
command="perl -e 'exec qw(git-shell -c), $ENV SSH_ORIGINAL_COMMAND '"
(I also tried the simpler command="git-shell -c $SSH_ORIGINAL_COMMAND"; but it didn't work with alioth's old version of openssh, and I didn't want to worry about exposing SSHORIGINALCOMMAND to the shell.) Before arriving at that, I took a detour to using gitosis. It can make it impressively easy to manage locked down git over ssh, but you have to fit how it does things. Including repository layout, and a dedicated account. So I spent several hours changing my git repo layout. In the end, I decided gitosis was too complicated and limiting for what I needed, but I do recommend checking it out. svn Like git, this is fairly easy, since svn provides svnserve. The svnbook documents how to use it in .authroized_keys. Basically, just use
command="svnserve -t"
A similar approach as used for git can be used here if you want to have a dedicated ssh key that causes svnserve to be run. d-i daily builds d-i has a d-i-unpack-helper that can be put in authorized_keys. unison Can probably be locked down similarly to rsync, but I haven't tried yet. duplicity The only way seems to not use duplicity over ssh at all, and instead use a different transport. too hard What if you want to allow locked down git, and a rsync, and maybe unison too, all to the same account? You'll end up with some nasty mismash of all of the above, and there are plenty more things using ssh as a transport that need other techniques to lock them down. Until this becomes easier, a majority will just dump passwordless ssh keys in ~/.ssh/authorized_keys, creating exploitable trust paths that don't need to exist.

29 May 2008

Kartik Mistry: Your Lintian Report, Sir


* You will now able to see Lintian info and overridden tags (ie full report) from your main Lintian report page. Thanks to djpig for quick fix!

Joerg Jaspert: I'm still alive

While I have been a little quiet with ftpmaster posts lately - I am still alive. I just had some other bits to do and didn’t get large enough changes done that would warrant an own post. Since my last post earlier this months there have only been 3 notable changes, namely And only a few minutes ago I sent a “Bits from” mail to our debian-devel-announce mailinglist, which includes a summary of the recent activities and changes in our team, with the addition of Thomas and Kalle, me getting FTPMaster and Anthony and James resigning. We also ask for volunteers which we might add to the team later on. See, I write might. We keep the right to reject people, for whatever reason. Hopefully there won’t be many rejects, but still. And we will see how the volunteers get the tasks done we plan to assign to them. You can expect to see a little more in the near future from me again, I don’t plan on staying that quiet forever.
And in other news - I recently got another group added, mirroradm, as it did help to fix some mirror issues with packages.debian.org. With that I also got the mirrors@ alias additionally routed into my INBOX. Thats a nicely spammed role address and my tip for you, if you should ever get offered access to (any) role address - run as fast as you can, unless you have very good spam filters! :) Luckily my filters are pretty good, as I’m on a good number of role addresses for a long time already, only a few dozen spams getting through a day (and a thousand filtered away). Comments: 0

Martin F. Krafft: How Lenovo freely interprets 'next-business-day' warranties

I decided to purchase a three-year on-site warranty extension with next-business-day response time for one of the Lenovo systems I administer. I get this kind of extension for most systems that aren t critical, but whose downtime would be inconvenient. My understanding of the contract has always been that, assuming the problem requires on-site service, a technician gets in touch with you by the end of the next business day to agree on a time for the on-site visit. The contract does not guarantee that there will be a technician on-site on the next business day, but for two or three hundred Euros, that would be too much to ask. However, it turns out that I assumed too much. First of all, Lenovo sells you a next-business-day response time objective , meaning that they aim to respond by the end of the next business day, but (obviously) can t be held liable if they fail to do so. Apparently, they don t even have to provide a reason for missing the objective. What s even more curious, however, is their interpretation of response : the term stems from the time when operators would log calls and technicians then processed the queue. Nowadays, Lenovo prides itself with skilled technicians resolving more than 30% of all problems already on the phone , so the technicians log the calls and then immediately respond to them. According to Lenovo, it is thus completely acceptable and within the bounds of the contract if the phone technician logs a call on Thursday (and thus responds to it righ away), an the on-site technician calls to arrange for a visit on the following Tuesday, and the first available slot would be Friday 6 business days after the call was logged. I could not find any relevant information about this on their website, nor can you retrieve the agreement which you had to accept as part of the warranty registration later. Of course, I am not surprised by any of this. The world out there seems to be full of asymmetric arrangements. I just wonder why we put up with them. I certainly don t, and that s why Lenovo is getting an angry letter from me with a reference to this blog post. PS: in fairness, I should point out that I have been please by their support before, but have also questioned it in the past. NP: Contriva: Tell Me When

28 May 2008

Adrian von Bidder: Mixers

Adeodato Sim complains about the many ways to regulate sound volume on his system. I can only add that on my Dell Inspiron 9300, the “Master” is actually not usable because it is mapped only to the tiny stereo speakers while leaving the subwoofer alone, which is mapped to “Master Mono”. So I have to use the pcm mixer. At least I can map the buttons (both Fn+keyboard key and the additional buttons at the front of the laptop) to the pcm mixer. But it took quite some fiddling for something the non-technical user will expect work out of the box.

Erich Schubert: Openstreetmap

Joachim drew my attention to Openstreetmap.org. So I thought I'd give it a try. Unfortunately the don't seem to have the hardware or bandwidth resources yet for everyday use.Search results for "M nchen":
City M nchen [en:Munich], about 70km south of Ingolstadt
Village M nchen, about 4km south-west of Bad BerkaRegion M nchen, about 1km north of Unterbiberg, UnterhachingM nchen [en:Munich], less than 1km south of M nchen[...] Very funny. M nchen (Munich) itself has 1.3 Million, Ingolstadt about 120k inhabitants. The region around M nchen totals to about 3-5 Million inhabitants, depending on what you consider to be part of the region. But Unterbiberg (13k) and Unterhaching (22k) are officially part of the district of Munich.The best specification however is the fourth one: If Munich is south of Munich, Munich is also north of Munich, right? So Munich is everywhere, right?Other search highlights include a Footway "train platform direction Munich".Nevertheless, the search results make sense, the first result is what I had in mind, and I really like the references they give for each search result.I wonder if when you type in "San Francisco" it will be like "San Francisco, north of South San Francsico" (no, it's "north of Daly City")

Michal Čihař: Time for change, time for DebConf?

Okay I did thing I considered already for several months - I decided to quit my current job at SYSGO, make one month holidays in summer and find some new job meanwhile. So I'm looking forward to free August, which I will probably spend travelling somewhere :-). This brought up again question whether to go or not to go to this year DebConf. The only problem with this is distance - flight to Buenos Aires will be something around 2000 USD and it means lot of money for me. I applied for sponsorship for half of the price (well I'm not sure if I can really pay the other half, but I would feel really bad for asking that much money) and let's see how it turns out. On the other side, I'd love to visit Argentina, but that would probably require much more time and money. Let's see how it all turns out, there is still time to decision... PS: If you have some interesting job offer, just contact me at michal@cihar.com.

Philipp Kern: Debconf 8? Going or not?

Yesterday I got a note from the Debconf organizers about my place in the sponsorship queue (15 of 58). The drawback, however: there is no money to be given out, yet. At least that's what I heared on IRC. The mail sounds a tad different. Considering that I applied for 2300 USD (~1300 EUR) there is no way that I pay this alone, being a job-less full-time student spending the other time with volunteer work. It would be nice to meet up all the other people driving Debian (apart from those I already met at FOSDEM), but considering that I wouldn't even see much of Argentina, well: no. Flights aren't getting cheaper, too. Back then when I searched (February I guess) Lufthansa return flights were offered for 1000 EUR flying non-stop from Frankfurt. I don't might paying a few hundred dollars on this myself, but how are other non-company-sponsored individuals dealing with this notice? (Comments are enabled, but need OpenID. Comments mailed in will be converted if allowed to do so.)

Ingo Juergensmann: Xen Hosting to lower costs

Russel Coker is looking for a Xen domU to rent for a new project he's going to start.
Using shared Xen hosting to lower costs is quite common these days. Steve Kemp does it and so do I (german). Prices are not that high that you can make a business out of this or earn your living from that, IMHO. At least not with a major investment beforehand. So, shared Xen hosting is mostly used to lower costs by sharing them amongst friends.

Just order a dedicated server, for example a dual AMD64, 4 GB RAM, 2x 400 GB harddisks, a /29 net and umlimited traffic (1 TB free at 100 Mbps, after that the bandwidth is reduced to 10 Mbps) for 59.- and go for it. Get as much memory as you can get. I've found 2 GB RAM a little bit undersized, whereas I still have approx. 2 GB RAM unused/free for other domUs with 4 GB RAM, so there's some room for other domUs.
Currently I'm running 4 domUs:

  1. 1 GB RAM: central services host (PostgreSQL, MySQL, Mailserver, IMAP/POP3)

  2. 512 MB RAM: Apache

  3. 128 MB RAM: providing shells for irc, Jabber, ...

  4. 256 MB RAM: a VPN gateway for a local freifunk club



Anyway, when someone would consider sharing a dedicated server with some friends, go for it! It's better for the environment as well, when some people will share the servers instead each of them getting their own one.

Russell Coker: Xen Hosting

I’m currently deciding where to get a Xen DomU hosted. It will be used for a new project that I’m about to start which will take more bandwidth than my current ISP is prepared to offer (or at least they would want me to start paying and serious bandwidth is expensive in Australia). Below is a table of the options I’ve seriously considered so far (I rejected Dreamhost based on their reputation and some other virtual hosts were obviously not able to compare with the prices of the ones in the table). For each ISP I listed the two cheapest options, as I want to save money I’ll probably go for the cheapest option at the ISP I choose but want the option of upgrading if I need more. I’m not sure how much storage I need, I think that 4.5G is probably not enough and even 6G might get tight. Also of course it depends on how many friends I share the server with. Quantact has a reasonable cheap option for $15, but the $25 option is expensive and has little RAM. Probably 192M of RAM would be the minimum if I’m going to share the machine with two or more friends (to share the costs). VPSland would have rated well if it wasn’t for the fact that they once unexpectedly deleted a DomU belonging to a client (they claimed that the bill wasn’t paid) and had no backups. Disabling a service when a bill is not paid is fair, charging extra for the “service” of reenabling it is acceptable, but just deleting it with no backups is unacceptable. But as I’m planning on serving mostly static data this won’t necessarily rule them out of consideration. It seems that linode and slicehost are the best options (Slicehost seems the most clueful and Linode might be the second most). Does anyone have suggestions about other Xen servers that I haven’t considered? XenEurope seems interesting. One benefit that they have is being based in the Netherlands which has a strong rule of law (unlike the increasingly corrupt US). A disadvantage is that the Euro is a strong currency and is expected to get even stronger. Services paid in Euros should be expected to cost more in future when paid in Australian dollars, while services paid in US dollars should be expected to cost less. Gandi.net has an interesting approach, they divide a server into 64 “shares” and then you can buy as many as you want (up to 16 shares for 1/4 of a server) for your server. If at any time you run out of bandwidth then you just buy more shares. They also limit bandwidth by guaranteed transfer rate (in multiples of 3Mb/s) instead of limiting the overall data transferred on a per-monthly basis (as most providers do). They don’t mention whether you can burst above that 3Mb/s limit - while 3Mb/s for 24*7 is a significant amount of data transfer it isn’t that much if you have a 200MB file that will be downloaded a few times a day while interactive tasks are also in progress (something that may be typical usage for my server). Of course other providers generally don’t provide any information on how fast data can be transferred and will often be smaller than 3Mb/s. Also if anyone who I know wants to share access to a server then please contact me via private mail.
ISPRAMDiskBandwidth (per month)Price $US
Linode360M10G200GB$20
Linode540M15G300GB$30
Slicehost256M10G100GB$20
Slicehost512M20G200GB$38
VPSLand192M6G150GB$16
VPSLand288M8G200GB$22
Quantact96M4.5G96GB$15
Quantact128M6G128GB$25
rimuhosting96M4G30G$20
XenEurope128M10G100G$16 (E10)
XenEurope256M20G150G$28 (E17.50)
Gandi.net256M5G3Mb/s$7.50 or E6

27 May 2008

Sandro Tosi: Update pbuilder on a slow internet connection

On a slow line (like mine, @56k) even updating pbuilder could be a problem (or a really boring task):

[host]$ sudo pbuilder update
[...]
Get:4 http://debian.fastweb.it unstable/main Packages [5302kB]

5Mb are enough to do this trick (NOTE: it will work only if you machine and the pbuilder use the same mirror). First, update your box apt packages list with

[host]# apt-get update

once done, you'll find in /var/lib/apt/lists/ the packages list we need. Let's copy those files in a new location:

[host]# cp -arp /var/lib/apt/lists/ /tmp/

then, login into the pbulder chroot with:

[host]$ sudo pbuilder --login --bindmounts /tmp/lists/ --save-after-login

(/tmp/lists/ will be mounted inside the chroot with the files we've just copied, and --save-after-login will save our changes once done). Now

[chroot]# cp /tmp/lists/*astwe* /var/lib/apt/lists/

to copy the lists for Fastweb mirror only (the one I'm using), now

[chroot]# apt-get update
Get:1 http://debian.fastweb.it unstable Release.gpg [189B]
Get:2 http://debian.fastweb.it unstable Release [86.4kB]
Get:3 http://debian.fastweb.it unstable/main Packages/DiffIndex [2038B]
Fetched 88.7kB in 12s (6962B/s)
Reading package lists... Done
[chroot]#

now only few files are downloaded.

I used this trick earlier, in cases where creating or updating the apt packages list for pbuilder was a problem, since the files always resulted corrupted.

John Goerzen: Jacob Update

It's ben a little while since I wrote about Jacob. He's about 20 months old now.

For awhile, he was on a whole hugging spree. He wanted to hug anything happy. It could be me, a stuffed animal, a rock, or even a book. To hug something, Jacob holds it up to his cheek, leans his head over onto it, and says "Awwww". Very cute!

Then he started saying "hi" to things. He'd greet people, toys, rocks... Seeing a pattern here?

Lately he likes to say "bye". He gets a big smile when he says bye to someone and they wave and say bye back to him. As I leave for work in the morning (on the days when I don't take him to daycare), I'll say bye to Jacob. He will keep saying bye to me, smiling all the while, as long as he can.

Last weekend, we had some heavy rains here. I had the idea that Jacob would love to play in the water puddles left on our driveway. Terah wasn't so sure, but we got Jacob dressed in old clothes and took him outside. He loved to run through the puddles, splashing water as high as he could, cackling the whole time. Then I showed him how he could throw a rock into a puddle and make it splash. So, he would run through a puddle, then carefully select a rock, run to the next puddle, throw the rock in, splash through, and repeat. He'd always want the rock first.

I knew when he was done playing because he said "bye" to the water puddles.

Stefano Zacchiroli: debian ocaml news

Catching up: some OCaml in Debian news Hei, it looks like I stopped giving updates about OCaml news in Debian, time to catch up. 2 hot news basically:
  1. OCaml 3.10.2 transition is ongoing. Release managers did not forget about our old request of transitioning OCaml to 3.10.2 in time for Lenny, and as soon as the last Perl transition was other they pinged us about the transition. Together with Luk we are now working on it. After some initial issues on arm which was unable to run docbook2html on our poor little policy document without segfaulting(!), it now looks like is not going too bad ... get ready for OCaml 3.10.2 in Debian Lenny!
  2. the "core" OCaml library by Jane St Capital (which I consider a really good replacement for the legacy standard library FWIW) has entered testing a few days ago. It will be released with Debian Lenny, no matter if with 3.10.1 or 3.10.2
Stay tuned!

MJ Ray: Fuel Price Bleating and Biking

[Photo of Cyclists]
England swings like a pendulum do! There's another fuel price protest and the coverage in the London press is pretty biased, with occasional balanced reports and very rare dissenting opinion. One of the favourite whines on news-and-nutters phone-ins is "waah, I live in a village, I need my car". While that's true for some people, most villagers could switch to bicycles for many journeys without problems. At the moment, the biggest problem with cycling to town is the number of cars on the small lanes, followed by the number of potholes. Switching to cycling or walking will have a triple benefit: fewer cars on the road will free up space for cycling, wear the roads out less and reduce fuel demand (so petrol should become cheaper for those who really need it). Over the last few days, I've been happy to read Bike The Drive 2008 [Dirk Eddelbuettel], Mountainbike, By Joerg Jaspert and How to Start Bicycling to Work, by John Goerzen. A couple of tweaks to that last one: in England, I don't think that a cycling helmet is necessary. I've not worn one for the last few months (it went mouldy after a rain storm) - I find I can hear traffic better and many drivers seem to give me more room on the road. I wonder if helmet-wearing "dehumanises" cyclists to drivers? The safety data seems rather confused, but it's a personal choice. If you feel safer with a helmet, wear one. I also wear ordinary business or casual clothes, relying on a good quality commuter saddle rather than cycling shorts. I suspect that drivers here are developing a sort of blindness to the "screaming yellow" hi-vis jackets, so I don't wear those - but sometimes I wear hi-vis reflective armbands if I'm wearing black in the dark. I agree completely with the comments on that page about being predictable, Cateye lights and pannier bags. Finally, Bike Week 2008 starts on 14 June, which would be an ideal time to try a group ride - or just get a free breakfast for cycling into town.

MJ Ray: Bristol and Bath Perl Mongers

The first meeting of the new Bristol and Bath Perl M[ou]ngers is tonight (Tue 27th) at 7pm, according to this mailing list post. Despite their rules, I've already been well-flamed by one member, so it will be interesting to see what sort of group it becomes. Hopefully the flamers are nicer in real life.

26 May 2008

Jaldhar Vyas: We Are At War With Eastasia. We Have Always Been At War With Eastasia.

John Goerzen reminds me of what from my perspective is one of the most amusing parts of watching the Democrats squabble over whether estrogen or melanin is more important in a presidential candidate. Apparently, the same people who just a few short months ago were the progressive vanguard of the peoples struggle to speak truth to the fascist power of Bushitlerburton are, in fact, STUPID EVIL RACISTS!1!!! Of course on August 25, they will magically turn back into audacious hope changers but until then I LOL.

DebConf team: DebConf8 Travel Sponsorship (Posted by Joerg Jaspert)

I finally sent out a flood of mails to those people that applied for Travel Sponsorship for this years Debian Conference in Argentina. We have 58 people who got a position in our sponsorship queue, asking for nearly 60.000 USD in total. We are not yet sure if we are able to reimburse all of them, but we will at least try to. We also have 24 people rejected from this queue and possibly some people haven’t been able to fill out their settings in our conference management system correctly/in time. While we are sorry for them, we can’t do much here.

Neil Williams: Non-code code development upstream for estron

As well as choosing a licence, various other non-code or pseudo-code tasks are needed in all upstream projects and I have been working on some of these in my upstream project, estron.

  1. Documentation - Quietly converting the old docs (XML comments) into SGML (docbook content) for use with yelp. Comments have no particular structure so it takes time to add docbook structure to what was just a block of arbitrary text in comment tags.

  2. MIME - Not sure if I've got this right still - I don't see the icon for .estron files and I get a warning when trying to double-click on an "Estron file" (the file type is recognised but gets confused with the XML inside). I'm following code samples from grisbi and drivel to try and get things together.

  3. configuration support - estron will use dbconfig-common in Debian for the internal estron database but I need to set upstream to be able to read in the data created by dbconfig in a non-Debian-only manner, probably using GIO to provide configuration that can include a filename of external config data.

  4. cross build support - a few quibbles in that area but I'll sort them before release. Can help catch architecture-specific problems in the code that would cause a FTBFS on the Debian buildd system.



Other tasks already covered:



I have actually been doing some code too - in QOF due to a bug identified by testing and developing estron and in estron itself to bring 64bit time handling to estron and prevent time overflows in 2038 should you use estron on 32bit machines.

25 May 2008

Enrico Zini: LDAP user database errors

LDAP user database errors In case your machine uses an external LDAP server for the user database, and you see this error:
id: ldap-nss.c:1376: do_init: Assertion  cfg->ldc_uris[__session.ls_current_uri] != ((void *)0)' failed.

The solution is to check that you have no passwords in /etc/libnss-ldap.conf and make it world readable, because software needs to access it in order to access the user database. This is apparently "normal" folk knowledge. Already in the BTS. Now, why is /etc/libnss-ldap.conf not world readable by default? Because a debconf question offers it to be that way. Why does it do so? I have no idea, since passwords should go in the not world readable /etc/libnss-ldap.secret anyway. Why do we get that assertion instead of something like cannot read /etc/libnss-ldap.conf? These sort of obscure errors or behaviours happen so often that I start to believe it's an intentional coding style. Maybe LDAP needs to be something for lite sysadmins with a painful initiation path, so that only the Worth and Pure of Spirit can use the only sane way to have a central user database in Linux. I almost feel like if I disclose these tricky bits one day I will be tied to a rock with an eagle eating my liver.

Thijs Kinkhorst: Efteling May 2008

Here's a selection of pictures from a recent visit to the Efteling.


Click the icons for full versions or view full set. I'm still planning on making yet another web photo album software of my own based on a revolutionary idea. Maybe I will actually do it sometime, who knows.

Next.

Previous.