¤Þ¤È¤á ¥Ö¥í¥° ¥À¥¦¥ó¥í¡¼¥É ·Ç¼¨ÈÄ ¥á¡¼¥ë

¤ì¤Ö¤í¤°

< 2008-04-19 (ÅÚ) 2008-04-26 (ÅÚ) > ºÇ¿·


2008-04-21 (·î)

¢£ useradd ¥³¥Þ¥ó¥É¤Ë¤Ï -m ¥ª¥×¥·¥ç¥ó¤ò¤Ä¤±¤è¤¦

useradd ¥³¥Þ¥ó¥É¤Ë -m ¥ª¥×¥·¥ç¥ó¤òÉÕ¤±¤ë¤È¡¢ ¥æ¡¼¥¶¥¢¥«¥¦¥ó¥ÈºîÀ®»þ¤Ë¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê¤âºî¤Ã¤Æ¤¯¤ì¤ë¡£ º£¤Þ¤Ç¤½¤¦³Ð¤¨¤Æ¤¤¤¿¤Î¤Ë¡¢¤µ¤Ã¤­ CentOS ¤Çºî¶È¤·¤Æ¤¤¤¿¤é¡¢ -m ¥ª¥×¥·¥ç¥ó̵¤·¤Ç¤â¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê¤¬ºî¤é¤ì¤¿¡£ ¤¢¤ì¡© ¤Ê¤ó¤Ç¡©

Ä´¤Ù¤Æ¤ß¤ë¤È¡¢/etc/login.defs ¤Ë¤³¤¦½ñ¤«¤ì¤Æ¤¤¤¿¡£

#
# If useradd should create home directories for users by default
# On RH systems, we do. This option is overridden with the -m flag on
# useradd command line.
#
CREATE_HOME     yes

¤Ê¤ë¤Û¤É¡£RedHat ·Ï¤Ç¤Ï -m ¥ª¥×¥·¥ç¥ó¤ÏÉÕ¤±¤Ê¤¯¤Æ¤âÎɤ¤¡¢¤È¡£

¤Ç¤â³Î¤« Debian ¤Ï°ã¤Ã¤¿¤Ï¤º¡¢¤È»×¤Ã¤¿¤Î¤Ç¡¢¼ÂºÝ¤Ë»î¤·¤Æ¤ß¤¿¤È¤³¤í¡¢ ¤ä¤Ï¤ê Debian ¤Ç¤Ï -m ¥ª¥×¥·¥ç¥ó¤òÉÕ¤±¤Ê¤¤¤È¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê¤Ïºî¤é¤ì¤Ê¤«¤Ã¤¿¡£

¤È¤¤¤¦¤³¤È¤Ç¡¢ useradd ¥³¥Þ¥ó¥É¤Ë¤Ï -m ¥ª¥×¥·¥ç¥ó¤òÉÕ¤±¤Æ»È¤¦¡¢¤È³Ð¤¨¤Æ¤ª¤¤¤¿Êý¤¬¤¤¤¤¤È»×¤¤¤Þ¤¹¡£

Tags: Linux | ¤³¤Î¥¨¥ó¥È¥ê¤ò´Þ¤à del.icio.us | ¤³¤Î¥¨¥ó¥È¥ê¤ò´Þ¤à¤Ï¤Æ¤Ê¥Ö¥Ã¥¯¥Þ¡¼¥¯ | ¤³¤Î¥¨¥ó¥È¥ê¤ò´Þ¤à livedoor ¥¯¥ê¥Ã¥× | Permalink

¢£ pam_wheel.so ¤ò»È¤¦¾ì¹ç¤Ï¡¢SU_WHEEL_ONLY ¤ÎÀßÄê¤ÏÉÔÍ×

wheel ¥°¥ë¡¼¥×¤Î¥æ¡¼¥¶¤·¤« su ¥³¥Þ¥ó¥É¤ò»È¤¨¤Ê¤¤¤è¤¦¤Ë¤¹¤ë¤¿¤á¤Ë¡¢ ξÊýÀßÄꤷ¤í¡¢¤È½ñ¤¤¤Æ¤¤¤ë¥Ú¡¼¥¸¤¬·ë¹½¤¢¤ë¤¬¡¢ Debian ¤Î /etc/login.defs ¤ò¸«¤ë¤È¡¢

################# OBSOLETED BY PAM ##############
#                                               #
# These options are now handled by PAM. Please  #
# edit the appropriate file in /etc/pam.d/ to   #
# enable the equivelants of them.
#
###############

......
#SU_WHEEL_ONLY
......

¤È½ñ¤«¤ì¤Æ¤¤¤ë¡£ ¤Ä¤Þ¤ê¡¢SU_WHEEL_ONLY ¤òÀßÄꤹ¤ë¤Î¤Ï¸Å¤¤¤ä¤êÊý¤È¤¤¤¦¤³¤È¡£

/etc/pam.d/su ¤Ë¡¢

# (RedHat ·Ï)
auth		required	pam_wheel.so use_uid

# (Debian ·Ï)
auth		required	pam_wheel.so

¤Î¤è¤¦¤Ë½ñ¤¯¤À¤±¤Ç½½Ê¬¤Ê¤Ï¤º¡£

Tags: Linux | ¤³¤Î¥¨¥ó¥È¥ê¤ò´Þ¤à del.icio.us | ¤³¤Î¥¨¥ó¥È¥ê¤ò´Þ¤à¤Ï¤Æ¤Ê¥Ö¥Ã¥¯¥Þ¡¼¥¯ | ¤³¤Î¥¨¥ó¥È¥ê¤ò´Þ¤à livedoor ¥¯¥ê¥Ã¥× | Permalink
ËÜÆü¤Î¥ê¥ó¥¯¸µ

ÊÔ½¸