Fedora Linux Support Community & Resources Center
  #1  
Old 21st May 2008, 03:59 PM
sionut Offline
Registered User
 
Join Date: May 2004
Location: Romania
Posts: 40
running a service as a normal user

Hi,
I need to run a service on my machine as a normal user (for licensing purposes, the user executing the commands will get to a license server, which will grant me the rights). Is there a way to do that ?

Currently I have the service set up with chkconfig - it starts and everything, but as root.

Thank you,
Ionut
Reply With Quote
  #2  
Old 21st May 2008, 04:38 PM
huguley Offline
Registered User
 
Join Date: Mar 2008
Posts: 12
Add an su to your init script to change the user the service runs as:

su -m username -c /sbin/service
Reply With Quote
  #3  
Old 21st May 2008, 10:53 PM
nucleo Offline
Registered User
 
Join Date: Jan 2008
Posts: 101
Hi

If you have script which use function daemon, try add to daemon option --user username.
Reply With Quote
  #4  
Old 23rd May 2008, 10:06 AM
sionut Offline
Registered User
 
Join Date: May 2004
Location: Romania
Posts: 40
Thank you guys, it works now.
Reply With Quote
Reply

Tags
normal, running, service, user

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
vpnc running as normal user itachi Servers & Networking 0 15th January 2007 09:00 PM
Running mldonkey as a service, service does not startup Dhana Servers & Networking 2 14th August 2006 04:43 AM
Running Mplayer as Normal User Gives Me Some Problems lovalixir Using Fedora 3 9th December 2005 09:47 PM
"service" command doesn't work under normal user krazibon3 Using Fedora 3 31st October 2004 01:29 AM


Current GMT-time: 23:08 (Friday, 24-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Bandar Labuan Travel Photos on Instagram - Barakpur Travel Photos on Instagram - Gaborone Travel Photos