Skip to main content

How to find/list data on all server users

Comments

10 comments

  • nixuser
    /var/cpanel/accounting.log This file contains records of cPanel account actions, such as creation and deletion. The mentioned user is not listed in WHM > Account Information > List Accounts?
    0
  • martin MHC
    Thank you. I will take a look there. The account "chrony" does not exist in the "Accounting.log" file. This log file only lists Account holders which is a subset of users!
    The mentioned user is not listed in WHM > Account Information > List Accounts?

    No, the user is not an account holder.
    0
  • nixuser
    Does the user exists on /etc/passwd file? Check it with the command: grep chony /etc/passwd
    0
  • martin MHC
    Does the user exists on /etc/passwd file? Check it with the command: grep chony /etc/passwd

    Sorry I had a misspelling of the username. It is chrony. I manually explored the file and found: chrony:x:997:995::/var/lib/chrony:/sbin/nologin
    0
  • martin MHC
    No issue- chrony is a RedHat application for controlling the clock value on the server. Why this entity was taking up such a large amount of CPU is odd, however. Reference: news.fastdot.com/how-to-install-and-use-chrony-in-linux/
    0
  • nixuser
    Yes, it's the NTP daemon.
    0
  • martin MHC
    Is it usual for this daemon to spike resources usage?
    0
  • cPanelLauren
    As noted previously chrony is the NTP software for red hat (as already noted) 18.3. Using chrony - Red Hat Customer Portal and shouldn't be using excessive resources, it wouldn't be completely abnormal for a momentary spike if it was reloading or something of that nature but would definitely be unusual to be substantially using a large number.
    a) Is there a method within WHM to list ALL users

    The best way to list any and all cPanel specific users would be to go to list accounts - this won't list system users though
    b) How can I find out who this user is; usership creation date or other useful meta-data?

    for cPanel users the accounting log as noted previously should provide these answers.
    0
  • martin MHC
    Hi @cPanelLauren thanks for your response. To clarify, while I have found the user in this instance, I was looking in a more macro- level as to how to view all server users that exist? I use List accounts extensively and recognise account holders and some other users when their tags appear on things, such as the resource usage monitor. [quote]for cPanel users the accounting log as noted previously should provide these answers.
    This only records users with accounts; and these can be found on the Account List as you reference above. * So far the best method to view all users on a server seems to be as given by nixuser, to view /etc/passwd
    0
  • cPanelLauren
    Yes, I agree, if you need to see all users on the system /etc/passwd is indeed your best bet.
    0

Please sign in to leave a comment.