Search Results: "Sam Morris"

20 December 2015

Iain R. Learmonth: YubiKey + udev follow-ups

In my previous post, I talked about the udev hack I had used with the YubiKey and how it was not the correct way to do things. I recieved a lot of feedback on this post, and here I'm hoping to summarise what the correct way to do it is. The rule I was originally using was:
SUBSYSTEMS=="usb", ATTRS idVendor =="1050",ATTRS idProduct =="0111", OWNER="irl"  
The problem with this rule was that it always made my own username the owner of the YubiKey. For my use on my laptop, this was fine, as I'm the only user ever logged into my laptop, but this is not the right way to do this. On a multi-user system you would want the user logged into the console, and so the one that has plugged in the USB device by implication, to be the owner of the device. Sam Morris followed up to my last post by e-mail to suggest the following rule:
SUBSYSTEMS=="usb", ATTRS idVendor =="1050", ATTRS idProduct =="0111", TAG+="uaccess"  
The difference here is that instead of explicitly setting an owner, the uaccess tag is added to the device. This tag has meaning to systemd-logind and will add the necessary ACLs to the device to allow the console user to access it. The ACL should also be removed by systemd-logind when you log out. He also suggested using getfacl (from the acl package) to check the ACLs that have been assigned to devices.
irl@orbiter$ getfacl /dev/hidraw0  
# file: hidraw0
# owner: irl
# group: root
user::rw-  
user:irl:rw-  
group::---  
mask::rw-  
other::---  
Here we can see that the device has been set to being owned by my username. (Note that on your system, the YubiKey may have a different path, check your dmesg output to see what device name it is assigned.) If you don't have systemd-logind available, fear not as there is an alternative approach you can take that was suggested by Simon Josefsson, who actually wrote a blog post in 2014 about using an offline GnuPG master key with subkeys on a YubiKey. If you install the pcscd package this will provide you with a daemon that runs as root and provides access to the smartcard for ordinary users. I haven't looked at how pcscd handles limiting access to the device for other users as this isn't an approach I've taken. Thanks to everyone who gave feedback, I feel like I've learnt something and taken another step closer to doing things The Right Way .

26 November 2011

Christian Perrier: Bug #650000

Sam Morris reported the Debian bug #650000 on Friday November 25th, against system-tools-backends. Bug #640000 was reported as of September 1st. We're now approching the 3 months mark for 10,000 bugs. It either means that Debian development rate is slowing down...or that we're in the way to stabilize our development version. To be honest, I think that both reasons can be invoked. So, we're indeed halfway in the road from bug #600000 to bug #700000. Remenber the bug #700000 prediction contest? Bug #600000 was reported as of October 12th 2010, So, it took 1 year, 1 month and 13 days to reach #650000. It means that, with the same rate, we should reach bug #700000 at the very very beginning of 2013.And thus, the closest bets as of now are those by David Pr vot and, sorry, myself. There's of course plenty of time (and a release) to change this.

18 July 2007

Martin F. Krafft: They don't want my business

I have been trying all day to get price quotes for a couple of flights within the next twelve months. I have not managed. Here is why, sorted by company, and for all companies that make sense for the routes:
Swiss When you click on the calendar fields to choose the departure date, a window pops up:
Shortly you see if there are flights available on your preferred date.
"Shortly" has lasted for as long as 3 hours, which is when I decided to try again, and ultimately to try someone else.
Emirates On submission of their form, I am being told:
Sorry, we were temporarily unable to process your request due to a technical problem. Please wait a moment and try again.
I've waited countless moments, and now, 11 hours since my first try, their idea of a moment still isn't over. But what kind of technical problem is this anyway, which resolves itself on retry after waiting a moment?
Austrian Airlines
Our website is currently undergoing maintenance. Please come back later.
All day.
Air New Zealand Once I hit "search flights", I get a blank page: a proper HTTP response followed by 0 bytes of HTML.
British Airways Whenever I hit submit, I am told that the return date has to be after the outbound date. I am then taken back to the form, which preserved all fields, except for resetting both dates to the same day, a week from now.
Malaysia Airlines
An error has occurred processing your request. Please contact our technical staff.
without a link or any hint as to how to contact them. I just tried them all again, without any changes; 11 hours later. Apparently they don't want my business. I really wonder what the future of air travel will be. In many ways, I hope they stop dumping prices and concentrate again on customer satisfaction. But I guess that applies to pretty much everything these days. PS: I especially appreciate Easyjet's policy of separating friends: after buying one ticket on a given route in August and finding out that we need a second one, I am told that "the route you have selected will be available from 28 October 2007". The funny thing is that we already have a ticket for that route in August. They just don't want my friend to fly along... NP: Gazpacho: Firebird Update: Sam Morris alerted me to Kayak, a very impressive meta-search engine for flights. Sure beats visiting each site in turn (although that could get you better deals through specials), and also replaces STA Travel and Opodo for me. Update: Enrico Zini points me to skyscanner, which complements Kayak in that it searches only the low-cost airlines. Kayak does include EasyJet, but they aren't always the cheapest.

23 May 2007

MJ Ray: Samba, CUPS, Printing (CUPS direct HOWTO)

Going back to connecting to CUPS directly, Sam Morris commented:
"http://www.owlfish.com/thoughts/winipp-cups-2003-07-20.html has instructions that I have used in the past. Use "Add Printer", select "Connect to a printer on the Internet..." and enter the printer's URL (e.g., http://192.168.0.1:631/printers/someprinter). When asked for the driver choose the Generic Manufacturer and the "MS Publisher Imagesetter" printer."
Interesting. I always used Apple LaserWriter. Is the MS Publisher one better?

5 April 2007

Martin F. Krafft: Sun gives a flying food about AMD64

During my attempts to get Java support into my Iceweasel browser on my amd64 desktop, Sam Morris pointed me to this bug log. In it, you will find more than two years worth of requests and seconds by users desperately waiting for the 64-bit Java browser plugin without a single comment by Sun. Amazing. Even if it means using JRE 1.4, as opposed to 1.5 or even Java6, I am switching to Blackdown, who even provide an APT-gettable archive of their Java packages. At least now Java works from within my Iceweasel browser on amd64. Thanks, Sun. Suckers. NP: Erik Norlander / Music Machine

8 April 2006

Jose Carlos Garcia Sogo: Autostart applications in GNOME 2.14

Dear Lazyweb, Gnome 2.14 can autostart applications by putting a .desktop file in /etc/xdg/autostart directory. I have been asked to do that for Beagle packages, but I have a question to make: how can a user to disable autostart of Beagle if he desires to do so? If he have to edit /etc he won't have rights, if he cannot do it, I won't make such requested change. Update 2006-04-09: Thanks to Yann Rouillard, Travis Watkins and Sam Morris for their comments on how autostart actually works, and pointing me to Freedesktop.org autostart specs. I will make some tests on how this works in Gnome, with gnome-session, and then I will probably include this in beagle package.