Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

Rep: Reputation: 0
Run program as user


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



Last edited by falcon; 11-07-2004 at 12:10 PM.
Old 11-07-2004, 12:17 PM   #2
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


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

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