×ðÁú¿­Ê±¹ÙÍøµÇ¼

ÖÎÀíLinuxÓû§£ºÁгöËùÓÐÓû§

LinuxÓû§ÖÎÀí£ºÉó²éËùÓÐÓû§£¬ÐèÒªÏêϸ´úÂëʾÀý

ÔÚLinuxϵͳÖУ¬Óû§ÖÎÀíÊÇϵͳÖÎÀíµÄÖ÷ÒªÒ»²¿·Ö¡£ÏàʶºÍÉó²éËùÓÐÓû§ÊDZز»¿ÉÉٵIJÙ×÷Ö®Ò»£¬±¾ÎĽ«ÏÈÈÝÔõÑùÉó²éËùÓÐÓû§µÄÒªÁì²¢ÌṩÏêϸµÄ´úÂëʾÀý¡£

ÒªÉó²éËùÓÐÓû§£¬¿ÉÒÔʹÓÃÒÔϼ¸ÖÖÒªÁ죺

ʹÓÃcatÏÂÁîÉó²é/etc/passwdÎļþ

ÔÚLinuxϵͳÖУ¬ËùÓÐÓû§µÄÐÅÏ¢¶¼ÉúÑÄÔÚ/etc/passwdÎļþÖС£ÎÒÃÇ¿ÉÒÔʹÓÃcatÏÂÁîÀ´Éó²é¸ÃÎļþµÄÄÚÈÝ£¬´Ó¶ø»ñÈ¡ËùÓÐÓû§µÄÐÅÏ¢¡£

cat /etc/passwd

µÇ¼ºó¸´ÖÆ

Ö´ÐÐÉÏÊöÏÂÁîºó£¬ÏµÍ³»áÁгöËùÓÐÓû§µÄÐÅÏ¢£¬Ã¿¸öÓû§Õ¼ÓÃÒ»ÐУ¬°üÀ¨Óû§Ãû³Æ¡¢Óû§ID¡¢×éID¡¢Óû§ÐÅÏ¢¡¢Ö÷Ŀ¼ºÍShellµÈ¡£Í¨¹ý¸ÃÒªÁì¿ÉÒÔÉó²éϵͳÖÐËùÓÐÓû§µÄ»ù±¾ÐÅÏ¢¡£

ʹÓÃcutÏÂÁî¹ýÂËÌض¨×Ö¶Î

ÈôÊÇÖ»ÏëÁгöËùÓÐÓû§Ãû¶ø²»°üÀ¨ÆäËûÐÅÏ¢£¬¿ÉÒÔÍŽáʹÓÃcutÏÂÁîÀ´¹ýÂËÌض¨×ֶΡ£

cat /etc/passwd | cut -d: -f1

µÇ¼ºó¸´ÖÆ

ÉÏÊöÏÂÁîÖУ¬-dÑ¡ÏîÖ¸¶¨ÁË×ֶεÄÍÑÀë·ûΪðºÅ¡°:¡±£¬-fÑ¡ÏîÖ¸¶¨ÁËÒªÌáÈ¡µÄ×Ö¶ÎΪµÚÒ»¸ö×ֶΣ¬¼´Óû§Ãû¡£Ö´ÐиÃÏÂÁîºó£¬ÏµÍ³½«ÁгöËùÓÐÓû§Ãû£¬Àû±ãÉó²éËùÓÐÓû§µÄÃû³Æ¡£

ʹÓÃgetentÏÂÁîÉó²éËùÓÐÓû§

getentÏÂÁî¿ÉÒÔÓÃÀ´»ñÈ¡Êý¾Ý¿âÖеÄËùÓÐÐÅÏ¢£¬°üÀ¨Óû§¡¢×é¡¢Ö÷»úµÈ¡£ÎÒÃÇ¿ÉÒÔʹÓÃgetentÏÂÁîÍŽápasswdÊý¾Ý¿âÀ´Éó²éËùÓÐÓû§µÄÐÅÏ¢¡£

getent passwd

µÇ¼ºó¸´ÖÆ

Ö´ÐÐÉÏÊöÏÂÁîºó£¬ÏµÍ³»áÁгöËùÓÐÓû§µÄÏêϸÐÅÏ¢£¬°üÀ¨Óû§Ãû³Æ¡¢Óû§ID¡¢×éID¡¢Óû§ÐÅÏ¢¡¢Ö÷Ŀ¼ºÍShellµÈ¡£Óëcat /etc/passwdÏÂÁîÏà±È£¬getentÏÂÁîչʾµÄÐÅÏ¢Ô½·¢ÖÜÈ«ºÍÏêϸ¡£

ͨ¹ýÒÔÉÏÈýÖÖÒªÁ죬ÎÒÃÇ¿ÉÒÔÇáËÉÉó²éLinuxϵͳÖеÄËùÓÐÓû§£¬²¢»ñÈ¡ËûÃǵĻù±¾ÐÅÏ¢¡£Óû§ÖÎÀíÊÇϵͳÖÎÀíµÄ»ù´¡Ö®Ò»£¬ÊìÁ·ÕÆÎÕÓû§ÖÎÀíÏà¹Ø²ÙÞÏÞεóÄÑÓÚÖÎÀíLinuxϵͳÖÁ¹ØÖ÷Òª¡£Ï£Íû±¾ÎÄÌṩµÄ´úÂëʾÀýÄÜ×ÊÖú¶ÁÕ߸üºÃµØÏàʶºÍÕÆÎÕLinuxÓû§ÖÎÀíµÄÏà¹Ø֪ʶ¡£

ÒÔÉϾÍÊÇÖÎÀíLinuxÓû§£ºÁгöËùÓÐÓû§µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí£¬°æȨÕùÒéÓë±¾Õ¾Î޹أ¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í×ðÁú¿­Ê±¹ÙÍøµÇ¼ÂËÓÍ»úÍø¹Ù·½Ì¬¶È£¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ£¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢£¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢£¬ÇëÄúÁ¬Ã¦ÁªÏµ×ðÁú¿­Ê±¹ÙÍøµÇ¼ʵʱÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ×ðÁú¿­Ê±¹ÙÍøµÇ¼

13452372176

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎ壬9:30-18:30£¬½ÚãåÈÕÐÝÏ¢

QR code
ÍøÕ¾µØͼ