Linux
  • Linux
  • Bash
  • Debian
  • Ubuntu
  • Shell
  • CentOS
  • SSH
☰

如何判斷使用者是否以 root 身分登入 Mac OS X?

tag-icon 2024-6-21 • tag-icon mac-osx mac sudo root
如何判斷使用者是否以 root 身分登入 Mac OS X?

如果我 sudo /bin/bash,who 和 w 命令不會在 Mac OS X 上顯示 root 登入。

答案1

/var/log 目錄中有一個名為 auth.log 的日誌,您可以在其中查看是否有人 su 或 sudo 到 root。

Dec 23 00:32:43 hostname su: user to root on /dev/pts/3
THE END
Mod_rewrite 遮罩 URL Mod_rewrite 遮罩 URL
如何判斷我的硬碟是否具有電池支援寫入快取? 如何判斷我的硬碟是否具有電池支援寫入快取?

相關內容

熱門問答

熱門問答

  • mac-osx
  • mac
  • sudo
  • root
  • apache-2.2
  • mod-rewrite
  • rewrite
  • storage
  • hard-drive
  • linux
  • disaster-recovery
  • battery

© 2024 rvso.com 版權所有. 網站地圖