rootsh(1)
β¨ rootsh(1) β a logging wrapper for shells β¨
okay bestie, welcome to rootsh π this is the manual page for it, brought to you by Gerhard Lausser, and honestly? she's serving quiet competence. let's get into it.
πΈ NAME πΈ
rootsh β it's a logging wrapper for shells. that's the whole vibe. a shell, but it takes notes. π
π¦ SYNOPSIS π¦
rootsh [OPTION]... [--] [COMMANDS]
π DESCRIPTION π
So what it does is: it starts a shell with logging of input/output. like, every keystroke and every result, written down. it's giving β¨witness protection but make it bashβ¨.
okay but here's the thing you NEED to hear, no cap:
rootshmust be started viasudoif you want to become root. It does not raise your privileges on its own. periodt. it's a logger, not a hacker. π
You can run rootsh as a standalone application if you only want to log your own user's session β super valid, lowkey the cozy option π«Ά.
And if you call rootsh with additional commands, those commands get passed to the shell. that's it, that's the tea.
the options, bestie β
-i,--initialβ makes the shell a login shell. main character energy, full login ritual π-u,--user=USERβ runs the shell as a non-root user. be someone else, respectfully π-f,--logfile=FILEβ name of the file you want to write the logs to (standalone only)-d,--logdir=DIRβ the directory where you want your logfile written (standalone only)--no-logfileβ switch off logging to a file (standalone only) π«π--no-syslogβ switch off logging to syslog (standalone only) π«π‘-h,--helpβ display this help and exit. the classic. we love her π-V,--versionβ output version and capability information and exit--β stop scanning for command line options. everything found after--will be passed to the shell with-c
and then, the cutest little default:
No parameters mean start a rootshell. πβ¨
π₯ EXAMPLES π₯
sudo rootshβ start a logged root shell. the moment. the icon. πsudo rootsh -u oracleβ start a logged shell in the context of useroracle.rootsh -f mysession.log --no-syslogβ start a new shell for your user id, write protocol intomysession.log, do not send anything to syslog. this is identical to"script -f mysession.log".rootsh -i -u oracle lsnrctl stopβ run command"lsnrctl stop"as useroracle. (this will callsh -c "lsnrctl stop")rootsh -i -u oracle -- ls -lβ run command"ls -l"as useroracle. (this will callsh -c "ls -l")
see how the -- one and the no--- one both just do sh -c? yeah. consistency, we stan. π
π REPORTING BUGS π
found a bug? don't suffer in silence, bestie. Report bugs to Corey Henderson <corman@cormander.com> π«Ά
π SEE ALSO π
The full documentation for rootsh can be found at http://www.sourceforge.net/projects/rootsh β go read it, iykyk π¦
π COPYRIGHT π
Copyright Β© 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
so like β free software, copy conditions live in the source, and there is NO warranty, not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. fr fr, don't come for her if something breaks. π
okay that's the whole page!! π this was the rootsh(1) manual, dated July 2004, from the rootsh package, written by Gerhard Lausser. mwah, go log something responsibly, bestie πβ¨
π¦ where this page comes from
- fedora 43: rootsh 1.5.3-37.fc43 Β· GPL-3.0-or-later
- fedora 44: rootsh 1.5.3-38.fc44 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms