When following a symbolic link, whose permissions determine access?

Study for the OSCP Linux Exam. Use our flashcards and multiple-choice questions to test your skills. Each query comes with detailed hints and explanations to enhance your preparedness. Get ready to conquer the exam!

Multiple Choice

When following a symbolic link, whose permissions determine access?

Explanation:
A symbolic link is just a pointer to another file, so the access decision is governed by the permissions of the file it points to, not by the link itself. The kernel ignores the link’s own permission bits when following it. To reach the target you also need proper traversal rights on all directories along the path, but once the path resolves, the target file’s read, write, and execute bits determine whether you can access it. In short, access is controlled by the target file’s permissions.

A symbolic link is just a pointer to another file, so the access decision is governed by the permissions of the file it points to, not by the link itself. The kernel ignores the link’s own permission bits when following it. To reach the target you also need proper traversal rights on all directories along the path, but once the path resolves, the target file’s read, write, and execute bits determine whether you can access it. In short, access is controlled by the target file’s permissions.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy