Unix has a “security model”. As a normal users you can do stuff, but
you should not be able to access other people’s files on the same
computer. And as a user you should not be able to cause the computer
to stop working.
The program can be made setuid by doing
sudo chown root <program name>
sudo chmod 4755 <program name>
或者 使用 +setuid , see link: http://blog.csdn.net/gw569453350game/article/details/51499828