Results 1 to 6 of 6
Hello
Iam a newbie in Linux, Pardon my stupidity. I have situation where I need to run a file during boot. Problem is i cant run it as root user ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-13-2009 #1Just Joined!
- Join Date
- Mar 2009
- Posts
- 6
Need Script
Hello

Iam a newbie in Linux, Pardon my stupidity. I have situation where I need to run a file during boot. Problem is i cant run it as root user . Now i need a script to run this file as normal user. Please help me
i have tried
#su xxxx
#cd /XXXX (Location of the file)
./file (executable)
Thanks for all the help
- 03-13-2009 #2Just Joined!
- Join Date
- Mar 2009
- Posts
- 6
OS SuSE Linux 10
- 03-13-2009 #3Linux Guru
- Join Date
- Oct 2007
- Location
- Tucson AZ
- Posts
- 2,563
I'm not a programmer so I doubt I'll be able to help you with this but, I think you will need to provide a little more detailed info such as:
What do you need the script to do? do you need help writing the script or in where to put it to be run at boot?
- 03-13-2009 #4Linux Newbie
- Join Date
- Mar 2009
- Posts
- 228
Code:su - xxxx -c "cd /XXXX; ./file"
- 03-13-2009 #5Just Joined!
- Join Date
- Mar 2009
- Posts
- 6
thankyou, I have to try this on monday. so i will post the result later. tanx again
- 03-16-2009 #6Just Joined!
- Join Date
- Mar 2009
- Posts
- 6
its working thanku very much.


Reply With Quote
