adulogo.jpg (1752 bytes) LINUX SDK  

/dev Directory for ADU Devices

 

  

The /dev directory lists the devices connected to the Linux computer.

Symbolic links placed into the /dev directory allows access to devices through alternative names.

This page describes how to list the names of ADU devices.

(Easy-Use Home)

 

ls Command

The ls command is used to display the /dev directory contents.

The following example shows the output of the ls command on a system running Fedora * Live CD.

    [fedora@localhost ~]$ ls -l /dev/adu*
    crw-rw-rw- 1 root root 180, 67 2008-02-29 15:04 /dev/adutux0
    lrwxrwxrwx 1 root root       7 2008-02-29 15:04 /dev/adutux4 -> adutux0

This shows two entries for an ADU device in the /dev directory.

The first entry shows that the adutux driver named the ADU device /dev/adutux0 since it was the first ADU device connected to the computer. If another ADU device was connected first then it would have been named /dev/adutux0.

The second entry shows the symbolic link that udev created when the ADU device was detected. The symbolic link for the B00099 ADU device is always /dev/adutux4 regardless of the sequence of device connection.

The permission on the /dev/adutux4 is rwxrwxrwx allowing global read-write.

Without the 10-adu.rules file the ls command displays.

    [fedora@localhost ~]$ ls -l /dev/adu*
    crw-rw---- 1 root root 180, 67 2008-03-02 07:45 /dev/adutux0

The /dev/adutux4 symbolic link is missing.
Even worse the loosest permission is read-write for the root group.
A normal user cannot access the /dev/adutux0 device.