ÀÌ sectionÀº system¿¡ Shadow SuiteÀ» ±ò°í ³ª¼ ¾Ë°í ½ÍÀº ¸î¸î ÁÖÁ¦¸¦ ´Ù·é´Ù. ´õ ÀÚ¼¼ÇÑ °ÍÀº °¢ ¸í·ÉÀÇ manual page¸¦ ÂüÁ¶Çϱ⠹ٶõ´Ù.
Shadow Suite´Â »ç¿ëÀÚ °èÁ¤À» °ü¸®ÇÏ´Â, ´ÙÀ½°ú °°Àº ¸í·ÉµéÀ»
Ãß°¡Çß´Ù. ÀÌ¹Ì adduser
programÀº ±×Àü¿¡ ¼³Ä¡µÇ¾î ÀÖ¾úÀ» °ÍÀÌ´Ù.
useradd
¸í·ÉÀº »ç¿ëÀÚ¸¦ Ãß°¡ÇÑ´Ù. ¶ÇÇÑ, ±âº» ¼³Á¤À» ¹Ù²Ù±â À§ÇØ
ÀÌ ¸í·ÉÀ» ½ÇÇàÇÒ ¼ö ÀÖ´Ù.
óÀ½ ÇØ¾ß ÇÒ ÀÏÀº ±âº» ¼³Á¤À» È®ÀÎÇÏ°í, system¿¡ ¸Â°Ô °íÄ¡´Â °ÍÀÌ´Ù:
useradd -D
GROUP=1 HOME=/home INACTIVE=0 EXPIRE=0 SHELL= SKEL=/etc/skel
±âº» ¼³Á¤Ä¡´Â ¾Æ¸¶ ¸¾¿¡ µéÁö ¾ÊÀ» °ÍÀÌ´Ù. µû¶ó¼ Áö±Ý »ç¿ëÀÚ¸¦ Ãß°¡ÇÏ·Á¸é, °¢°¢ »ç¿ëÀÚ¿¡°Ô °øÅëµÇ´Â ¸ðµç Á¤º¸¸¦ Á¤ÇØ¾ß ÇÑ´Ù. ¾î·µç ¿ì¸®´Â ±âº» ¼³Á¤Ä¡¸¦ ¹Ù²Ù°í µ¡ºÙÀÏ°Å´Ù.
³» system¿¡¼´Â:
/bin/bash
ÀÌ´Ù.
useradd -D -g100 -e60 -f0 -s/bin/bash
ÀÌÁ¦ useradd -D
¸¦ Ä¡¸é:
GROUP=100 HOME=/home INACTIVE=0 EXPIRE=60 SHELL=/bin/bash SKEL=/etc/skel
ÀÌ·¯ÇÑ ±âº»Ä¡µéÀº /etc/default/useradd
¿¡ ÀúÀåµÈ´Ù.
ÀÌÁ¦ useradd
¸¦ ½á¼ system¿¡ »ç¿ëÀÚ¸¦ Ãß°¡ÇÒ ¼ö ÀÖ´Ù. ¿¹¸¦ µé¾î,
fred
¶ó´Â »ç¿ëÀÚ¸¦ ±âº»Ä¡¸¸ Àû¿ëÇؼ Ãß°¡ÇÑ´Ù¸é:
useradd -m -c "Fred Flintstone" fred
/etc/passwd
file¿¡ ´ÙÀ½°ú °°Àº ¸íºÎ(?)°¡ »ý¼ºµÈ´Ù:
fred:*:505:100:Fred Flintstone:/home/fred:/bin/bash
±×¸®°í, /etc/shadow
file¿¡´Â:
fred:!:0:0:60:0:0:0:0
fred
ÀÇ home directory°¡ ¸¸µé¾îÁö°í, -m
switch°¡ ¾²¿´À¸¹Ç·Î
/etc/skel
Àüü°¡ ±× °÷À¸·Î º¹»çµÈ´Ù.
¶ÇÇÑ, Ưº°È÷ UID¸¦ ÁöÁ¤ÇÏÁö ¾Ê¾ÒÀ¸·Î, ÀÌ¹Ì »ç¿ëµÈ UID ´ÙÀ½ °ÍÀÌ ¾²¿´´Ù.
fred
ÀÇ °èÁ¤ÀÌ »ý°åÀ¸³ª, ¿ì¸®°¡ °èÁ¤À» Ç®¾îÁÖ±â Àü±îÁö´Â
fred
´Â loginÇÒ ¼ö ¾ø´Ù. °èÁ¤À» Ç®¾îÁÖ±â À§Çؼ´Â password¸¦ ¹Ù²Ù¾î
ÁÖ¾î¾ß ÇÑ´Ù.
passwd fred
Changing password for fred Enter the new password (minimum of 5 characters) Please use a combination of upper and lower case letters and numbers. New Password: ******* Re-enter new password: *******
/etc/shadow
´Â ´ÙÀ½°ú °°À» °ÍÀÌ´Ù:
fred:J0C.WDR1amIt6:9559:0:60:0:0:0:0
±×¸®°í, fred
´Â loginÇؼ systemÀ» »ç¿ëÇÒ ¼ö ÀÖ´Ù.
Shadow Suite¿¡ ÀÖ´Â ´Ù¸¥ programµé°ú °°ÀÌ useradd
°¡ ÁÁÀº Á¡Àº
/etc/passwd
¿Í /etc/shadow
fileÀÇ ³»¿ëÀ» ¹Ù²Ü ¶§ ¹æÇعÞÁö
¾Ê´Â´Ù´Â Á¡ÀÌ´Ù. µû¶ó¼ µ¿½Ã¿¡ ´ç½ÅÀº »ç¿ëÀÚ¸¦ Ãß°¡ÇÏ°í, ´Ù¸¥ ÀÌ¿ëÀÚ´Â
ÀÚ½ÅÀÇ password¸¦ ¹Ù²Û´ÙÇصµ, µÑ ´Ù Á¦´ë·Î ÀÌÇàµÈ´Ù.
(¿ªÀÚÁÖ: mutex lock, race condition°°Àº °É »ý°¢ÇÏ¸é µÉ °Í°°½À´Ï´Ù.)
/etc/passwd
, /etc/shadow
¸¦ Á÷Á¢ ÆíÁýÇÏ´Â °Íº¸´Ù
ÀÌ·± ¸í·ÉÀ» ¾²´Â °ÍÀÌ ´õ ÁÁ´Ù. ¸¸ÀÏ ´ç½ÅÀÌ /etc/shadow
fileÀ» ÆíÁýÇÏ°í
ÀÖ°í, ±× ¿ÍÁß¿¡ ÇÑ »ç¿ëÀÚ°¡ password¸¦ ¹Ù²Ù°í, ±×¸®°í³ª¼ ´ç½ÅÀÌ ÆíÁýÀ»
³¡³»°í ÀúÀåÇϸé, ±× »ç¿ëÀÚ°¡ ÇÑ ÀÏÀ» ÀÒ¾î¹ö¸®°Ô µÈ´Ù.
¿©±â¿¡ useradd
¿Í passwd
¸¦ »ç¿ëÇÑ °£´ÜÇÑ ´ëÈÇü script°¡ ÀÖ´Ù:
#!/bin/bash # # /sbin/newuser - Shadow SuiteÀÇ useradd¿Í passwd ¸í·ÉÀ» ÀÌ¿ëÇؼ # »ç¿ëÀÚ¸¦ Ãß°¡ÇÏ´Â script # # Linux Shadow Password HowtoÀÇ ¿¹Á¦·Î½á Mike Jackson <mhjack@tscnet.com>¿¡ # ÀÇÇØ ÀÛ¼ºµÆÀ½. »ç¿ë°ú ¼öÁ¤À» Ưº°È÷ Çã°¡ÇÔ. # # ÀÌ °ÍÀº SlackwareÀÇ Adduser programó·³ ±âº»Ä¡¸¦ º¸¿©ÁÖ°í, ¼öÁ¤ÇÒ ¼ö ÀÖµµ·Ï # ¹Ù²Ü ¼ö ÀÖ¾ú´Ù. ¶ÇÇÑ ¸ÛûÇÑ ÀÔ·ÂÀ» °ÅºÎÇϵµ·Ï ¹Ù²ð ¼ö ÀÖ¾ú´Ù. # (Áï, ´õ ³ªÀº ¿À·ù °Ë»çµî...) # ## # useradd ¸í·ÉÀÇ ±âº» ¼³Á¤Ä¡µé ## GROUP=100 # ±âº» Group HOME=/home # Home directory À§Ä¡ (/home/username) SKEL=/etc/skel # Skeleton(°øÅëÀûÀÎ ³»¿ëÀ» Áö´Ñ fileµé?) Directory INACTIVE=0 # password°¡ ±âÇÑÀÌ Áö³ µÚ »ç¿ëÀÚ °èÁ¤ÀÌ ¹«È¿°¡ # µÇ±â±îÁöÀÇ ±â°£ (0=±×·¸°Ô ÇÏ°í ½ÍÁö ¾ÊÀ½) EXPIRE=60 # password À¯È¿±â°£ SHELL=/bin/bash # ±âº» Shell (full path) ## # passwd ¸í·ÉÀÇ ±âº» ¼³Á¤Ä¡µé ## PASSMIN=0 # password¸¦ ¹Ù²Û´ÙÀ½ ¶Ç ¹Ù²Ù±â À§ÇÑ À¯¿¹±â°£ PASSWARN=14 # passwordÀÇ ±âÇÑÀÌ Áö³ª±âÀü¿¡ °æ°íÇÏ´Â ±â°£ ## # script¸¦ ½ÇÇàÇÏ´Â »ç¿ëÀÚ°¡ rootÀÎÁö È®ÀÎ ## WHOAMI=`/usr/bin/whoami` if [ $WHOAMI != "root" ]; then echo "You must be root to add news users!" exit 1 fi ## # »ç¿ëÀÚ ID(username)¿Í ½ÇÁ¦ À̸§(Full name) ¹¯±â ## echo "" echo -n "Username: " read USERNAME echo -n "Full name: " read FULLNAME # echo "Adding user: $USERNAME." # # $FULLNAME ÁÖº¯¿¡ ""°¡ ÇÊ¿äÇÏ´Ù´Â °Í¿¡ ÁÖÀÇÇÒ °Í. ÀÌÀ¯´Â ÀÌ field´Â # ¹Ýµå½Ã °ø¶õÀÌ»óÀÇ ¹«¾ùÀΰ¡¸¦ Æ÷ÇÔÇϸç, "¸¦ ¾øÀÌ useradd command¸¦ # ½ÇÇà½ÃŲ´Ù¸é, ´ÙÀ½¿¡ À̾îÁö´Â parameterµéµµ ±× field¿¡ ÀϺκÐÀ¸·Î # ÀνĵȴÙ. # /usr/sbin/useradd -c"$FULLNAME" -d$HOME/$USERNAME -e$EXPIRE \ -f$INACTIVE -g$GROUP -m -k$SKEL -s$SHELL $USERNAME ## # password¿¡ ´ëÇÑ ±âº» ¼³Á¤Ä¡¸¦ Á¤ÇÑ´Ù. ## /bin/passwd -n $PASSMIN -w $PASSWARN $USERNAME >/dev/null 2>&1 ## # passwd¸¦ ½ÇÇà½ÃÄÑ password¸¦ ÀԷ¹޴´Ù. ## /bin/passwd $USERNAME ## # °á°ú¸¦ º¸¿©ÁÜ. ## echo "" echo "Entry from /etc/passwd:" echo -n " " grep "$USERNAME:" /etc/passwd echo "Entry from /etc/shadow:" echo -n " " grep "$USERNAME:" /etc/shadow echo "Summary output of the passwd command:" echo -n " " passwd -S $USERNAME echo ""
»õ·Î¿î »ç¿ëÀÚ¸¦ Ãß°¡ÇÏ´Â µ¥ script¸¦ ¾²´Â °ÍÀº /etc/passwd
¿Í
/etc/shadow
¸¦ Á÷Á¢ ÆíÁýÇÏ´Â °Å³ª SlackwareÀÇ adduser
¸¦ ¾²´Â
°Íº¸´Ù ÈÎ ³´´Ù. ´ç½ÅÀÇ Æ¯º°ÇÑ system¿¡ ¾Ë¸Â·Î·Ï ÀÚÀ¯·Ó°Ô °íÄ¡±â ¹Ù¶õ´Ù.
useradd
¿¡ ´ëÇÑ ÀÚ¼¼ÇÑ Á¤º¸´Â manual page¸¦ º¸½Ã±æ...
usermod
´Â »ç¿ëÀÚ¿¡ ´ëÇÑ Á¤º¸¸¦ °íÄ£´Ù. optionÀº useradd
¿Í
ºñ½ÁÇÏ´Ù.
¾ÕÀÇ fred
ÀÇ shellÀ» ¹Ù²Ù°í ½ÍÀ¸¸é, ´ÙÀ½°ú °°ÀÌ ÀÔ·ÂÇÑ´Ù:
usermod -s /bin/tcsh fred
ÀÌÁ¦ fred
ÀÇ /etc/passwd
file¿¡ ÀÖ´Â ³»¿ëÀº ´ÙÀ½Ã³·³ ¹Ù²î¾î
ÀÖ´Ù:
fred:*:505:100:Fred Flintstone:/home/fred:/bin/tcsh
À̹ø¿¡´Â fred
ÀÇ °èÁ¤ÀÌ 97³â 9¿ù 15ÀϱîÁö¸¸ ¾²µµ·Ï ÇÏÀÚ:
usermod -e 09/15/97 fred
±×·¯¸é fred
ÀÇ /etc/shadow
file¿¡ ÀÖ´Â ³»¿ëÀº:
fred:J0C.WDR1amIt6:9559:0:60:0:0:10119:0
usermod
¿¡ ´ëÇÑ ÀÚ¼¼ÇÑ Á¤º¸´Â manual page¸¦...
userdel
´Â Á¤È®È÷ ´ç½ÅÀÌ ¿øÇÑ °Í - »ç¿ëÀÚ °èÁ¤ Á×À̱â - ¸¦ ÇØÄ¡¿î´Ù.
userdel -r username
¶ó°í Ä¡¸é µÈ´Ù. -r
Àº »ç¿ëÀÚÀÇ home directory¿¡ ÀÖ´Â ¸ðµç fileµé°ú
ÇÔ²² directory ÀÚü¸¦ Áö¿î´Ù. ´Ù¸¥ °÷¿¡ ÀÖ´Â fileµéÀº ÀÏÀÏÀÌ Ã£¾Æ¼ Áö¿ö¾ß
ÇÑ´Ù.
»èÁ¦º¸´Ù °èÁ¤À» ¾²Áö ¸øÇÏ°Ô ÇÒ °Å¶ó¸é, passwd
¸í·ÉÀ» ¾²±â ¹Ù¶õ´Ù.
passwd
´Â ¸» ±×´ë·Î password¸¦ ¹Ù²Ù´Â µ¥ »ç¿ëµÈ´Ù.
´õ¿ì±â, root´Â ´ÙÀ½°ú °°Àº ÀÏÀ» ÇÒ ¼ö ÀÖ´Ù:
-l
¿Í -u
)-x
)-n
)-w
)-i
)-S
)´Ù½Ã fred
ÀÇ ¿¹·Î µ¹¾Æ°¡¸é
passwd -S fred
fred P 03/04/96 0 60 0 0
ÀÌ°ÍÀº fred
ÀÇ password°¡ À¯È¿ÇÏ°í, 96³â 3¿ù 4ÀÏ¿¡ ¸¶Áö¸·À¸·Î ¹Ù²Ù¾ú°í,
¾ðÁ¦µçÁö ¹Ù²Ü ¼ö ÀÖ´Ù. ±×¸®°í, 60Àϵ¿¾È password¸¦ ¹Ù²ÙÁö ¾ÊÀ¸¸é ±×ÈÄ¿¡´Â
¸ø¾²°í, ±× ÀÌÀü¿¡ fred´Â ¾Æ¹«·± °æ°í¸¦ ¹ÞÁö ¾ÊÀ» °ÍÀ̸ç,
password¸¦ ¸ø¾²´õ¶óµµ °èÁ¤Àº À¯È¿ÇÏ´Ù.
Áï, fred
ÀÇ password°¡ ¹«È¿°¡ µÈ µÚ µé¾î¿À¸é, »õ·Î¿î password¸¦
ÀçÃ˹ÞÀ» °ÍÀÌ´Ù.
fred
¿¡°Ô password°¡ Ãë¼ÒµÇ±â 14ÀÏÀü¿¡ °æ°í¸¦ ÇÏ°í, Ãë¼ÒµÈ µÚ 14ÀÏÈÄ
±×ÀÇ °èÁ¤À» µ¿°á½ÃÅ°·Á¸é:
passwd -w14 -i14 fred
±×·¯¸é ´ÙÀ½Ã³·³ fred
¿¡ ´ëÇÑ ³»¿ëÀÌ ¹Ù²ï´Ù:
fred P 03/04/96 0 60 14 14
passwd
¿¡ ´ëÇÑ ÀÚ¼¼ÇÑ Á¤º¸´Â manual page¿¡...
/etc/login
file˼ login
program, ÀüüÀûÀ¸·Î
Shadow Suite¿¡ ´ëÇÑ ¼³Á¤À» ´ã°í ÀÖ´Ù.
/etc/login
Àº prompt°¡ ¾î¶² ¸ð½ÀÀ» ÇÏ°í ÀÖ´Â °¡ºÎÅÍ »ç¿ëÀÚ°¡ password¸¦
¹Ù²Ù¸é ±âº» À¯È¿±â°£Àº ¾î¶»°Ô µÉ °ÍÀΰ¡¿¡ ´ëÇÑ ¼³Á¤±îÁö ´ã°í ÀÖ´Ù.
/etc/login.defs
fileÀº ³»ºÎ¿¡ ÀÖ´Â ¼ö¸¹Àº commentµé·Î Àß ¹®¼ÈµÇ¾î
ÀÖ´Ù. ÀÖ´Â °ÍÀ» °£´ÜÈ÷ ¼³¸íÇϸé:
À§¿¡¼ º¸µí ÀÌ ³ðÀº »ó´çÈ÷ Áß¿äÇÑ fileÀÌ´Ù. µû¶ó¼, Áö±Ý ÀÖ´ÂÁö È®ÀÎÇÏ°í, system°ú ´ç½Å ÃëÇâ¿¡ ¸Â´Â Áö Á¡°ËÇÒ °Í.
/etc/groups
fileÀº »ç¿ëÀÚ°¡ ƯÁ¤ groupÀÇ È¸¿øÀÌ µÉ ¼ö ÀÖµµ·Ï Çã¿ëÇÏ´Â
password¸¦ ´ã°í ÀÖ´Ù. ÀÌ ±â´ÉÀº /usr/src/shadow-YYMMDD/config.h
ÀÇ
SHADOWGRP
»ó¼ö¸¦ Á¤ÀÇÇÒ °æ¿ì ÀÛµ¿µÈ´Ù.
¸¸ÀÏ ÀÌ ±â´ÉÀ» ¾´´Ù¸é, /etc/gshadow
fileÀ» ¸¸µé¾î, group password¿Í
group °ü¸®ÀÚ¿¡ ´ëÇÑ Á¤º¸¸¦ ´ãÀ» ¼ö ÀÖµµ·Ï Ç϶ó.
/etc/shadow
¸¦ ¸¸µé ¶§, ´ç½ÅÀº pwconv
¸¦ ½èÁö¸¸,
/etc/gshadow
¸¦ ¸¸µå´Â µ¥¿¡´Â ±×·± programÀÌ ¾ø´Ù.
ÇÏÁö¸¸ °ÆÁ¤¸»¶ó. ¾Ë¾Æ¼ Çϴϱî.
óÀ½ /etc/gshadow
¸¦ ¸¸µé±â À§Çؼ ´ÙÀ½Ã³·³ Çضó:
touch /etc/gshadow
chown root.root /etc/gshadow
chmod 700 /etc/gshadow
´ç½ÅÀÌ »õ·Î¿î groupÀ» ¸¸µç´Ù¸é, ÀÚµ¿ÀûÀ¸·Î /etc/group
¿Í
/etc/gshadow
file¿¡ ±×µéÀÌ µ¡ºÙ¿©Áø´Ù. group¿¡ »ç¿ëÀÚ¸¦ Ãß°¡Çϰųª
»èÁ¦, ¶Ç´Â group password¸¦ ¹Ù²Ù¸é, /etc/gshadow
fileÀº µû¶ó¼ ¹Ù²ð
°ÍÀÌ´Ù.
groups
, groupadd
, groupmod
, groupdel
programÀÌ groupÀ» °íÄ¡´Â µµ±¸·Î½á Shadow Suite¿¡ Æ÷ÇÔµÇ¾î °ø±ÞµÈ´Ù.
/etc/group
fileÀÇ Çü½ÄÀº ´ÙÀ½°ú °°´Ù:
groupname:!:GID:member,member,...
°¢ ¿ä¼Ò´Â:
groupname
group À̸§
!
ÀÌ field´Â password¶õÀÌÁö¸¸ /etc/gshadow
file·Î ¿Å°ÜÁ³´Ù.
GID
group ID number
member
group memberÀÇ list
/etc/gshadow
file ÀÇ Çü½ÄÀº ´ÙÀ½°ú °°´Ù:
groupname:password:admin,admin,...:member,member,...
°¢ ¿ä¼Ò´Â:
groupname
group À̸§
password
encodeµÈ group password.
admin
group °ü¸®ÀÚ list
member
group member list
gpasswd
¸í·ÉÀº groupÀÇ »ç¿ëÀÚ³ª °ü¸®ÀÚ¸¦ Ãß°¡, ¶Ç´Â »èÁ¦ÇÒ ¶§ ¾´´Ù.
root
¶Ç´Â °ü¸®ÀÚ¸¸ÀÌ group member¸¦ Ãß°¡, »èÁ¦ÇÒ ¼ö ÀÖ´Ù.
group password´Â root³ª group °ü¸®ÀÚ¿¡ ÀÇÇØ passwd
¸í·ÉÀ¸·Î
¹Ù²Ü ¼ö ÀÖ´Ù.
gpasswd
¿¡ ´ëÇÑ manual page°¡ ÇöÀç Á¦°øµÇ¾î ÀÖÁö ¾ÊÁö¸¸, ¾Æ¹«·±
parameter¾øÀÌ gpasswd
¸¦ Ä¡¸é option¿¡ ´ëÇÑ list°¡ ³ª¿À¹Ç·Î,
file format°ú °³³ä¸¸ Àß ÀÌÇØÇÏ¸é »ç¿ë¹ýÀ» ½±°Ô ÀÍÈú ¼ö ÀÖ´Ù.
pwck
program˼ /etc/passwd
¿Í /etc/shadow
file°£¿¡
Ʋ¸° Á¡ÀÌ ¾ø´Â Áö Á¡°ËÇÑ´Ù. ÀÌ °ÍÀº °¢°¢ »ç¿ëÀÚ¿¡ ´ëÇØ ´ÙÀ½°ú °°Àº »çÇ×À»
Á¡°ËÇÑ´Ù:
¶ÇÇÑ, password°¡ ¾ø´Â °èÁ¤¿¡ ´ëÇØ °æ°í¸¦ ÁØ´Ù.
Shadow SuiteÀ» ±ñ µÚ, pwck
¸¦ ½ÇÇà½ÃÅ°´Â °ÍÀº ÁÁÀº »ý°¢ÀÌ´Ù.
ÁÖ³ª ¿ù´ÜÀ§µî ÁÖ±âÀûÀ¸·Î ½ÇÇà½ÃÅ°±â¸¦ ±ÇÇÑ´Ù. -r
optionÀ» ¾´´Ù¸é,
cron
À¸·Î ÇÏ¿©±Ý Á¤±âÀûÀ¸·Î ½ÇÇàÇÏ°í °á°ú¸¦ º¸°íÇϵµ·Ï ÇÒ ¼ö ÀÖ´Ù.
grpck
program˼ /etc/group
¿Í /etc/gshadow
file°£¿¡
Ʋ¸° Á¡ÀÌ ¾ø´Â Áö Á¡°ËÇÑ´Ù. ÀÌ°ÍÀº ´ÙÀ½°ú °°Àº »çÇ×À» Á¡°ËÇÑ´Ù:
ÀÚµ¿ º¸°í¼¸¦ À§ÇØ -r
optionÀÌ ÀÖ´Ù.
Dial-up password´Â ÀüÈÁ¢¼ÓÀ» Çã¿ëÇÏ´Â system¿¡°Ô´Â ¶Ç ÇϳªÀÇ ¹æ¾î¼±ÀÌ´Ù.
´ç½ÅÀº Á÷Á¢À̵ç network¸¦ ÅëÇؼ°Ç ¸¹Àº »ç¶÷µéÀÌ system¿¡ Á¢¼ÓÇÏ°Ô ÇÒ ¼ö
ÀÖÁö¸¸, ÀüÈÁ¢¼ÓÀ» ÇÒ ¼ö ÀÖ´Â »ç¶÷À» Á¦ÇÑÇÏ°í ½Í´Ù¸é, dial-up password´Â
ÁÁÀº ÇØ°áÃ¥ÀÌ´Ù. dial-up password¸¦ ¾²°í ½Í´Ù¸é, /etc/login.defs
ÀÇ
DIALUPS_CHECK_ENAB
¸¦ yes
·Î ¹Ù²Ù¸é µÈ´Ù.
µÎ fileÀÌ ÀüÈÁ¢¼Ó¿¡ ´ëÇÑ Á¤º¸¸¦ ´ã°í ÀÖ´Ù. /etc/dialups
´Â ttys¿¡
´ëÇÑ ³»¿ëÀÌ´Ù ("/dev/"´Â Á¦°ÅµÈ ä·Î line´ç Çϳª¾¿). tty°¡ list¿¡ ¿Ã¶ó¿ÍÀÖ´Ù¸é
dial-up °Ë»ç°¡ ¼öÇàµÈ´Ù(?).
µÎ¹ø°´Â /etc/d_passwd
ÀÌ´Ù. ÀÌ file¿¡´Â password¿Í
shellÀÇ ¿ÏÀüÇÑ pathnameÀÌ µé¾î ÀÖ´Ù.
tty¸¦ ÅëÇؼ logÇÏ´Â »ç¿ëÀÚ°¡ /etc/dialups
¿¡, ±×ÀÇ shellÀÌ
/etc/d_passwd
¿¡ ÀÖ´Ù¸é, ±×´Â Á¦´ë·Î password¸¸ ÀÔ·ÂÇÏ¸é µÈ´Ù.
dial-up passwordÀÇ ¶Ç ´Ù¸¥ ÀÌ¿ë¹ý´Â ÇÑ line¿¡ ¾î¶² Á¢¼Ó À¯Çü(´ë°³ PPP³ª UUCP Á¢¼Ó)À» Çã¿ëÇÒ °ÍÀΰ¡¸¦ Á¤ÇÏ´Â °ÍÀÌ´Ù. »ç¿ëÀÚ°¡ ´Ù¸¥ À¯ÇüÀÇ Á¢¼Ó(ƯÈ÷, ÀÏ·ÃÀÇ shell·Î½á)À» ½ÃµµÇÏ°íÀÚ ÇÑ´Ù¸é, lineÀ» »ç¿ëÇÒ ¼ö ÀÖ´Â password¸¦ ¾Ë°í ÀÖ¾î¾ß ÇÑ´Ù.
dial-up ±â´ÉÀ» »ç¿ëÇϱâ Àü¿¡, fileµéÀ» ¸¸µé¾î¾ß ÇÑ´Ù.
dpasswd
¸í·ÉÀº password¿Í /etc/d_passwd
¿¡ ÀÖ´Â shellÀ»
¿¬°áÇØÁØ´Ù. ÀÚ¼¼ÇÑ Á¤º¸´Â manual page¿¡...