EACESS when trying to open the file

Niroj Pokhrel nirojpokhrel at gmail.com
Sat Dec 22 11:35:33 EST 2012


On Sat, Dec 22, 2012 at 9:49 PM, Adel Qodmani <mpcadel at gmail.com> wrote:

> I am not sure, but try running your application as a root
>
> Adel,
>
>
> On Sat, Dec 22, 2012 at 6:09 PM, Niroj Pokhrel <nirojpokhrel at gmail.com>wrote:
>
>> 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
>>
>> _______________________________________________
>> Kernelnewbies mailing list
>> Kernelnewbies at kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>>
>
Thank you Adel. It worked.

-- 
Niroj Pokhrel
Software Engineer,
Samsung India Software Operations
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20121222/4bf24164/attachment-0001.html 


More information about the Kernelnewbies mailing list