1.

The SUID for any file can be set by the administrator using ____(a) chmod(b) chmod u+s filename(c) chmod s filename(d) chmod us filenameI have been asked this question in an interview for job.This intriguing question originated from Administrator Specific Commands and Privileges in section Essential Shell Programming of Unix

Answer» CORRECT option is (b) CHMOD u+s filename

To elaborate: The SUID (SET-user-ID) lets a process have the privileges of the owner of the file during the instance of the program. The SUID for any file can be set by the ADMINISTRATOR using chmod command. For EXAMPLE,


Discussion

No Comment Found

Related InterviewSolutions