重庆思庄Oracle、Redhat认证学习论坛

标题: AIX查看用户级登陆信息 [打印本页]

作者: 5dm    时间: 2012-11-12 15:49
标题: AIX查看用户级登陆信息

# who
root        pts/0       Nov 12 00:02     (192.168.2.45) 
# man who

who Command

Purpose

       Identifies the users currently logged in.

Syntax

       who [ -a |  -b -d -i -l -m -p -q -r -s -t -u  -w -A -H -T -X ] [ File ]

       who am { i | I }
# who am i
root        pts/0       Nov 12 00:02     (192.168.2.45) 
# finger
Login                               Name               TTY Idle    When    Site Info
root

 

# id
uid=0(root) gid=0(system) groups=2(bin),3(sys),7(security),8(cron),10(audit),11(lp)

 

# su - oracle
3004-614 Unable to change directory to "/home/oracle".
        You are in "/home/guest" instead.
$ id
uid=203(oracle) gid=204(dba) groups=1(staff)

由此看出AIX普通用户ID不是从500开始的,这点与Linux不同。

 






欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2