forcing installation as root
Hi all, i am developing a linux program as part of my Uni project, the program involves messing around with TCP packets an integrating with netfilter/iptables in the 2.4 kernel. I need to force a user to install this program only as root, this is easy with respect to the kernel module i am developing as once the patch is applied to the kernel source the module can only be compiled and installed by root, as part of a kernel build (i think). However i also have a userspace program that i want to only be available for use by a root user, can i limit those that compile and execute the program to only a root user? Even though i am doing this project i am very much a newbie on many aspects of linux, if you can help me with this point i would be gratefull
many thanks david crossland |
You could examine the UID of the user that executes the script. Obviously if you are providing the source then it could be removed.
|
All times are GMT -5. The time now is 03:58 PM. |