setuid question, or how to run a program with different ID
There is a nice program on my PC - niceprogram.
While it runs smoothely with user ID 501 (userA), it doesn't run with user ID 502 (userB).
There is no problem when userA is logged into the machine. The problem is with the userB. The work around I found till now is to type into the terminal:
$ su userA
I wonder if there is way to combine all three steps into one step?
Maybe it has something to do with setuid?
Maybe, a little #bin/bash will do the job?
userB is not a root, the program is owned by the root, I guess, though it was installed by userA.