"su" in init script

From: curt (curt_at_cola.iges.org)
Date: 09/13/04

  • Next message: Dr. Otto Titze: "SUMMARY: Password File backup copy"
    Date: Mon, 13 Sep 2004 15:37:27 -0400
    To: tru64-unix-managers@ornl.gov
    
    

    I need to start up a job at system startup
    under a userid other than root. I'm running
    tru64 v5.1b (pk4?) on an ES45. I created
    a little script called /sbin/rc3.d/S96try:

    #/bin/sh
    su -f curt -c /homes/cola/curt/fort/a.out &

    If I run this script in multi-user mode, or
    from crontab it works just fine: it runs
    the little fortran program a.out under the userid
    "curt" - which is what I want. But when I
    start the system up the script doesn't "launch".

    Any suggestions?

    Sincerely,
    Curt Steinmetz


  • Next message: Dr. Otto Titze: "SUMMARY: Password File backup copy"

    Relevant Pages

    • SUMMARY: "su" in init script
      ... There was a typo in my script - ... I need to start up a job at system startup ... under a userid other than root. ... "curt" - which is what I want. ...
      (Tru64-UNIX-Managers)
    • Re: notice and warning
      ... You expect some piece of data from a post in your script, eg: userid. ... never make mistakes, but I doubt that. ... post/get/cookie 'rule' and he'll kill your how dataset of users ...
      (comp.lang.php)
    • Re: notice and warning
      ... You expect some piece of data from a post in your script, eg: userid. ... prefer $_REQUEST over $_POST. ... in this instance, it scales more 'easily'. ...
      (comp.lang.php)
    • Re: notice and warning
      ... You expect some piece of data from a post in your script, ... So you use $_REQUEST["userid"] which works perfectly fine as long as you get the userid in via POST. ... Now you find yourself in the situation that when you call this script for any reason without the POST info, you will delete yourself if you prefer $_REQUEST over $_POST. ... They only have to do good clean programming, which is of course the first step to secure applications. ...
      (comp.lang.php)
    • Re: simple login script issue
      ... This script is called auth.php as in included in all of the pages I ... Example SELECT * FROM messages WHERE userid = $userid ORDER by ... I only allow a VERY restrictive set of characters for the username ...
      (alt.php)