LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 09-19-2005, 06:56 PM   #1
mpgram
Member
 
Registered: Sep 2003
Location: Dallas TX
Distribution: Red Hat
Posts: 59

Rep: Reputation: 15
New Startup command


I am trying to figure out how to add a new startup command that would start on boot. But it needs to be started as a specific user. How and where would I set this up?

I tried using webmin, but webmin will not allow me to specify a specific user.
 
Old 09-19-2005, 07:07 PM   #2
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
not sure this will work but try this:
Code:
su - <username> -c ' <command>'
 
Old 09-19-2005, 07:30 PM   #3
mpgram
Member
 
Registered: Sep 2003
Location: Dallas TX
Distribution: Red Hat
Posts: 59

Original Poster
Rep: Reputation: 15
Yup. That does it. Thanks!!
 
  


Reply



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
Command to startup network? BajaNick Linux - General 5 07-12-2004 06:37 PM
startup command skull98 Linux - Newbie 2 04-14-2004 09:37 AM
Running a command at Startup TuxTimo Linux - Newbie 6 02-27-2004 05:11 PM
Startup Services Command loadedmind Debian 3 11-11-2003 03:32 PM
how can i get into command prompt at startup ? suede666 Linux - Newbie 2 05-25-2003 09:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:37 PM.

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
Open Source Consulting | Domain Registration