华南俳烁实业有限公司

考試首頁 | 考試用書 | 培訓(xùn)課程 | 模擬考場 | 考試論壇  
  當(dāng)前位置:操作系統(tǒng) > Unix > 文章內(nèi)容
  

freebsd用法配置匯總(4)

 [ 2017年2月1日 ] 【

搭建samba服務(wù)器

# cd /usr/ports/net/samba46 && make install

出現(xiàn)選擇,依照內(nèi)定預(yù)設(shè)值,按TAB選擇OK,再按Enter.

Options for samba 3.0.24,1

[X] LDAP                     With LDAP support

[X] ADS                      With Active Directory support

[X] CUPS                     With CUPS printing support

[X] WINBIND                  With WinBIND support

[X] ACL_SUPPORT              With ACL support

[ ] FAM_SUPPORT              With File Alteration Monitor

[X] SYSLOG                   With Syslog support

[ ] QUOTAS                   With Disk quota support

[X] UTMP                     With UTMP accounting support

[ ] MSDFS                    With MSDFS support

[ ] PAM_SMBPASS              With PAM authentication vs passdb backends

[ ] CLUSTER                  With experimental cluster support

[ ] EXP_MODULES              With experimental modules

[X] POPT                     With system-wide POPT library

[ ] MAX_DEBUG                With maximum debuging

 

# cp /usr/local/etc/smb.conf.default /usr/local/etc/samba.conf \\復(fù)制Samba.conf配置文件

########################以下內(nèi)容可實現(xiàn)用戶自動登錄home目錄##########################

workgroup = WORKGROUP

server string = %h Samba Server

log file = /var/log/samba/%m.log

[homes]

   comment = Home directory for %u on %h

   browseable = no

   writable = yes

   path = /usr/home/%u/

   valid users = %S

##################################################################

編輯/etc/rc.conf添加

winbindd_enable="YES"

samba_enable="YES"

然后添加使用者賬號

# adduser username

設(shè)定samba user database (samba的使用者賬號):

# smbpasswd -a username

/usr/local/etc/rc.d/samba start  //啟動samba服務(wù) 

本文糾錯】【告訴好友】【打印此文】【返回頂部
將考試網(wǎng)添加到收藏夾 | 每次上網(wǎng)自動訪問考試網(wǎng) | 復(fù)制本頁地址,傳給QQ/MSN上的好友 | 申請鏈接 | 意見留言 TOP
關(guān)于本站  網(wǎng)站聲明  廣告服務(wù)  聯(lián)系方式  站內(nèi)導(dǎo)航  考試論壇
Copyright © 2007-2013 中華考試網(wǎng)(Examw.com) All Rights Reserved
额济纳旗| 稷山县| 赣州市| 芦山县| 静宁县| 灵武市| 双桥区| 光山县| 宜黄县| 高青县| 翁牛特旗| 庄河市| 措勤县| 鹤岗市| 涿鹿县| 甘洛县| 安阳市| 洛扎县| 白沙| 东山县| 宜阳县| 荣昌县| 富源县| 城固县| 奇台县| 维西| 双江| 明水县| 横山县| 江川县| 博罗县| 兖州市| 桂东县| 虹口区| 惠来县| 南川市| 绥滨县| 青神县| 苏尼特左旗| 大港区| 南通市|