Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-09-2005, 06:05 AM   #1
Registered: Jan 2005
Location: a tiny spot on the iceberg
Distribution: Slackware 10.1 (dropline 2.10, kernel
Posts: 320

Rep: Reputation: 30
forcing program to run in root mode

dear all,

i am writing a program under kylix and i need it to be run only by root, since it does modifications to root owned files.

how can i get it to run as root? if i chmod the binary file it will do, however as i'm releasing source code too i'd like that people that compile it already have this characteristic.

do you know how i could do this?

any suggestion welcomed.


Old 03-09-2005, 07:17 AM   #2
Registered: Nov 2003
Location: Bristol, UK
Distribution: Debian Lenny, Gentoo (at work)
Posts: 388

Rep: Reputation: 32
If you're distributing a makefile to compile it, you can chmod in that.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to run GUI program as root shadkong Slackware 8 09-20-2005 02:24 PM
Run program in daemon mode gubak Linux - General 3 06-20-2005 01:23 AM
Run program as root at logon? scottjwoodford Linux - Software 7 06-13-2005 04:30 AM
Automatically run root program. Hammett Linux - Software 4 05-16-2004 12:45 PM
im in user mode and cant run hdparm and ifconfig commands, but if im root, i can. kublador Linux - Newbie 2 09-12-2003 08:27 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:02 AM.

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