Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> "su"ing Within A Script
catbutt
post Nov 13 2002, 06:32 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 3
Joined: 13-November 02
Member No.: 147



Ok, another question...I have a script that has to run as root, since it does certain things like restart apache, etc. However, it also needs to start a another program that should run as a user, since running it as root seems a bad idea (it is a server program, and I want to make sure if someone exploits some vulnerability in it they can only do so much damage).

I can't do an "su" within a script, that doesn't work....is there any way to tell the OS to run the program as a non-root user?

I wrote the program that will be running, so I suppose a possibility is to change the user internally to the program, if that is possible, but I don't know that either. (it is written in C/C++)
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 17th October 2017 - 05:33 PM