I am trying to execute a C program from multiple users and trying to login as other user within the program to access a file. But I am getting error
setuid: Operation not permitted
Can I do something such I needn't to use sudo every time? Like, giving full access to the program to use setuid as it wants without calling sudo everytime?