UNIX :: Passwd :: File.

/ etc / {passwd, shadow, group, gshadow} Ç׸ñ Á¶ÀÛ
Áö±Ý ´Ù¿î·Îµå

UNIX :: Passwd :: File. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Perl Artistic License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Steven Haryanto
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://search.cpan.org/~sharyanto/

UNIX :: Passwd :: File. ű×


UNIX :: Passwd :: File. ¼³¸í

UNIX :: passwd :: fileÀº UNIX ½Ã½ºÅÛ ¾ÏÈ£ ÆÄÀÏ (/ etc / passwd, / etc / group; etc / group; / etc / gshadow)¿¡¼­ Ç׸ñÀ» Àаí Á¶ÀÛÇÏ´Â µ¥ »ç¿ëÇÒ ¼öÀÖ´Â perl ¸ðµâÀ» »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. »ç¿ëÀÚ Á¤ÀÇ À§Ä¡¿¡¼­ Å×½ºÆ® ¸ñÀûÀ¸·Î °Ë»öÇϽʽÿÀ) .Synopsis Unix :: Passwd :: Files; # ±âº»ÀûÀ¸·Î / etc (/ etc / passwd, / etc / shadow, et al) ³» $ res = list_users (); # # ÆÄÀÏÀÇ À§Ä¡ º¯°æ, ¸®ÅÏ ¼¼ºÎ Á¤º¸ $ res = list_users (etc_dir =>"/ ÀϺΠ/ °æ·Î ", ¼¼ºÎ => 1); # ] # detailÀ» ¹ÝȯÇÏÁö¸¸ Çؽà $ res = list_users ´ë½Å ¹è¿­ Ç׸ñÀ» ¹ÝȯÇÕ´Ï´Ù (¼¼ºÎ »çÇ× => 1, with_field_names => 0); # , ...] »ç¿ëÀÚ / ±×·ì °¡Á® ¿À±â $ res = get_group (user => "buzz"); # $ res = get_user (user => "neil"); # # »ç¿ëÀÚ / ±×·ì Ãß°¡Çϱ⠱⺻ÀûÀ¸·Î »ç¿ëÀÚ Ãß°¡´Â µ¿ÀÏÇÑ # name $ res = add_user (user => steven ", ...)¿Í µ¿ÀÏÇÑ ±×·ìÀ» Ãß°¡ÇÕ´Ï´Ù. # $ = add_group (group => "steven", ...); # # »ç¿ëÀÚ ¼öÁ¤ / ±×·ì $ res = modify_user (user => "steven", home => "/ newhome / steven"); # $ = modify_group (group => "neil"); # # »èÁ¦ »ç¿ëÀÚ´Â »ç¿ëÀÚ ±×·ì $ »èÁ¦ $ res = delete_user (user => "neil")¸¦ »èÁ¦ÇÕ´Ï´Ù. # »ç¿ëÀÚ ¾ÏÈ£ º¯°æ $ = set_user_password (user => "steven", pass => "foobar"); # $ res = add_user_to_group (user => "steven", group => "ÈÙ"±×·ìÀ» Ãß°¡ / »èÁ¦ÇϽʽÿÀ. $ res = delete_user_from_group (»ç¿ëÀÚ => "steven", group => "ÈÙ"); # ±âŸ $ res = get_max_uid (); $ res = get_max_gid (); Á¦Ç°ÀÇ È¨ÆäÀÌÁö


UNIX :: Passwd :: File. °ü·Ã ¼ÒÇÁÆ®¿þ¾î