Core iTOps Tube

Wednesday, 16 May 2012

/var/lock/subsys permission denied for root

Hello



I have simple line of code here:


Code:


FILE *lockfp = fopen("/var/lock/subsys/processName", "w");

which is denied even running as root. The result is


Code:


locking failed for the following reason: Permission denied

How is this possible? Why is this happening?



Thanks for your help




No comments:

Post a Comment