LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-06-2003, 08:17 AM   #1
david_crossland
LQ Newbie
 
Registered: Oct 2003
Location: London
Posts: 2

Rep: Reputation: 0
Question 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
 
Old 12-06-2003, 08:53 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
You could examine the UID of the user that executes the script. Obviously if you are providing the source then it could be removed.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix forcing mail to be delivered to root azrael808 Linux - Software 5 07-20-2005 03:42 PM
forcing program to run in root mode acidjuice Linux - Software 1 03-09-2005 07:17 AM
forcing logout of an unwanted instance of root jeffreybluml Linux - Newbie 4 03-01-2005 04:51 PM
forcing boot from cd nocturnal Slackware 1 11-19-2003 04:08 PM
Forcing Devel. Package installation BajaNick Red Hat 2 09-29-2003 10:14 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration