pair of usernames and LVE ids

Collapse
X
Collapse
+ More Options
Posts
 
  • Time
  • Show
Clear All
new posts
  • espeacke
    Junior Member
    • Mar 2021
    • 3

    #1

    pair of usernames and LVE ids

    I can fetch a list of all LVEs on a server with cat /proc/lve/list
    However I need to get the resource usages via their username, So how can I get the relation between ids and usernames?
  • iseletsk
    Senior Member
    • Dec 2017
    • 1199

    #2
    lve id is the same as user id.
    So, for example, if LVE id = 1001, you can figure out password by doing something like this:

    grep x:1001: /etc/passwd|cut -d: -f1

    Comment

    Working...