Package hudson.os

Class SU

  • public abstract class SU
    extends Object
    Executes Callable as the super user, by forking a new process and executing the closure in there if necessary.

    A best effort is made to execute the closure as root, but we may still end up executing the closure in the non-root privilege, so the closure should expect that and handle it gracefully.

    Still very much experimental. Subject to change. Don't use it.

    Kohsuke Kawaguchi