linux下/etc/passwd的字段名称

cat /etc/passwd | grep liguowang     
liguowang:x:1030:1028::/home/liguowang:/bin/bash


/*   The   passwd   structure.     */ 
struct   passwd 
{ 
    char   *pw_name;           	/*   Username.     	*/ 	liguowang
    char   *pw_passwd;         	/*   Password.    	*/ 	x
    __uid_t   pw_uid;         	/*   User   ID.   	*/ 	1030 
    __gid_t   pw_gid;        	/*   Group   ID.    	*/ 	1028
    char   *pw_gecos;       	/*   Real   name.     	*/ 
    char   *pw_dir;         	/*   Home   directory. 	*/	/home/liguowang
    char   *pw_shell;       	/*   Shell   program. 	*/ 	/bin/bash
}; 



你可能感兴趣的:(linux下/etc/passwd的字段名称)