¹þ¹þ£¬½ñÌìȷʵÊÇСÓгɾ͵ģ¬ÒòΪŪÁËºÃ¾ÃµÄ samba ·þÎñÆ÷ÖÕÓÚÅäÖúÃÁË¡£Ö®Ç°Óà redhat 9 ÉèÖÃsamba·þÎñʱ£¬¾ÍÖ±½ÓÓÃÊó±êµã¼¸µã¾ÍOKÁË£¬ºóÀ´ÓÃfedora £¬ÕÒ²»µ½ËüµÄͼÐλ¯½çÃ棬¾ÍÖ»ÄÜÔÚÎı¾Ä£Ê½ÏÂÉèÖÃÁË£¬È»ºóÓöµ½ºÃ¶àÎÊÌ⣬ÔÚÍøÉϲ»¶ÏµÄËÑÌû×Ó£¬¿´±ðÈ˵ľÑ飬ҲÎÊÁ˲»ÉÙÎÊÌ⣬½ñÌìÖÕÓÚÔÚ´ó¼Ò»ïµÄ°ïÖúÏ°ÑËü¸ã¶¨ÁË£¬ºÃ¿ªÐÄ¡£ÎªÁ˸Ðл´ó¼ÒµÄÎÞ˽·îÏ×£¬ÌصذÑÎÒµÄÊÕ»ñд³öÀ´¸ú´ó¼Ò¹²Í¬·ÖÏí£¬Ï£ÍûÖîλ¿´ÁËÄÜÓÐÊÕ»ñ¡£
ÎÒ×°µÄÕâ¸ö fedora 14 ÒòΪÊÇÔÚÍøÉÏϵģ¬ËùÒÔËƺõ²»ÊǺÜÈ«£¬Ïñredhat 9 ÒòΪÊÇÓùâÅÌ×°µÄ£¬ÀïÃæµÄËùÓÐÈí¼þ°üÎÒ¸øÈ«Ñ¡ÉÏÁË£¬ËùÒÔÒ²¾Íʲô¶¼²»Óð²ÁË£¬¶øÇÒ»¹ÓÐͼÐλ¯½çÃ棬²Ù×÷ÆðÀ´³¬¼¶·½±ã¡£ÔÚ fedora ÀïÃæûÓÐÕÒµ½Í¼Ðλ¯½çÃ棬ËùÒÔºÃÂé·³¡£
¿ªÊ¼»¹²»ÖªµÀûÓа²×°samba £¬È»ºóÊÔÁ˼¸ÊÔ·¢ÏÖ²»ÐУ¬²»ÖªµÀ´ÓºÎÏÂÊÖ£¬¾ÍÔÚȺÀïÎÊ´óϺ£¬´óϺÃÇ»¹ÊǺܸøÁ¦µÄ£¬°ïÎÒÖ§¸÷ÖÖÕУ¬ÔÚ´ËÒ²¸Ðл¸÷λ´óϺµÄ°ïÖú¡£
È»ºó´óϺÃǽÐÎÒ¼ì²éÒ»ÏÂÊÇ·ñ°²×°samba
[root@localhost ~]# rpm -qa | grep samba
samba-winbind-clients-3.5.5-68.fc14.1.i686 £¨¿ªÊ¼Ö»ÓÐÕâÒ»ÐУ¬È»ºó´óÏÀ˵ÎÒûÓа²×°£¬ÓÚÊÇÎҾͿªÊ¼°²×°ÁË£©
samba-common-3.5.8-76.fc14.i686
samba-3.5.8-76.fc14.i686 £¨ÕâÊÇ°²×°Ö®ºóµÄ£¬Õâ¸ö²Å±íʾÊÇsamba ·þÎñÆ÷°²×°³É¹¦£©
Õâ¸ö°²×°ÎÒÒ²ÊÇÕÒÁ˲»ÉÙ×ÊÁϵģ¬Ö®Ç°ÔÚÍøÉÏËѵ½Ò»ÖÖ·½·¨Óà yum °²×°£¬Õâ¸öȷʵÊǺܷ½±ã£¬È»ºóÎÒ¾ÍÖ±½ÓÓà yum -y install samba £¬½á¹û×°Á˼¸´Î¶¼ÊÇײµ½Ò»°ëϵͳ¿¨ËÀÁË£¬Ö»ÄܹصçÔ´À´ÖØÆô£¬ÎÒºÜÄÉÃÆ£¬ºÜÉËÐÄ£¬¾Í·¢ÌùÇó½â´ð£¬È»ºóÓиßÊÖÖ§ÕÐÒªÎÒÏÈ Óà yum search samba ËÑË÷һϠyum Ô´ÀïÓÐÄÄЩ£¬È»ºóÔÙÓÃ
yum -y install samba ,²»¹ý¿ÏÄܵ±Ê±µÄyun ԴûÓиüУ¬Ö»ÓкÜÉÙ£¬ÎÒµ±Ê±Ò²Ã»ÓÐ×Ðϸ¿´µ½µ×ÓÐЩʲô£¬Ö»ÊÇÏÈ yum search samba ÔÙ yum -y install samba
ÔÚÕâÀïÎÒÏȽ¨Òé´ó¼Ò°Ñyum Ô´¸üÐÂÒ»±é£¬ÒòΪÓñ£³Öyum Ô´µÄ¸üоÍÄÜ°²×°±È½ÏºÃµÄÈí¼þÁË£¬ºÇºÇ ¡£µ±È»£¬Èç¹ûÓиßÊÖÖ±½ÓÓà ԴÂë°üÀ´°²×°µÄ»°£¬¾Í¶ÔÎÒÕâÖÖ»¹Ö»ÄÜÓÃyum À´°²×°Èí¼þµÄ·½·¨²»Ð¼Ò»¹ËÁ˺ǡ£ÖÁÓÚyum µÄʹÓ÷½·¨£¬ÎÒÕÒµ½ÁËÒ»¸ö±È½ÏÈ«ÃæµÄ½ÓÊÜ yum µÄʹÓõÄÌû×Ó£¬È»ºó¸´ÖƵ½ÁËÎÒÃÇÂÛ̳À´ÁËÕâ¾ÍÊÇÄǸöÌû×ÓµÄÁ´½Ó//m.ajphoenix.com/bbs/thread-205373-1-1.html
¸üÐÂÁË yum Ö®ºó£¬È»ºóÔÙ yum search samba ÔÚÁгöµÄÈ«²¿ÖÐÑ¡ÔñÄãÒª°²×°µÄ£¬Óà yum -y install samba
================================ Matched: samba ================================
samba-client.i686 : Samba client programs
samba-common.i686 : Files used by both Samba servers and clients
samba-doc.i686 : Documentation for the Samba suite
samba-swat.i686 : The Samba SMB server Web configuration program
samba-winbind.i686 : Samba winbind
samba-winbind-clients.i686 : Samba winbind clients
samba-winbind-krb5-locator.i686 : Samba winbind krb5 locator
samba4.i686 : The Samba4 CIFS and AD client and server suite
samba4-devel.i686 : Developer tools for Samba libraries
samba4-libs.i686 : Samba libraries
system-config-samba.noarch : Samba server configuration tool
system-config-samba-docs.noarch : Documentation for configuring a Samba server
ctdb.i686 : A Clustered Database based on Samba's Trivial Database (TDB)
ncid-samba.noarch : NCID samba module sends caller ID information to windows
: machines
samba.i686 : Server and Client software to interoperate with Windows machines
samba-domainjoin-gui.i686 : Domainjoin GUI
samba-winbind-devel.i686 : Developer tools for the winbind library
samba4-pidl.i686 : Perl IDL compiler
sblim-cmpi-samba.i686 : SBLIM WBEM-SMT Samba
sblim-cmpi-samba-devel.i686 : SBLIM WBEM-SMT Samba - Header Development Files
sblim-cmpi-samba-test.i686 : SBLIM WBEM-SMT Samba - Testcase Files
ctdb-devel.i686 : CTDB clustered database development package
libsmbclient.i686 : The SMB client library
libsmbclient-devel.i686 : Developer tools for the SMB client library
mod_auth_ntlm_winbind.i686 : NTLM authentication for the Apache web server using
: winbind daemon
php-pear-Auth-samba.noarch : Samba support for php-pear-Auth
php-pear-File-SMBPasswd.noarch : Class for managing SAMBA style password files
smbldap-tools.noarch : User and group administration tools for Samba/OpenLDAP
thunar-shares-plugin.i686 : Thunar file manager extension to share files using
: Samba
amanda.i686 : A network-capable tape backup solution
ccache.i686 : C/C++ compiler cache
cifs-utils.i686 : Utilities for mounting and managing CIFS mounts
dbench.i686 : Filesystem load benchmarking tool
distcc.i686 : Distributed C/C++ compilation
distcc-server.i686 : Server for distributed C/C++ compilation
fuse-smb.i686 : FUSE-Filesystem to fast and easy access remote resources via SMB
konq-plugins.i686 : Additional plugins that interact with konqueror
ldb-tools.i686 : Tools to manage LDB files
libldb.i686 : A schema-less, ldap like, API and database
libldb-devel.i686 : Developer tools for the LDB library
libntlm.i686 : NTLM authentication library
libtalloc.i686 : The talloc library
libtalloc-devel.i686 : Developer tools for the Talloc library
libtdb.i686 : The tdb library
libtdb-devel.i686 : Header files need to link the Tdb library
libtevent.i686 : The tevent library
libtevent-devel.i686 : Developer tools for the Tevent library
partimage-server.i686 : Server daemon for remote imaging, much like Ghost
perl-Crypt-SmbHash.noarch : Pure-perl Lanman and NT MD4 hash functions
ppp.i686 : The Point-to-Point Protocol daemon
ppp-devel.i686 : Headers for ppp plugin development
python-dulwich.i686 : A python implementation of the Git file formats and
: protocols
python-smbpasswd.i686 : Python SMB Password Hash Generator Module
python3-smbpasswd.i686 : Python SMB Password Hst Generator Module for Python 3
rsync.i686 : A program for synchronizing files over a network
rzip.i686 : A large-file compression program
sblim-cmpi-dns.i686 : SBLIM WBEM-SMT Dns
sblim-tools-libra.i686 : SBLIM Common Resource Access Library for WBEM-SMT tasks
sblim-tools-libra-devel.i686 : SBLIM Common Resource Access Library for WBEM-SMT
: tasks Header Devel Files
smb4k.i686 : The SMB/CIFS Share Browser for KDE
snort.i686 : Intrusion detection system
tdb-tools.i686 : Developer tools for the Tdb library
ÒÔÉÏÊÇÎÒ yum Ô´ÀïËùÓкÍsamba Óйصģ¬ÎÒÑ¡ÔñÁË°²×°samba.i686 ¡£ÕâÊÇ°²×°¡£×°ºÃÁËÖ®ºó´ó¼Ò¿ÉÒÔÓÃÉÏÃæµÄ½²µÄ¼ì²éÒ»ÏÂÊÇ·ñ°²×°³É¹¦¡£
È»ºó¾ÍÊÇÉèÖÃÓû§ÁË£¬ÔÚÍøÉÏ¿´µ½Ò»ÖÖ·½·¨ÊÇÓà samba -a username µ«ÊÇÎÒÓÃÕâ¸öÌáʾ˵ command not found È»ºóÎҾͺÜÄÉÃÆÁË£¬Ôõô¾ÍÕÒ²»µ½ÄØ£¿¾ÍÔÚȺÀïÎÊ£¬¹Ø¼üʱ¿Ì´óϺ¸øÁ¦£¬½ÐÎÒÓà smbpasswd -a username ¶ÔÁË£¬Õâ¸öÊÇÒª´´½¨ÃÜÂëµÄ£¬¿ÉÒÔ¸úÄãµÇ¼ϵͳÃÜÂë²»Ò»Ñù¡£È»ºó¾Í³öÏÖÒ»´®¿ªÍ·¶¼ÊÇ account_policy_get µÄ ²»¹ý×îºóÒ»¾äÎÒ¶®£¬ÊÇAdded user liveuser(liveuser ÊÇÎÒµÄÓû§Ãû)£¬ÎÒÖªµÀ£¬Óû§Ãû´´½¨³É¹¦¡£
ÕâÊÇÓû§Ãû´´½¨³É¹¦¡£
½ÓÏÂÀ´¾ÍÊÇÅäÖÃsamba ·þÎñÆ÷ÁË¡£ÔÚÕâÀïÎÒ¿´Á˼¸Æª±ðÈËдµÄÌû×Ó£¬µ«ÊǶÔÓÚËûÃÇÄǼò¶ÌµÄ¼¸ÐÐÎÒºÜÄÉÃÆ£¬ÎªÊ²Ã´ÎҵľÍÕâô¶àÄØ£¿È»ºóÓеãÎÞ´ÓÏÂÊÖ£¬»¹ºÃÎÒ×°ÁËÁ½¸öLinuxϵͳ£¬ÆäÖÐÒ»¸öµÄsamba·þÎñ»¹ÊÇÄÜÓõģ¬ºÙºÙ£¬ÎҾͽ«Á½¸öϵͳµÄsmb.conf ×ö¸ö¶Ô±È£¬µ«ÊÇÕâ¸öÒòΪϵͳ²»Ò»Ñù£¬»¹ÊÇÓеãÇø±ð£¬ÓÚÊÇÎÒ¾ÍÔÚÍøÉÏËÑ¿´ÓÐûÓÐ fedora 14 µÄ samba ÅäÖ㬽á¹û»¹ÕæÕÒµ½ÁË£¨»¥ÁªÍø¹ûÈ»À÷º¦£¡£©£¬http://wb127.blog.51cto.com/blog/2232662/509241¾ÍÊÇÕâƪÌû×Ó£¬²»¹ýµ±ÎÒÔÙ°´ÕÕÕâ¸ö¶ÔµÄʱºò£¬²ÅÒâʶµ½ÆäʵȷʵÊÇÖ»ÐèÒª¶Ô¼¸ÐоͿÉÒÔÁË£¬ÒòΪÄÇЩ#¿ªÍ·ºÍ£»¿ªÍ·µÄ¶¼ÊÇ×¢Ê͵ģ¬Õâ¸ö²»¹ÜÔõÑù¶¼ÎÞËùν£¬ËùÒÔÕæÕýÒª¿´µÄ¾Í¼¸ÐУ¬È»ºóÎÒ·¢ÏÖÎҵĸúËûÊÇһģһÑùµÄ£¬ÕæÊÇһģһÑù¡£È»ºóÎҾ͹رշÀ»ðǽ£¬Ö®Ç°¿´µ½±ðµÄÌû×ÓÒ²Ìáµ½¹ýÒª¸ü¸Ä·À»ðǽµÄÉèÖ㬵«ÊÇûÓÐÕâ¸öÀ´µÄ·½±ã£¬ËùÓÐÎÒÍƼö´ó¼Ò°´ÕÕÕâ¸ö·½·¨À´¹Ø±Õ·À»ðǽ ¼´sudo /etc/init.d/iptables stop
È»ºó¾ÍÊǹرÕSELinux £¬Æäʵµ½ÕâÀïÓ¦¸Ã¾Í¿ÉÒÔÓÃsamba ÁË£¬ÎÒÊÔÁË£¨ÆäʵÊÇÎÞÒâÖÐÊԵģ¬ÒòΪÎÒÔÚÉèÖùرÕSELinuxʱ£¬µôÁËÒ»¸öd£¬½á¹û²¢Ã»Óйرգ¬SELinux£©£¬ÄÇΪʲôҪ¹Ø±ÕÄØ£¬´ó¼Ò¶¼ÖªµÀÕâ¸ö SELinux ÊÇÒ»¸ö¼ÓÇ¿LINUX°²È«µÄ×Óϵͳ£¬²»¹Ø±ÕSELinux Äã¿ÉÒÔ¿´µ½Äã¹²ÏíµÄÎļþ¼Ð£¬µ«ÊÇÄã´ò²»¿ªËü£¬»áµ¯³ö´°¿Ú˵ÄãûÓÐȨÏÞ£¬¾ÍËãÊÇÄãchmod 777 Ò²²»ÐУ¬ËùÒÔÒª¹Ø±Õ SELinux
[root@localhost ~]# vi /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
#SELINUX=enforcing £¨ÔÀ´ÕâÐÐÊÇûÓÐ×¢Ê͵ģ¬ÕâÊÇÎÒ¸ÄÁ˵ģ©
SELINUX=disabled £¨ÕâÐÐÊÇÎҼӵģ¬ÊǹرÕSELINUXµÄ£¬ÎÒ¿ªÊ¼¾ÍÊÇÕâÀïµÄd¸øµôÁË£©
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
È»ºó¾ÍÖØÆôSELINUX¾Í¿ÉÒÔÁË£¬¼´Ñ¡ÔñÖØÆôϵͳ»òÕß×¢Ïú£¬ÖÁÓÚÑ¡ÔñÄĸö£¬¶¼¿ÉÒÔ£¬ÎÒÊÇÑ¡Ôñ×¢ÏúµÄ¡£
È»ºó£¬samba ·þÎñ¾Í¿ÉÒÔÓÃÁË¡£ÒÔÉϾÍÊÇÎÒµÄһЩ¾Ñ飬ϣÍûÄܶԴó¼ÒÓÐËù°ïÖú
gky2009514 ÓÚ 2012-12-07 13:08:04·¢±í:
ÐÂÊÖÍê³ÉÈÎÎñ£¬ÇóÏÂÊé¼®~
livip2006 ÓÚ 2012-04-13 09:03:18·¢±í:
pstree|grep mbd
|-nmbd
|-smbd--smbd
#sambaÆô¶¯
linux_fanfan ÓÚ 2011-10-19 23:58:49·¢±í:
Åå·þ£¬Åå·þ£¬ÎÒÒªÏòÄãѧϰ
ÇغÏÁùÒ» ÓÚ 2011-09-05 22:42:15·¢±í:
ѧϰһÏÂÏÂ
xiaoxiongde110 ÓÚ 2011-09-05 20:12:17·¢±í:
ѧϰÁË£¡
wangmingsd ÓÚ 2011-08-24 18:37:10·¢±í:
·Ç³£¸Ðл£¬Êղء£
wangmingsd ÓÚ 2011-08-24 18:37:06·¢±í:
·Ç³£¸Ðл£¬Êղء£
wangmingsd ÓÚ 2011-08-24 18:37:03·¢±í:
·Ç³£¸Ðл£¬Êղء£
tan0620 ÓÚ 2011-08-11 15:32:22·¢±í:
¸Ðл·ÖÏí
tuerqi8 ÓÚ 2011-08-10 18:56:40·¢±í:
¹ãÀ©ÖªÊ¶
nishui333 ÓÚ 2011-08-09 17:16:48·¢±í:
¸Õ¿ªÊ¼ »¹ÔÚ̽Ë÷ÖÐ ¹ãÊÕ֪ʶ
edwardfan ÓÚ 2011-08-08 10:06:42·¢±í:
¸Ðл·ÖÏí£¬Ñ§Ï°Ñ§Ï°
GrowthÕ× ÓÚ 2011-08-07 09:37:46·¢±í:
¸Ðлר¹¥Linux/ARMµÄ·ÖÏí£¬±¾Ìù¼ÓÈëµ½ÂÛ̳¶¥ÖõÄLinuxÓ¦ÓÃË÷ÒýÌùÖÐ
alick ÓÚ 2011-08-06 23:53:37·¢±í:
ÓÐÒ»¸ö¼òµ¥µÄͼÐνçÃæÅäÖÃsamba µÄ¹¤¾ß£¬½Ð system-config-samba£¬
¿ÉÒÔÓÃyum°²×°
SELinux ûÓбØÒª¹Ø¡£ÖÁ¶àÓÐһЩ¾¯¸æ£¬°´ÕÕÌáʾ×ö¾ÍÐÐÁË¡£¿ÉÄÜÐèÒª
restorecon ʲôµÄ¡£
·À»ðǽҲ²»½¨Òé¹Ø¡£ÒªÊ¹ÆäËûµçÄÔ¿ÉÒÔ·ÃÎʱ¾»úsamba¹²Ïí£¬Ö»Ðè´ò¿ª¶ÔÓ¦
µÄ¼¸¸ö¶Ë¿Ú¡£Ö±½ÓÓà iptables ÃüÁ»òÕßͼÐνçÃæµÄ system-config-firewall
À´ÅäÖá£
Segim ÓÚ 2011-08-05 21:18:38·¢±í:
ºÜÇ¿°¡£¬ÊܽÌÁË