Linux 鏇存敼鐢ㄦ埛鍚嶄笉鍍廤indows 閲嶅懡鍚嶉偅涔堢畝鍗曪紝棣栧厛浣犺鐭ラ亾鍦↙inux涓垱寤轰簡涓€涓敤鎴凤紝闄や簡鐢熸垚UID澶栬繕浼氭湁涓€涓狦ID锛屽綋浣犲鍘熺敤鎴峰悕淇敼鍚庯紝鍒繕浜嗗GID涔熻繘琛屾洿鏂般€?/span>
淇敼鐢ㄦ埛鍚嶏細
浠oot韬唤鐧诲綍锛岀劧鍚庝娇鐢ㄤ笅鍒楀懡浠よ繘琛屼慨鏀?/span>
usermod -l NewUser -d /home/NewUser -m OldUser
-l 淇敼鐢ㄦ埛鍚?/span>
-d 淇敼鐧诲綍鍚庝娇鐢ㄧ殑璺緞
-m 淇敼鐧诲綍鍚嶇О鐨勫悓鏃跺皢鐩綍鍚嶇О涓€鍚屼慨鏀?/span>
淇敼缁勫悕绉帮細
缁т笂闈㈡搷浣滃悗锛岀户缁墽琛屼笅鍒楀懡浠?/span>
groupmod -n NewUser OldName
-n 淇敼缁勭殑鍚嶇О