Which of the following is used with access call for checking the owner’s permissions?

Which of the following is used with access call for checking the owner’s permissions?
A. R_OK
B. W_OK
C. X_OK
D. R_OK, W_OK, X_OK
 
Answer: d
Explanation: By using the access system call, we can check the file’s access rights. We’ve to specify one of the following four values to define the permission which is needed to be tested.
Code:
R_OK    -    read permission OK
W_OK    -    write permission OK
X_OK    -     execution permission OK
F_OK    -    file exists
 

Tìm kiếm

Back
Top