Re: EACESS when trying to open the file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Niroj

On Saturday, December 22, 2012, Niroj Pokhrel <nirojpokhrel@xxxxxxxxx> 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
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux