Sudo from .profile

From: Kevin Davidson (kdavidson_at_transaction-one.com)
Date: 05/29/03

  • Next message: Hardy, Andy: "case statement limitations ?"
    To: <sunmanagers@sunmanagers.org>
    Date: Thu, 29 May 2003 11:53:01 +0100
    
    

    Gurus,

    I wish to run a shell script from a user's .profile file via sudo. When this
    script is run from the command line, the script executes with no problems,
    and the process started will continue to run when the user logs out.
    However, if I run the script from within the .profile, the process started
    by the script will exit when the user logs out. I have tried to use a nohup
    command but this does not work.

    What I wish to achieve is for the user to log in and have the process start
    automatically, and continue to run after log out.

    Is this possible?

    I'm using Solaris 8 and sudo 1.6.6 downloaded from Sunfreeware.com.

    Many thanks, will summarize.

    Kev

    --
    Kevin Davidson  |       UNIX Systems Administrator
    Transaction One |       www.transaction-one.com
    020 8358 9126   |       kdavidson@transaction-one.com
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers
    

  • Next message: Hardy, Andy: "case statement limitations ?"

    Relevant Pages

    • Re: Weird script issues
      ... I also have the script as a logon script, so each time a user logs in it will ... I even get the error when a user logs in, so .UserName should not be ... It would fail at the line aUserName = Split ...
      (microsoft.public.scripting.vbscript)
    • Re: Jumpstart reboot NFS domain error
      ... >> command, etc. display in GMT. ... The TZ variable got set explicitly to TZ by the .profile file ... that was installed by a finish script. ...
      (comp.unix.solaris)
    • SUMMARY: Sudo from .profile
      ... I wish to run a shell script from a user's .profile file via sudo. ... script is run from the command line, the script executes with no problems, ... and the process started will continue to run when the user logs out. ...
      (SunManagers)
    • RE: INSTALLING PRINTER
      ... Here is the command: ... Rob R. ... > script., when the user logs on they get a pop-up message box. ...
      (microsoft.public.windows.server.scripting)
    • Re: Ideas for second account and logging the actions? - Interestin
      ... user logs on, it can only write the event in event viewer. ... I have prepaired a small script that uses CDO ... admin for the boss would be OK? ... He does not want to use this account often. ...
      (microsoft.public.windows.server.active_directory)