I understand how to make an executable also execute as root with the chmod u+s command to set the suid. What I am wondering is how I would get the executable always executed as a non root user that is different from the user that is executing the file.
So for clarity let's say I have Alice and Bob users, both not in the sudo group. Alice creates an executable that reads something from her homefolder and wants to make sure that Bob can execute the file as well but does not want to have the executable run with root privileges due to security concerns. How can Alice make sure that the file is always ran under her user without Bob needing her credentials?