Computer and IT knowledge - things to know
add user to gruop apache ..
chgrp apache apachectl
% chmod 4510 apachectl
% chmod 4510 httpd
The execution order is important. If you swap the command execution order you will lose the setuid bit.
Now if we look at the file we see:
% ls -l apachectl
-r-s--x--- 1 root apache 32 May 13 21:52 apachectl
computer2know :: thank you for your visit :: have a nice day :: © 2023