Getting user ID

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • j.farncomb
    Junior Member
    Forum Explorer
    • Mar 2021
    • 18

    #1

    Getting user ID

    Hey there,

    Basically Im trying to see the current settings for a user account in cloud linux through the LVE manager in WHM.

    When I go to home, I can see the current users showing up and their IDs however I have not been able to find out how I can find the ID for a random user.

    Basically I want to be able to see what limits a user is currently on - is there a way to do this? I know when you click on an LVE ID in the list on home, you can get Modify settings for LVE 654 and it will show you what settings it already has applied such as cpu/ram.

    When looking the account in history however, as it is now showing 100% for the cpu I can actually tell what the current limits are set to?

    So the short version is, how do I see the cpu limit of a current cpanel account.

    Thanks.
  • cloudlinux.com.forums
    Junior Member
    • Mar 2021
    • 4

    #2
    The LVE ID is the same as the users system UID. This can be obtained via CLI/SSH using the following example command, replacing "username" with the username of the cPanel account.

    Code:
    id username
    
    id -u username
    Here is a command to show the limits for a specific username:

    Code:
    lvectl limits $(id -u username)
    Via WHM, you may view LVE limits for a specific account by entering in the accounts username into the appropriate form field, such as in the History view.

    Comment

    • j.farncomb
      Junior Member
      Forum Explorer
      • Mar 2021
      • 18

      #3
      Thanks,

      lvectl limits $(id -u username) does exactly what I need!

      I can see the CPU in the History anymore, because for the limit it shows 100 - as was discovered in my other thread here:

      Comment

      Working...