linuxÔõô½«Óû§Ìí¼Óµ½Óû§×é
ÔÚ linux ϵͳÖУ¬¿ÉÒÔͨ¹ýÒÔÏ°취½«Óû§Ìí¼Óµ½Óû§×飺ÒÔ root Óû§Éí·ÝµÇ¼ϵͳ¡£Ê¹Óà usermod ÏÂÁÓû§Ìí¼Óµ½Óû§×é¡£ÑéÖ¤Óû§ÊÇ·ñÒÑÀÖ³ÉÌí¼Óµ½Óû§×é¡£
ÔõÑù½«Óû§Ìí¼Óµ½ Linux Óû§×é
ÔÚ Linux ϵͳÖУ¬½«Óû§Ìí¼Óµ½Óû§×éÊÇÖÎÀíÓû§È¨Ï޺ͻá¼û¿ØÖƵÄÒªº¦°ì·¨¡£
°ì·¨£º
ÒÔ root Óû§Éí·ÝµÇ¼ϵͳ¡£
ʹÓà usermod ÏÂÁÓû§Ìí¼Óµ½Óû§×é¡£Óï·¨ÈçÏ£º
usermod -g ×éÃû Óû§Ãû
µÇ¼ºó¸´ÖÆ
ÀýÈ磬Ҫ½«Óû§ john Ìí¼Óµ½Óû§×é developers£¬ÇëʹÓÃÒÔÏÂÏÂÁ
usermod -g developers john
µÇ¼ºó¸´ÖÆ
ÑéÖ¤Óû§ÊÇ·ñÒÑÀÖ³ÉÌí¼Óµ½Óû§×顣ʹÓà groups ÏÂÁîÉó²éÓû§µÄ×é³ÉÔ±×ʸñ£º
groups ̞
µÇ¼ºó¸´ÖÆ
ÀýÈ磺
groups john
µÇ¼ºó¸´ÖÆ
Êä³ö½«ÏÔʾÓû§ËùÊôµÄËùÓÐÓû§×飬°üÀ¨ developers ×é¡£
ÒÔÉϾÍÊÇlinuxÔõô½«Óû§Ìí¼Óµ½Óû§×éµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡
ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí£¬°æȨÕùÒéÓë±¾Õ¾Î޹أ¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í×ðÁú¿Ê±¹ÙÍøµÇ¼ÂËÓÍ»úÍø¹Ù·½Ì¬¶È£¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ£¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢£¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢£¬ÇëÄúÁ¬Ã¦ÁªÏµ×ðÁú¿Ê±¹ÙÍøµÇ¼ʵʱÐÞÕý»òɾ³ý¡£