Библиотека сайта rus-linux.net
Most device files will already be created and will be there
ready to use after you install your Linux system. If by some chance
you need to create one which is not provided then you should first
try to use the MAKEDEV script. This script is
usually located in
/dev/MAKEDEV but might also
have a copy (or a symbolic link) in
/sbin/MAKEDEV. If it turns out not to be in
your path then you will need to specify the path to it
/dev/ttyS0with major node 4 and minor node 64 as a character device with access permissions 0660 with owner root and group dialout.
ttyS0 is a serial port. The major and
minor node numbers are numbers understood by the kernel. The kernel
refers to hardware devices as numbers, this would be very difficult
for us to remember, so we use filenames. Access permissions of 0660
means read and write permission for the owner (root in this case)
and read and write permission for members of the group (dialout in
this case) with no access for anyone else.
Только зарегистрированные пользователи могут оценивать и комментировать статьи.