Contents
How do I track user activity in Linux?
How to assess user activity in Linux
- finger. One handy command for getting a user profile is finger. …
- w. The w command also provides a nicely formatted list of currently active users including idle time and what command they most recently ran. …
- id. …
- auth. …
- last. …
- du. …
- ps and history. …
- counting logins.
24 июн. 2020 г.
What is the command to log a user in Linux?
Here’s how to use it in a few easy steps:
- Install sudosh on your system; this is a shell wrapper around the sudo command that makes a user sudo themselves (not root ) and can be used as a system login shell.
- Enable sudo logging. …
- Add this command to /etc/shells to permit logins using it: /usr/bin/sudosh.