Unix Technical Forum

Boot time script under user ID

This is a discussion on Boot time script under user ID within the Linux Operating System forums, part of the Unix Operating Systems category; --> I am trying to start a set of processes on behalf of a non root user at boot time. ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-18-2008, 08:04 AM
Tom Rauschenbach
 
Posts: n/a
Default Boot time script under user ID



I am trying to start a set of processes on behalf of a non root user at
boot time. I want the scripts to have the PATH, home directory and
permisions of this user, even though this user has not logged in (the
machine is still booting, running boot.local, I think it's not even at
a multi user runlevel. Further, I's like this to be portable to non-Linux
*nixes such as Solaris 10. Is this possible ? Any help is interesting.
Thanks


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-18-2008, 08:04 AM
Michael Heiming
 
Posts: n/a
Default Re: Boot time script under user ID

In comp.os.linux.setup Tom Rauschenbach <tomsusenet@tomsdomain.org>:


> I am trying to start a set of processes on behalf of a non root user at
> boot time. I want the scripts to have the PATH, home directory and
> permisions of this user, even though this user has not logged in (the
> machine is still booting, running boot.local, I think it's not even at
> a multi user runlevel. Further, I's like this to be portable to non-Linux
> *nixes such as Solaris 10. Is this possible ? Any help is interesting.


Yep and it should work on any unix:

su -c "command/script" username

Hint:
man su

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 23: improperly oriented keyboard
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:16 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com