It's been so long I cant remember how to do it.
Thanks
Chris
I can't believe nobody has any ideas???
Chris
On Mon, 2007-03-19 at 15:10 +0000, Chris Glover wrote:
It's been so long I cant remember how to do it.
Thanks
Chris
You could use something like:
su mark -c /bin/bash
-Mark
On 21 Mar 2007, at 00:40, Chris Glover wrote:
I can't believe nobody has any ideas???
Chris
On Mon, 2007-03-19 at 15:10 +0000, Chris Glover wrote:
It's been so long I cant remember how to do it.
Thanks
Chris
-- Chris
E Mail: chris@glovercc.plus.com SIP: 84411389@voiptalk.org IAXTEL: 17003366726
main@lists.alug.org.uk http://www.alug.org.uk/ http://lists.alug.org.uk/mailman/listinfo/main Unsubscribe? See message headers or the web site above!
----------------------------------------------------------- This message may contain confidential and/or privileged information. This information is intended to be read only by the individual or entity to whom it is addressed. If you are not the intended recipient, you are on notice that any review, disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error, please notify the sender immediately and delete or destroy any copy of this message.
On Mon, Mar 19, 2007 at 03:10:23PM +0000, Chris Glover wrote:
It's been so long I cant remember how to do it.
Well, it depends on how SuSE bothers to start daemons, it depends on the daemon (some will fork themselves afterwards anyways, apache and exim for example), etc.
It might be that it's as simple as starting the daemon using su as has been pointed out further on, or it might be that it uses something akin to debian's start-stop-daemon. I haven't got a SuSE box "handy" to check, home has several debian boxes, work has several debian boxes and the odd CentOS box and our customers are generally RHEL.
It might not be that no one knows - it might just be that no one can check!
Cheers,
On Wed, Mar 21, 2007 at 08:28:04AM +0000, Brett Parker wrote:
On Mon, Mar 19, 2007 at 03:10:23PM +0000, Chris Glover wrote:
It's been so long I cant remember how to do it.
Well, it depends on how SuSE bothers to start daemons, it depends on the daemon (some will fork themselves afterwards anyways, apache and exim for example), etc.
It might be that it's as simple as starting the daemon using su as has been pointed out further on, or it might be that it uses something akin to debian's start-stop-daemon. I haven't got a SuSE box "handy" to check, home has several debian boxes, work has several debian boxes and the odd CentOS box and our customers are generally RHEL.
Depending on circumstances there's always the @reboot option in the user's crontab as well.
J.
You might be able to chown the file and flip the sticky bit. It might be in the config file for the program. It might not be able to do it if the port(s) required are <1024 as root "owns" these.
Not much help, but another reply ;)
Regards Keith
-----Original Message----- From: main-bounces@lists.alug.org.uk [mailto:main-bounces@lists.alug.org.uk] On Behalf Of Brett Parker Sent: 21 March 2007 08:28 To: main@lists.alug.org.uk Subject: Re: [ALUG] How do I make a startup script run a program as adifferent user in SuSE Enterprise 10?
On Mon, Mar 19, 2007 at 03:10:23PM +0000, Chris Glover wrote:
It's been so long I cant remember how to do it.
Well, it depends on how SuSE bothers to start daemons, it depends on the daemon (some will fork themselves afterwards anyways, apache and exim for example), etc.
It might be that it's as simple as starting the daemon using su as has been pointed out further on, or it might be that it uses something akin to debian's start-stop-daemon. I haven't got a SuSE box "handy" to check, home has several debian boxes, work has several debian boxes and the odd CentOS box and our customers are generally RHEL.
It might not be that no one knows - it might just be that no one can check!
Cheers, -- Brett Parker
_______________________________________________ main@lists.alug.org.uk http://www.alug.org.uk/ http://lists.alug.org.uk/mailman/listinfo/main Unsubscribe? See message headers or the web site above!