Re: [flalug] Serial Port Troubles

From: Eben King (eben1@tampabay.rr.com)
Date: Wed Aug 06 2003 - 21:08:05 EDT


On Wed, 6 Aug 2003, Steve Steiner wrote:

> >It need not need to be 777, merely group-writable by group (say) 'pilot',
> >(which you would create if it doesn't exist) and the app sgid to that
> >group. But that's not where your problem comes from.
>
> I am curious about giving the serial port persmissions as you described
> below. Do you mean to create a user group "pilot"? Then add users, say
> myself, to that group? Or am I misunderstanding you?

My idea is this:
As root, do this:
 Create the group 'pilot' (with e.g. groupadd).
 Set these permissions and ownerships:
 crw-rw---- 1 root uucp 4, 64 Aug 6 20:08 /dev/ttyS0
 -rwxr-s--x ? root pilot ? ? /usr/bin/gpilot
          ^
 'chmod o-x' if you only want those in group 'pilot' to be able to run it
(add yourself to group 'pilot' in this case [group changes don't take
effect until you log out and log back in] with e.g. gpasswd). root's
permissions on gpilot don't matter.

I suppose there are more complicated solutions involving gpilot
being set-GID or whatnot, but I figure, don't complicate things
unnecessarily.

-- 
-eben    ebQenW1@EtaRmpTabYayU.rIr.OcoPm    home.tampabay.rr.com/hactar
CANCER:  The position of Jupiter says that you should spend the
rest of the week face down in the mud.  Try not to shove a roll of
duct tape up your nose when taking your driver's test.  -- Weird Al



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:20:41 EDT