[TriLUG] USB Palm under linux

Jeremy Portzer jeremyp at pobox.com
Thu Jul 24 09:32:57 EDT 2003


On Thu, 2003-07-24 at 09:04, rasch at raschnet.com wrote:
> On Wed, Jul 23, 2003 at 08:17:21PM -0400, Joshua Bedick wrote:
> > Quick Question about setting up a palm device under linux.  First off
> > after a lot of time and RTFM I've got it working.  My question is more
> > procedural.  Pilot-Link and GPilot work fine under RH 9 as root.  To get
> > it to work as a user I changed the permissions on a file:
> > 
> > chmod 666 /dev/ttyUSB1
> > 
> > Is this a bad idea?  If it is what do I do instead?
> 
> This isn't _that_ bad of an idea depending on who has access to your
> system.  Also, considering that your pda only talks over this port while
> it's actively hotsyncing the opportunity for anyone else to write/read
> from this port is narrow.  However, to improve this security you can
> create a group in your /etc/group file called "pda" with you as a member
> and "chgrp pda /dev/ttyUSB1".  Then, you can use "chmod 660
> /dev/ttyUSB1" and only people in the pda group can access that port.
> Note: if you add yourself to the pda group you'll have to log out/in for
> it to take effect; you can find out what groups you belong to by typing
> "groups".

This will work, but it's a PITA to maintain.
The much "cleaner" approach is pam_console and console.perms(5) as Brian
Weaver explained.

--Jeremy

-- 
/---------------------------------------------------------------------\
| Jeremy Portzer       jeremyp at pobox.com       trilug.org/~jeremy     |
| GPG Fingerprint: 712D 77C7 AB2D 2130 989F  E135 6F9F F7BC CC1A 7B92 |
\---------------------------------------------------------------------/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://www.trilug.org/pipermail/trilug/attachments/20030724/cad295bf/attachment.pgp>


More information about the TriLUG mailing list