Find the answer to your Linux question:
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.
  1. #1
    Just 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

  2. #2
    Just Joined!
    Join Date
    Mar 2009
    Posts
    6
    OS SuSE Linux 10

  3. #3
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,190
    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?

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Newbie
    Join Date
    Mar 2009
    Posts
    228
    Code:
    su - xxxx -c "cd /XXXX; ./file"

  6. #5
    Just Joined!
    Join Date
    Mar 2009
    Posts
    6
    thankyou, I have to try this on monday. so i will post the result later. tanx again

  7. #6
    Just Joined!
    Join Date
    Mar 2009
    Posts
    6
    its working thanku very much.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •