Home
Developer Resources
QNX RTOS v4
QNX RTOS v4 Knowledge Base

QNX RTOS v4 Knowledge Base

Foundry27
Foundry27
QNX RTOS v4 project
Resources

QNX RTOS v4 Knowledge Base

Title Permissions on files in /dev directory
Ref. No. QNX.000009274
Category(ies) Utilities, Filesystem, Configuration
Issue When booting the system all the /dev files are regenerated.  So, what is the best way to get the permissions set on the device files?  There are some device files which are generated with permissions set to 600.  We need to have permissions 666 on /dev/tp0 /dev/tpr0 /dev/cd0 and /dev/fd0.  Currently we see "chmod 666 /dev/tp* /dev/fd0 /dev/cd0" in our  /etc/config/sysinit.node file but was wondering if there is a way to do this without having to use the chmod command, i.e. an option to "Dev".

Solution Generally, raw devices are owned/read/write by root as a protection mechanism.  All of the /dev entries listed above are actually managed by "Fsys" rather than by "Dev".  There are no command-line options to Fsys (or Dev) to give non-root users access to these devices.  Using 'chmod' to set the permission is the correct way to do this.