On Sun, Aug 17, 2008 at 9:47 PM, Jim Morgan <[EMAIL PROTECTED]> wrote:

> Ok- I prowled around in the /etc/udev/rule.d file and I figure I am WAAYY 
> over my head on that one. What do I need to look at in the directory and is 
> there a decnt webpage or something that might help me figure that out?
>
> Jim KE5MKT
>

Fyi, this is what I found after some googling.  The context of the
forum discussion was that a person was having a similar problem
connecting his weather station to his serial port in openSUSE.  It
sounds right in sync with what Curt said about udev enabled linux
versions.

==================================================

* NOTE: If you are running OpenSUSE, or any other Linux distro which
utilizes "udev" (udev is included in almost every 2.6 kernel based
Linux distribution), then in order to permanently change permissions
of your ttyS0 port (or any ttyS* port), you must edit the
"/etc/udev/rules.d/50-udev-default.rules" file. Here are the changes
you must make in order for the permissions to stick after rebooting
your computer (you must be root to make the changes):

    * Open the "/etc/udev/rules.d/50-udev-default.rules" file in your
favorite text editor (as root). Find the line in the file that begins
with KERNEL=="tty[A-Z]". That's the line you will need to edit. Notice
the default settings will look something like this:

    * KERNEL=="tty[A-Z]*", NAME="%k", GROUP="uucp"

    * Add [, MODE="777"] to the end of the above line in your
50-udev-default.rules file (without the brackets but don't forget to
add the preceding coma). It should look something like this:

    * KERNEL=="tty[A-Z]*", NAME="%k", GROUP="uucp", MODE="777"

    * After changing this file and saving, reboot your computer. The
ttyS* ports will grant rwx permission to any user.

    * Important: If you have a udev enabled Linux distribution and you
do not make the above noted changes to your 50-udev-default.rules
file, then every time you reboot your computer, the permissions on the
ttyS* ports will revert back to root only access. This is because udev
dynamically updates the /dev directory upon booting. All permissions
granted during your previous session will be lost and Weather Display
will not function properly. This solution is known to work properly
with OpenSUSE 10.2.

==================================================

Fyi, I had the same problem with permissions on my serial port on a
laptop running openSUSE 10.3.  I wasn't using Xastir on that unit,
though, so I got around the problem by just running GTKterm and
minicom as root whenever I needed to talk to the serial port.  I
wouldn't want to run Xastir as root, though, so hopefully the above
tweak will do the trick.

Regards,
Lee - K5DAT
_______________________________________________
Xastir mailing list
Xastir@xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir

Reply via email to