You are viewing an article about an obsolete product. Information on this page is provided as-is and not supported.

HOW TO: Configure Device Permission and Ownership in Linux with ClassicBoard and Digi Neo adapters

 

Most newer Linux distribution versions and kernels now use UDEV for device creation. When using UDEV all permissions are now set by UDEV, the Digi driver no longer controls these settings on newer kernels/distributions.

When using UDEV, tty device permissions can be modified by editing the UDEV script, called "10-dgnc.rules" in /etc/udev/rules.d.

Here are the default entries found in /etc/udev/rules.d/10-dgnc.rules:

KERNEL=="tty_dgnc*", PROGRAM="/usr/sbin/dgnc_udev %k", NAME="%c", SYMLINK+="dg/dgnc/%c", OPTIONS+="last_rule"

KERNEL=="pr_dgnc*", PROGRAM="/usr/sbin/dgnc_udev %k", NAME="%c", OPTIONS+="last_rule"

KERNEL=="dgnc_mgmt[0-9]", NAME="%k", SYMLINK+="dg/dgnc/mgmt%n" OPTIONS+="last_rule"

The pr_dgnc devices are used for transparent/pass through printing. This is where there is a printer attached to the printer port of a terminal or PC using a tty device.

To change the UDEV rule syntax on the tty_dgnc* devices to set 666 permissions (typically used for getty):

# this will set all digi dgnc tty devices

KERNEL=="tty_dgnc*", PROGRAM="/usr/sbin/dgnc_udev%k", NAME="%c", SYMLINK+="dg/dgnc/%c", GROUP="root",MODE="0666", OPTIONS="last_rule"

 

Test the permissions:

1) Run "udevcontrol reload_rules"

2) /etc/init.d/dgnc restart

Last updated: Jan 16, 2024

Recently Viewed

No recently viewed articles

Did you find this article helpful?