I am using a Makefile to compile my C program and want to make the executable setuid. How can I set the permissions using the Makefile?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The same way you would from the command line (
chmod u+s .....) – just have it be the line after you’ve created the executablenote too that that you could, in addition, do a
sudo chown root:root .....