Thanks jijo. I already got it by this command su - joe help.sh
On Tuesday 20 November 2007 10:37, Federico Sevilla III wrote: > On Tue, 2007-11-20 at 10:13 +0800, alben_alteza wrote: > > How do I configure my linux box to run scripts at boot time in a user > > mode. > > > > Say, I want script help.sh to run at boot time but it will run like it > > was run in a user account shell say account joe. > > The first step is getting the script run on boot up. This depends on > your distribution. You could get luck trying the /etc/rc.boot > or /etc/rc.local scripts, or my preference is to create my own script > in /usr/local/bin or /usr/local/sbin and then create the necessary > symlinks in /etc/rc?.d. > > The next step is to get the commands within the script executed as a > regular user. To do so all you need is to use su, ie: > > su -c foobar - joe > > You can read up more at the su(1) manual page. > > Good luck. -- Alben Benavente Alteza Information Systems Security and Internet Services Administration Information Systems Department / Philippine Airlines _________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List [email protected] (#PLUG @ irc.free.net.ph) Read the Guidelines: http://linux.org.ph/lists Searchable Archives: http://archives.free.net.ph

