InterviewSolution
Saved Bookmarks
| 1. |
For checking a file access rights, ___ system call is used.(a) acc(b) access(c) axs(d) filertThis question was posed to me in an interview for internship.My question is from File Handling System Calls in chapter System Programming I – Files of Unix |
|
Answer» CORRECT choice is (B) access To explain I would SAY: By using the access SYSTEM call, we can check the file’s access rights. It looks at the real UID and real GID of the user running the program and determines that WHETHER the file is accessible by the real user. |
|