Accessing devices as non-root user

2007-12-25 7:03:00

Dear managers,

we have an application (running on Solaris 10) that accesses sound and
serial devices. The application works when run as root, but is not able
to access (/dev/audio, /dev/term/0,...) when run as a normal user.

audioCtlDevice = open ("/dev/audioctl", O_RDWR);
if (audioCtlDevice < 0) { NSLog(@"Error: open() returned %d;
errno %d", audioCtlDevice, errno); return 0; }

2007-05-22 11:57:15.084 AudioPlayTest[21626] Error: open() returned -1;
errno 2

I suppose this is a general issue. What do we have to do to give
non-root users access to devices?

Thanks a lot!

Regards,

Andreas

Comments

Got something to say?

You must be logged in to post a comment.