# Fedora Core 4 & udev

**URL:** <https://forums.digi.com/t/fedora-core-4-udev/8047>\
**Category:** USB Devices\
**Created:** [December 19, 2007, 4:26am UTC](https://forums.digi.com/t/fedora-core-4-udev/8047 "2007-12-19T04:26:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mirrabooka](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@mirrabooka](https://forums.digi.com/u/mirrabooka)\
**Post date:** [December 19, 2007, 4:26am UTC](https://forums.digi.com/t/fedora-core-4-udev/8047/1 "2007-12-19T04:26:06Z")

</div>

Hi all,

I am having some trouble setting some file permissions on my digi port tty. At bootime I chowm 666 /dev/ttyb00 and same for /dev/ttyb01 , I have a 2 port digi neo server, this works fine until the dgrp\_daemon service is restarted and the permissions get lost for group and others. I have read a few of the posts in this forum and tried to add the MODE=“0666” in the 10-dgrp.rules and restarted the service but no luck. Could someone point me in the correct direction? I am hoping to get this working and tested on FC4 so that I can update my Red Hat Enterprice 5 box as it also has the same issue.

Heres some info.

This is output while unloading and loading the module.

udevmonitor  
udevmonitor prints the received event from the kernel [UEVENT]  
and the event which udev sends out after rule processing [UDEV]

UEVENT[1198036162] remove@/class/tty/tty\_dgrp\_b\_1  
UEVENT[1198036162] remove@/class/tty/cu\_dgrp\_b\_1  
UEVENT[1198036162] remove@/class/tty/pr\_dgrp\_b\_1  
UEVENT[1198036162] remove@/class/tty/tty\_dgrp\_b\_0  
UEVENT[1198036162] remove@/class/tty/cu\_dgrp\_b\_0  
UEVENT[1198036162] remove@/class/tty/pr\_dgrp\_b\_0  
UDEV [1198036162] remove@/class/tty/tty\_dgrp\_b\_1  
UDEV [1198036162] remove@/class/tty/pr\_dgrp\_b\_1  
UDEV [1198036162] remove@/class/tty/cu\_dgrp\_b\_1  
UDEV [1198036162] remove@/class/tty/tty\_dgrp\_b\_0  
UDEV [1198036162] remove@/class/tty/cu\_dgrp\_b\_0  
UDEV [1198036162] remove@/class/tty/pr\_dgrp\_b\_0  
UEVENT[1198036334] add@/class/tty/tty\_dgrp\_b\_0  
UEVENT[1198036334] add@/class/tty/cu\_dgrp\_b\_0  
UDEV [1198036334] add@/class/tty/cu\_dgrp\_b\_0  
UEVENT[1198036334] add@/class/tty/pr\_dgrp\_b\_0  
UEVENT[1198036334] add@/class/tty/tty\_dgrp\_b\_1  
UEVENT[1198036334] add@/class/tty/cu\_dgrp\_b\_1  
UEVENT[1198036334] add@/class/tty/pr\_dgrp\_b\_1  
UDEV [1198036334] add@/class/tty/tty\_dgrp\_b\_0  
UDEV [1198036334] add@/class/tty/cu\_dgrp\_b\_1  
UDEV [1198036334] add@/class/tty/tty\_dgrp\_b\_1  
UDEV [1198036334] add@/class/tty/pr\_dgrp\_b\_0  
UDEV [1198036334] add@/class/tty/pr\_dgrp\_b\_1

cat 10-dgrp.rules  
KERNEL==“tty\_dgrp\*”,PROGRAM=“/usr/bin/dgrp\_udev %k”, NAME=“%c”, MODE=“0666”  
KERNEL==“cu\_dgrp\*”, PROGRAM=“/usr/bin/dgrp\_udev %k”, NAME=“%c”  
KERNEL==“pr\_dgrp\*”, PROGRAM=“/usr/bin/dgrp\_udev %k”, NAME=“%c”

service dgrp\_daemon restart  
Stopping DGRP daemons:  
Daemon for id “a” (192.168.0.212): stopped.  
Daemon for id “b” (192.168.0.211): stopped.  
Starting DGRP daemons:  
Daemon for id “a” (192.168.0.212): started.  
Daemon for id “b” (192.168.0.211): started.  
[root@neptune dev]# l ttyb\*  
crw------- 1 root root 252, 0 Dec 19 14:22 ttyb00  
crw------- 1 root root 252, 1 Dec 19 14:22 ttyb01

dmesg | grep dgrp  
dgrp: Digi RealPort driver version: 1.9-17

lsmod | grep dgrp  
dgrp 98364 2

modinfo dgrp  
filename: /lib/modules/2.6.17-1.2142\_FC4smp/misc/dgrp.ko  
description: RealPort driver for Digi’s ethernet-based serial connectivity product line  
author: Digi International, [http://www.digi.com](http://www.digi.com)  
license: GPL  
srcversion: 3972645A98C7DC703046C68  
depends:  
vermagic: 2.6.17-1.2142\_FC4smp SMP mod\_unload 686 REGPARM 4KSTACKS gcc-4.0parm: rawreadok:Bypass flip buffers on input (int)  
parm: register\_cudevices:Turn on/off registering legacy cu devices (int)  
parm: register\_prdevices:Turn on/off registering transparent print devices (int)  
parm: net\_debug:Turn on/off net debugging (int)  
parm: mon\_debug:Turn on/off mon debugging (int)  
parm: comm\_debug:Turn on/off comm debugging (int)  
parm: tty\_debug:Turn on/off tty debugging (int)  
parm: ports\_debug:Turn on/off debugging of /proc/dgrp/ports (int)

---

<div class="post-metadata">

**Author:** ![userid0](https://avatars.discourse-cdn.com/v4/letter/u/f6c823/32.png) [@userid0](https://forums.digi.com/u/userid0)\
**Post date:** [December 19, 2007, 1:53pm UTC](https://forums.digi.com/t/fedora-core-4-udev/8047/2 "2007-12-19T13:53:01Z")

</div>

Try the following UDEV rule syntax:

KERNEL==“tty\_dgrp\*”, PROGRAM=“/usr/bin/dgrp\_udev %k”, NAME=“%c”, GROUP=“root”, MODE=“0666”, OPTIONS=“last\_rule”

Test the permissions:

1. Run “udevcontrol reload\_rules”
2. /etc/init.d/dgrp\_daemon restart

---

<div class="post-metadata">

**Author:** ![mirrabooka](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@mirrabooka](https://forums.digi.com/u/mirrabooka)\
**Post date:** [December 21, 2007, 12:46am UTC](https://forums.digi.com/t/fedora-core-4-udev/8047/3 "2007-12-21T00:46:55Z")

</div>

Thanks! that worked very well.

Geo
