Users

Understanding Yourself & Context

The moment you gain access to a system the first step to take is to completely userstand all details about the user that you are logged in as. Information could range from just the name, context, groups that you are part of and the acces privilege that you may possess.

This command displays the username the shell is running as,

whoami

The above command is available in both Windows and Linux.

Details about the User

Once you know the name of the user that the shell is running under, you can gather more info about that user.

id

Other Users

The next step is to identify other accounts that may be available in the same operating system.

The info in the passwd file will shed light on the other users, groups and permissions that are available in the OS.

cat /etc/passwd

Last updated