Difference between revisions of "CLI - User and Session"

Line 2: Line 2:
 
The user in the CLI means a user account that can directly connect to the imRAD devices using a console or ssh.
 
The user in the CLI means a user account that can directly connect to the imRAD devices using a console or ssh.
 
=== Verifying User and Login Sessions ===
 
=== Verifying User and Login Sessions ===
 +
You can verify all user list by the <code>show user</code> command. The "logged-in" indicates that someone is logged in or not.
 +
<pre>
 +
LYSH@MyHostName# show user
 +
user        locked  logged-in    latest
 +
ladbin      True    True        Wed Apr 28 17:55:44 +0900 2021
 +
</pre>
 +
 +
If you enter the <code>show session</code> command, you can see all login sessions.
 +
<pre>
 +
LYSH@MyHostName# show session
 +
18:58:08 up 86 days, 10:51,  4 users,  load average: 0.09, 0.14, 0.15
 +
USER            TTY      FROM            LOGIN@  IDLE  JCPU  PCPU WHAT
 +
ladmin          pts/1    192.168.0.11    Mon10    0.00s  2.56s  0.25s /usr/bin/python3 /usr/sbin/lysh
 +
ladmin          pts/2    192.168.0.11    Mon10    1:02m  0.53s  0.41s sshd: ladmin [priv]
 +
</pre>
  
  
 
=== Configuring User ===
 
=== Configuring User ===

Revision as of 18:59, 28 April 2021

The user in the CLI means a user account that can directly connect to the imRAD devices using a console or ssh.

Verifying User and Login Sessions

You can verify all user list by the show user command. The "logged-in" indicates that someone is logged in or not.

LYSH@MyHostName# show user
user         locked   logged-in    latest
ladbin       True     True         Wed Apr 28 17:55:44 +0900 2021

If you enter the show session command, you can see all login sessions.

LYSH@MyHostName# show session
 18:58:08 up 86 days, 10:51,  4 users,  load average: 0.09, 0.14, 0.15
USER             TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
ladmin           pts/1    192.168.0.11     Mon10    0.00s  2.56s  0.25s /usr/bin/python3 /usr/sbin/lysh
ladmin           pts/2    192.168.0.11     Mon10    1:02m  0.53s  0.41s sshd: ladmin [priv]


Configuring User