From ben@callahans.org Sat Mar 15 23:49:17 2003
Date: Sat, 15 Mar 2003 20:14:58 -0500
From: Benjamin A. Okopnik <ben@callahans.org>
To: Kal <kal@linsystems.ca>
Subject: Re: Thanks for writing "sulu"!

----------------------------------------------------------------------
Running SULU as a non-root user

I've spent a bit of time chasing this down from the "hotplug" end, and
have managed to get it working. Here's the updated info (the "hotplug"
functionality and layout have changed a bit; that's what's responsible
for the changes).

1) The usermap file (usb.usermap) should be renamed to "uproar.usermap"
and placed in "/etc/hotplug/usb/".

2) Due to some sort of shell-scripting weirdness, 

cd /etc/hotplug
. hotplug.functions

in "/etc/hotplug/usb/uproar" does not work and needs to be replaced
with a single-line invocation:

. /etc/hotplug/hotplug.functions

The result of all this should be to set "/proc/bus/usb/$GROUP/$DEVICE"
(typically something like "/proc/bus/usb/001/12") to "root:staff", with
permissions set to 664 (rw-rw-r--). Obviously, you need to make sure
that you're a member of group "staff" for this to do you any good.
Assuming that your USB support and your hotplug support are working OK,
doing "tail -f /var/log/messages" should show you what's happening as
you connect and disconnect your sync cable. Mine looked like this:

--------------------------------------------------------------------------
Mar 15 20:05:04 Fenrir kernel: hub.c: USB new device connect on bus1/1, assigned device number 26
Mar 15 20:05:04 Fenrir kernel: usb.c: USB device 26 (vend/prod 0x4e8/0x5a03) is not claimed by any active driver.
Mar 15 20:05:08 Fenrir /etc/hotplug/usb.agent: Setup 0x00 uproar for USB product 4e8/5a03/100
Mar 15 20:05:08 Fenrir /etc/hotplug/usb.agent: missing kernel or user mode driver 0x00
Mar 15 20:05:08 Fenrir /etc/hotplug/usb.agent: Module setup uproar for USB product 4e8/5a03/100
Mar 15 20:05:08 Fenrir /etc/hotplug/usb/uproar: setting permissions of /proc/bus/usb/001/026
--------------------------------------------------------------------------


Ben Okopnik, Contributing Editor @ Linux Gazette
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
"The whole aim of practical politics is to keep the populace alarmed (and
hence clamorous to be led to safety) by menacing it with an endless series
of hobgoblins, all of them imaginary."
 -- H. L. Mencken
