On Wed, 2005-08-31 at 12:02 -0400, Robert Locke wrote:
On Wed, 2005-08-31 at 10:26 -0400, pking123(a)sympatico.ca wrote:
> I found I was able to use JPilot, and it appears to do what I want.
> But I seem to have run into a "feature" in FC4 which resets the
> permissions on /dev/ttyS0 to 660 from 666.
>
> I have looked through the kernel docs, and I do not suspect the
> kernel is doing this. Any suggestions as to what is responsible for
> resetting these permissions, and how do I make these changes
> permanent?
>
> Paul King
Hi Paul,
You are battling with udev.... Turns out that every time you reboot,
the /dev/ directory is wiped out. The files are regenerated by udev
when the system boots or you and I dynamically plug something in.
Now you can look to manipulate the udev rules to automatically create
your symlink of /dev/pilot, for example, there are several examples in
the archives. But the system should probably already have a rule to
assign the "logged-in user" as the owner of the serial port or any
dynamically created USB ports.... You can see some of this
in /etc/udev/rules.d/....
---
YMMV
you might want to check out this web site...
http://www.reactivated.net/writing_udev_rules.html
# cat /etc/udev/rules.d/10-udev.rules
KERNEL="ttyUSB1",SYMLINK="pilot"
# cat /etc/udev/permissions.d/10-udev.permissions
#set Palm Pilot rwx
pilot*:craig:usb:0666
Craig