FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 01-11-2010, 06:23 PM
pch0317
 
Default Autostart service when debian boot up

Hi List

I want to start service "service1" when debian boot up, but with "user1"
rights (not root rights).
Is this possible?
If yes, how I can do that.

Thanks


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 01-11-2010, 06:43 PM
"Boyd Stephen Smith Jr."
 
Default Autostart service when debian boot up

On Monday 11 January 2010 13:23:57 pch0317 wrote:
> I want to start service "service1" when debian boot up, but with "user1"
> rights (not root rights).
> Is this possible?

Yes, some services do it automatically. Some services have a setting under
/etc/defaults for what user to run as. Some services use their own
configuration under /etc to control this.

It is rather service specific, assuming you want the service to actually work.
Since it may need some permissions during start-up that it can drop later, or
it may need to leave a stub process behind to handle a few actions that
require extra permissions.

> If yes, how I can do that.

It depends on the service. In general, init scripts are run as a privledges
process and they can either use su (with the -c option) or sudo (the first is
generally preferred in this case) to switch to another use and execute
commands as that user. If su or sudo are not ideal for some reason (needing
early permissions), the daemon/service/binary itself would be started with
privileges that it can drop with setuid/setgid calls.

If you have a particular service in mind, please reply with that information.
It's possible someone else on the list has experience with that service and
can give more specific information.
--
Boyd Stephen Smith Jr. ,= ,-_-. =.
bss@iguanasuicide.net ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
http://iguanasuicide.net/ \_/
 
Old 01-11-2010, 07:55 PM
pch0317
 
Default Autostart service when debian boot up

Boyd Stephen Smith Jr. wrote:

On Monday 11 January 2010 13:23:57 pch0317 wrote:

I want to start service "service1" when debian boot up, but with "user1"
rights (not root rights).
Is this possible?


Yes, some services do it automatically. Some services have a setting under
/etc/defaults for what user to run as. Some services use their own
configuration under /etc to control this.


It is rather service specific, assuming you want the service to actually work.
Since it may need some permissions during start-up that it can drop later, or
it may need to leave a stub process behind to handle a few actions that
require extra permissions.



If yes, how I can do that.


It depends on the service. In general, init scripts are run as a privledges
process and they can either use su (with the -c option) or sudo (the first is
generally preferred in this case) to switch to another use and execute
commands as that user. If su or sudo are not ideal for some reason (needing
early permissions), the daemon/service/binary itself would be started with
privileges that it can drop with setuid/setgid calls.


If you have a particular service in mind, please reply with that information.
It's possible someone else on the list has experience with that service and
can give more specific information.

I think about jboss and jboss user.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 06:51 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org