EACESS when trying to open the file
Hi, I have been trying to open a character device and getting the following error : open("/dev/mychardev", O_RDONLY) = -1 EACCES (Permission denied) What do I have to change my permission mode ?? Please help. Thanx in advance . -- Niroj Pokhrel Software Engineer, Samsung India Software Operations
Hi What is output for $ls -a /dev/mychardev I think sources for your "mychardev" would help a bit ;) -- -----Original Message----- From: Niroj Pokhrel <nirojpokhrel@gmail.com> Sender: kernelnewbies-bounces@kernelnewbies.org Date: Sat, 22 Dec 2012 21:39:51 To: <kernelnewbies@kernelnewbies.org> Subject: EACESS when trying to open the file _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Hi Niroj On Saturday, December 22, 2012, Niroj Pokhrel <nirojpokhrel@gmail.com> 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
participants (3)
-
Niroj Pokhrel -
Shreyansh Jain -
Vladimir Murzin