linuxÔõôÉó²é½¨ÉèµÄÓû§
ÔÚ linux ϵͳÖУ¬Éó²é½¨ÉèµÄÓû§¿Éͨ¹ýÒÔÏ°취£º·¿ªÖնˣ¬Í¨¹ý cat /etc/passwd ÏÂÁîÉó²é /etc/passwd ÎļþÄÚÈÝ¡£ÔÚÊä³öÖвéÕÒÌض¨Óû§£¬Æä uid ÌåÏÖ½¨ÉèÈÕÆÚ¡£¿ÉʹÓà last Óû§Ãû ÏÂÁîÉó²éÓû§×î½üµÇ¼Ô˶¯£¬ÆäÖаüÀ¨Æ佨ÉèÈÕÆÚºÍʱ¼ä¡£
ÔõÑùÉó²é Linux Öн¨ÉèµÄÓû§
ÔÚ Linux ϵͳÖУ¬Éó²é½¨ÉèµÄÓû§¿ÉÒÔͨ¹ýÒÔÏ°취£º
1. ·¿ªÖÕ¶Ë
°´ Ctrl + Alt + T »òÔÚÓ¦ÓóÌÐò²Ëµ¥ÖÐËÑË÷¡°Öնˡ±ÒÔ·¿ªÖն˴°¿Ú¡£
2. ʹÓá°cat¡±ÏÂÁî
ÔÚÖÕ¶ËÖÐÊäÈëÒÔÏÂÏÂÁ
cat /etc/passwd
µÇ¼ºó¸´ÖÆ
Õ⽫ÏÔʾ/etc/passwdÎļþµÄÄÚÈÝ£¬ÆäÖаüÀ¨ÓйØËùÓÐÓû§µÄÐÅÏ¢¡£
3. ²éÕÒÌض¨Óû§
ÔÚ/etc/passwdÎļþÊä³öÖУ¬²éÕÒÒª²éÕÒµÄÓû§¡£Óû§ÌõĿͨ³£°´ÒÔÏÂÃûÌÃÏÔʾ£º
Óû§Ãû:ÃÜÂë:Óû§ ID:×é ID:×¢ÊÍ:Ö÷Ŀ¼:shell
µÇ¼ºó¸´ÖÆ
4. Éó²é½¨ÉèÈÕÆÚ
Óû§ ID£¨UID£©ºóÃæµÄÊý×ÖÌåÏÖÓû§±»½¨ÉèµÄÈÕÆÚ¡£ÀýÈ磬UID Ϊ 1000 µÄÓû§ÊÇÔÚϵͳ½¨ÉèºóÒ»Ì콨ÉèµÄ¡£
5. ʹÓá°last¡±ÏÂÁî
ÁíÒ»ÖÖÉó²éÓû§½¨ÉèÈÕÆÚµÄÒªÁìÊÇʹÓá°last¡±ÏÂÁ
last ̞
µÇ¼ºó¸´ÖÆ
Õ⽫ÏÔʾ¸ÃÓû§µÄ×î½üµÇ¼Ô˶¯£¬ÆäÖаüÀ¨ÆäÕÊ»§½¨ÉèÈÕÆÚºÍʱ¼ä¡£
ÒÔÉϾÍÊÇlinuxÔõôÉó²é½¨ÉèµÄÓû§µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡