Advertisement
grahamperrin

sudo -u root sh on a root-locked FreeBSD

Feb 16th, 2021
119
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None
  1. $ whoami
  2. grahamperrin
  3. $ sudo -u root sh
  4. Password:
  5. # whoami
  6. root
  7. # env
  8. SUDO_COMMAND=/bin/sh
  9. LOGNAME=root
  10. LANG=en_US.UTF-8
  11. XAUTHORITY=/home/grahamperrin/.Xauthority
  12. MAIL=/var/mail/root
  13. PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin
  14. SUDO_GID=1001
  15. DISPLAY=unix:0.0
  16. PWD=/usr/home/grahamperrin
  17. TERM=xterm-256color
  18. HOME=/root
  19. USER=root
  20. TZ=America/New_York
  21. SHELL=/bin/csh
  22. COLORTERM=truecolor
  23. LANGUAGE=
  24. SUDO_USER=grahamperrin
  25. SUDO_UID=1001
  26. # exit
  27. $ sudo grep LOCKED /etc/master.passwd
  28. root:*LOCKED*:0:0::0:0:Charlie &:/root:/bin/csh
  29. $
  30.  
Advertisement
RAW Paste Data Copied
Advertisement