Find the answer to your Linux question:
Results 1 to 2 of 2
I should remember this, but have forgotten what user executes the startup scripts. Can I specify a user that should be executing a particular script? Thanks...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! adamdaughterson's Avatar
    Join Date
    Mar 2003
    Location
    Denver, Colorado, USA
    Posts
    78

    What user execs rc.d scripts?


    I should remember this, but have forgotten what user executes the startup scripts. Can I specify a user that should be executing a particular script?

    Thanks

  2. #2
    Just Joined!
    Join Date
    Nov 2004
    Location
    WGS84 phi = 45 48 31.7 lambda = 15 57 49.0
    Posts
    65
    basicly root user runs all the scripts in /etc/rc.d, but if you want to run a script as someone else you can try the following
    Code:
    su username -c 'command or script name'
    hope it helps

Posting Permissions

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