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
#cd /XXXX (Location of the file)
Thanks for all the help
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?
su - xxxx -c "cd /XXXX; ./file"
thankyou, I have to try this on monday. so i will post the result later. tanx again:D
its working thanku very much.