linux用户管理-查看用户属性
发布于:2014-8-12 13:35 作者:admin 浏览:3483 分类:Linux1. ID方式查看
[root@WEB66 etc]# id root uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) [root@WEB66 etc]# id loguser uid=505(loguser) gid=505(log) groups=505(log)
2. finger方式查看
[root@WEB66 etc]# finger root Login: root Name: root Directory: /root Shell: /bin/bash On since Wed Feb 12 09:36 (CST) on tty1 from :0 21 hours 6 minutes idle On since Wed Feb 12 09:40 (CST) on pts/0 from :0.0 5 hours 16 minutes idle On since Thu Feb 13 01:19 (CST) on pts/1 from 192.168.52.53 On since Thu Feb 13 01:22 (CST) on pts/2 from 192.168.52.53 3 hours 16 minutes idle Mail last read Thu Jan 2 14:20 2014 (CST) No Plan. [root@WEB66 etc]# finger loguser Login: loguser Name: 我是一个LOG管理员 Directory: /var/loguser Shell: /sbin/nologin Never logged in. No mail. No Plan.