Results 1 to 3 of 3

Thread: view another users history?

  1. #1
    Join Date
    Aug 2013
    Beans
    49

    view another users history?

    If I want to view the command line history of another user is there a way to do this?

  2. #2
    Join Date
    Aug 2009
    Location
    Makati City, Philippines
    Beans
    2,270
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: view another users history?

    You should be the root/admin or a member of the sudoers to be able to do this.
    After logging in to the server, change to the "anotheruser" account.
    Code:
    root@server:~#su anotheruser
    Then view his history.
    Code:
    history

  3. #3
    Join Date
    Sep 2011
    Location
    Behind you!
    Beans
    564
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: view another users history?

    Or if you have access to their home folder (such as doing a "sudo su" to gain root access), you can type something like the following:

    Code:
    vi /home/username/.bash_history
    The default permissions on this file are Read/Write for the user only.

    LHammonds

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •