LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   forcing installation as root (https://www.linuxquestions.org/questions/programming-9/forcing-installation-as-root-123225/)

david_crossland 12-06-2003 08:17 AM

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

david_ross 12-06-2003 08:53 AM

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.