rootsh(1)

πŸ“¦ version 1.5.3, in fedora 43, fedora 44

✨ 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:

rootsh must be started via sudo if 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 user oracle.
  • rootsh -f mysession.log --no-syslog β€” start a new shell for your user id, write protocol into mysession.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 user oracle. (this will call sh -c "lsnrctl stop")
  • rootsh -i -u oracle -- ls -l β€” run command "ls -l" as user oracle. (this will call sh -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 Β© 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