LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-07-2004, 11:08 AM   #1
falcon
LQ Newbie
 
Registered: Oct 2002
Location: KC, MO
Distribution: LHR
Posts: 4

Rep: Reputation: 0
Run program as user


Hi,

I'm trying to setup a Linux install to start a program on boot, with the privilages of a non-su user. I've been googling for days and have been looking for a clue as to where to start on this.

Currently, I've got a startup script that starts up out of rc.local, but it runs as root. I don't want this program to run as root for two reasons. First I feel it is a security problem, and second the user can't access the program to stop / restart it.

If anyone could point me in the right direction, I would be gratefull until the end of time... if not, I'll still be gratefull *grin*.

Disto= Fedora Core 2

Thanks

Shannon

Last edited by falcon; 11-07-2004 at 11:10 AM.
 
Old 11-07-2004, 11:17 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
You can do it with su:
su - SOMEUSER /path/to/program
 
  


Reply


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
run program as different user h2gofast Linux - Newbie 2 11-26-2005 12:05 PM
Need to have program run as different user exodist Linux - Software 5 10-26-2005 10:07 PM
How Do I Run A Program As A Different User?? Wolf-67 Linux - Newbie 3 10-04-2004 12:26 PM
run program after user logs in kinasz Linux - General 2 09-22-2004 03:47 AM
How to run a program as a different user? Guru3 Linux - General 4 11-04-2003 12:35 PM


All times are GMT -5. The time now is 12:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration