Thread (3 messages) 3 messages, 3 authors, 2012-12-22

EACESS when trying to open the file

From: Shreyansh Jain <hidden>
Date: 2012-12-22 19:11:54

Hi Niroj

On Saturday, December 22, 2012, Niroj Pokhrel [off-list ref]
wrote:
Hi,
I have been trying to open a character device and getting the following
error . It > open("/dev/mychardev", O_RDONLY)        = -1 EACCES
(Permission denied)
What do I have to change my permission mode ??
Please help. Thanx in advance .
...
Can you please tell what are the permissions you have assigned to
application which is producing this strace. Also, which user mode are you
in when you execute it.

Generally , it can be because lack of enough permissions to read app, or
because the driver associated with you char dev is returning this error
code.

Thats my two pence.

-
Shreyansh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20121223/5ff6f2f7/attachment.html 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help