À©µµ¿ì¿Í ¸®´ª½º°£ÀÇ ÀÚ·á°øÀ¯¸¦ À§Çؼ ¸¹ÀÌ »ç¿ëÇÏ´Â SAMBA ÀÇ È°¿ë¿¡ ´ëÇؼ ¾Ë·Áµå¸³´Ï´Ù.
¹æ¹ý¿¡´Â À©µµ¿ìÁî¿¡¼ Æú´õȤÀº ÆÄÀÏÀ» °øÀ¯½ÃÅ°°í ¸®´ª½º¿¡¼ ¸¶¿îÆ®Çؼ ÀÌ¿ëÇÒ¼öµµ ÀÖÀ»°Å°í ¹Ý´ë·Î ¸®´ª½º¿¡¼ °øÀ¯½ÃŲÈÄ À©µµ¿ìÁî¿¡¼ °øÀ¯ÇÏ´Â ¹æ¹ýÀÌ ÀÖ½À´Ï´Ù.
¸ÕÀú À©µµ¿ìÁî¿¡¼ Æú´õ¸¦ °øÀ¯½ÃÅ°°í ¸®´ª½º¿¡¼ ¸¶¿îÆ® °É¾î¼ ÀÌ¿ëÇÏ´Â ¹æ¹ýÀÔ´Ï´Ù.
¸®´ª½º¿¡¼ YUMÀ¸·Î RPM ¹öÀüÀ¸·Î SAMBA ÆÐÅ°Áö¸¦ ¸ðÁ¶¸® ¼³Ä¡ÇÑ´Ù.
[root@localhost ~]# yum install samba-*
fedora 100% |=========================| 2.1 kB 00:00
updates 100% |=========================| 2.3 kB 00:00
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package samba.i386 0:3.0.28a-1.fc7 set to be updated
---> Package samba-client.i386 0:3.0.28a-1.fc7 set to be updated
---> Package samba-doc.i386 0:3.0.28a-1.fc7 set to be updated
---> Package samba-common.i386 0:3.0.28a-1.fc7 set to be updated
---> Package samba-swat.i386 0:3.0.28a-1.fc7 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
samba-doc i386 3.0.28a-1.fc7 updates 13 M
samba-swat i386 3.0.28a-1.fc7 updates 7.3 M
Updating:
samba i386 3.0.28a-1.fc7 updates 2.8 M
samba-client i386 3.0.28a-1.fc7 updates 4.5 M
samba-common i386 3.0.28a-1.fc7 updates 7.2 M
Transaction Summary
=============================================================================
Install 2 Package(s)
Update 3 Package(s)
Remove 0 Package(s)
Total download size: 35 M
°øÀ¯ ¸ñ·Ï È®ÀÎ - À©µµ¿ì 2008¿¡¼ÀÇ µðÆúÆ® °øÀ¯ ¸®½ºÆ®
[root@WAIT-LB ~]# smbclient -L 115.68.27.XX -U administrator%ºñ¹Ð¹øÈ£@
Domain=[MOJILY] OS=[Windows (R) Web Server 2008 6002 Service Pack 2] Server=[Windows (R) Web Server 2008 6.0]
Sharename Type Comment
--------- ---- -------
ADMIN$ Disk ¿ø°Ý °ü¸®
C$ Disk ±âº» °øÀ¯
IPC$ IPC ¿ø°Ý IPC
Public Disk
wwwroot Disk
session request to 115.68.27.77 failed (Called name not present)
session request to 115 failed (Called name not present)
session request to *SMBSERVER failed (Called name not present)
NetBIOS over TCP disabled -- no workgroup available
[root@WAIT-LB ~]#
- À©µµ¿ìÁîÀÇ Backup À̶ó´Â Æú´õ¸¦ °øÀ¯½ÃÄ×À» °æ¿ì(administrator °ü¸®ÀÚ °èÁ¤»ç¿ë)
[root@WAIT-LB ~]# smbclient -L 115.68.27.XX -U administrator%ºñ¹Ð¹øÈ£@
Domain=[MOJILY] OS=[Windows (R) Web Server 2008 6002 Service Pack 2] Server=[Windows (R) Web Server 2008 6.0]
Sharename Type Comment
--------- ---- -------
ADMIN$ Disk ¿ø°Ý °ü¸®
Backup Disk
C$ Disk ±âº» °øÀ¯
IPC$ IPC ¿ø°Ý IPC
Public Disk
wwwroot Disk
session request to 115.68.27.77 failed (Called name not present)
session request to 115 failed (Called name not present)
session request to *SMBSERVER failed (Called name not present)
NetBIOS over TCP disabled -- no workgroup available
¸¶¿îÆ®·Î °øÀ¯
¡Ø ¿É¼Ç¼³¸í
iocharset=value
Character set to use for converting between 8 bit characters and 16 bit Unicode characters.
The default is iso8859-1. Long filenames are stored on disk in Unicode format.
mount -t cifs //115.68.27.XX/Backup /win-share -o username=administrator -o password=ºñ¹Ð¹øÈ£ -o iocharset=cp949
[root@localhost ~]# df -Th
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda3 ext3 2.0G 866M 1015M 47% /
/dev/sda9 ext3 49G 816M 46G 2% /home
/dev/sda8 ext3 996M 34M 911M 4% /tmp
/dev/sda7 ext3 4.3G 3.1G 1.1G 75% /usr
/dev/sda6 ext3 4.8G 515M 4.0G 12% /var
/dev/sda5 ext3 9.5G 3.6G 5.5G 40% /usr/local
/dev/sda1 ext3 99M 26M 69M 27% /boot
tmpfs tmpfs 982M 0 982M 0% /dev/shm
//115.68.27.77/Backup
cifs 60G 54G 7.0G 89% /win-share
/etc/fstab ¼öÁ¤À¸·Î ¸®ºÎÆýÿ¡µµ ÀÚµ¿ ¸¶¿îÆ®
LABEL=/ / ext3 defaults 1 1
LABEL=/home /home ext3 defaults 1 2
LABEL=/tmp /tmp ext3 defaults 1 2
LABEL=/usr /usr ext3 defaults 1 2
LABEL=/var /var ext3 defaults 1 2
LABEL=/usr/local /usr/local ext3 defaults 1 2
LABEL=/boot1 /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SWAP-sda2 swap swap defaults 0 0
//115.68.27.XX/Backup /win-share cifs username=°èÁ¤,password=ºñ¹ø,iocharset=cp949 0 0