LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 11-24-2003, 11:40 PM   #1
otisthegbs
Member
 
Registered: May 2003
Location: Vancouver
Distribution: RH9
Posts: 100

Rep: Reputation: 15
Running apps as alternate users


Hi everyone!

I want to run a hotline server on my RH9 box in background mode which is /hxd/bin/hxd& but i want to run this app on boot as user 'hotline' how do i do this?
 
Old 11-25-2003, 04:12 AM   #2
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
First make sure you have an app called "sudo". If not, get it and set it up. Then make a script in a convenient place (like /usr/local/bin) and put in it:
Code:
#!/bin/sh

sudo su hotline
/hxd/bin/hxd&
exit
Then save it and make sure it's executable. Then just run the script.
 
  


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
installing apps for all users cerebellum Linux - Newbie 10 05-31-2005 05:05 PM
Running Downloaded Apps PulsarSL *BSD 4 04-30-2005 02:32 PM
how/where to install apps for all users slug420 Linux - Newbie 4 01-17-2005 04:47 PM
Running apps automaticaly Boudewijn Linux - Software 1 03-11-2004 05:47 PM
Making apps available for other users. Dead_Goon Slackware 2 03-08-2003 01:18 PM


All times are GMT -5. The time now is 05:11 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