1.實(shí)驗(yàn)?zāi)康?/strong>
(1)了解SMB和NETBIOS的基本原理
(2)掌握Windows和Linux之間,Linux系統(tǒng)之間文件共享的基本方法。
2.實(shí)驗(yàn)內(nèi)容
(1)安裝samba服務(wù)器。
(2)配置samba服務(wù)器的安全級(jí)別為用戶級(jí)。
(3)配置用戶的共享。
(4)測(cè)試Windows和Linux之間的文件共享。
(5)測(cè)試Linux用戶之間的文件共享。
3.實(shí)驗(yàn)環(huán)境
(1)高檔PC
(2)Windows 10操作系統(tǒng)
(3)VMware15
(4)CentOS-7x86_64
4.實(shí)驗(yàn)過(guò)程
(1)按照附錄1完成網(wǎng)絡(luò)配置
(2)安裝samba文件
- 檢測(cè)系統(tǒng)內(nèi)部是否已經(jīng)安裝好samba文件
#rpm –qa | grep samba
- 如果顯示類似如下的版本信息,則證明系統(tǒng)內(nèi)已經(jīng)安裝好 samba 服務(wù)
- ?如果沒(méi)有提示上述信息,則要安裝對(duì)應(yīng)的包。
# yum install samba
(3)指定samba在開(kāi)機(jī)啟動(dòng)
# systemctl enable smb
(4)配置/etc/samba/smb.conf配置文件
- 利用vi文本編輯器打開(kāi)配置文件/etc/samba/smb.conf
# vi /etc/samba/smb.conf
- 配置 global 全局變量區(qū)域(只需要找到相應(yīng)的變量修改即可,如果該變量所在的行用分號(hào)“;”注釋掉,則將分號(hào)去掉。沒(méi)有該變量就手動(dòng)添加)
[global]
security = user ;文檔中存在多個(gè) security 變量,只需其中一個(gè)有效即可。
workgroup = wyu :配置文件中所有等號(hào)前后加一個(gè)空格
netbios name = linux ;建議采用 linux+學(xué)號(hào)的方式,比如 linux25
;調(diào)試日志
log file = /var/log/samba/smbd.log
log level = 2 ; 一共有 10 個(gè)級(jí)別,2 是 LOG_NOTICE,3 是 LOG_INFO
max log size = 50 ; 日志文件最大大小,單位 KB
(5)設(shè)置文件共享
- 設(shè)置Linux普通用戶宿主目錄文件共享(配置文件的默認(rèn)設(shè)置)
[homes]
comment = Home Directories #對(duì) homes 的注釋,以下略寫(xiě)
browserable = No
writable = Yes
- ?設(shè)置匿名用戶目錄(在配置文件中最后的地方添加即可)
[tmp]
path = /tmp
read only = No
public = Yes
- 設(shè)置用戶組share的共享目錄(在配置文件中最后的地方添加即可)
[share]
read list = @share
write list = @share
public = No
browseable = Yes
writable = Yes
create mask = 0664
directory mask = 0770
path=/home/share
- 保存該文本文件,重啟 samba 服務(wù)
# systemctl restart smb
- 新建組 share,新建用戶 mary,john 和 guest
# useradd mary
# passwd mary
# useradd john
# passwd john
# useradd guest
# passwd guest
- 新建組 share,并且將用戶 mary 和 john 加入 share 組中
# groupadd share
# usermod -G share mary
# usermod -G share john
將 mary,john,guest 加入到 smbpasswd 文件
# smbpasswd -a mary
# smbpasswd -a john
# smbpasswd -a guest
在/home 目錄下新建目錄 share,將其組屬性改成 share 組
# mkdir -p /home/share
# chown .share /home/share 注意:第一個(gè) share 前有一個(gè)“.”
# chmod 770 /home/share
重新啟動(dòng)服務(wù)
systemctl restart smb.service
(6)Windows 和 Linux 互聯(lián)測(cè)試
(6.1)禁用 SeLinux(實(shí)驗(yàn) 1-5 均需要禁用 SElinux)
- 先測(cè)試 Selinux 的設(shè)置,如果處于 Enforcing 狀態(tài),修改為 permissive 或者 disabled。具體如下:
# getenforce
- ?如果輸出“Enforcing”,則輸入下面的命令
# setenforce 0
(6.2)?禁用防火墻 firewalld(實(shí)驗(yàn) 1-5 均需要禁用 firewalld)
- 先查看防火墻的運(yùn)行狀態(tài)
# systemctl is-active firewalld.service
- 輸出 active(活躍),inactive(不活躍)
- 若處于 active 狀態(tài),則禁用。
# systemctl stop firewalld.service
以上(6.1)(6.2)兩個(gè)命令重啟后無(wú)效,需要重新設(shè)置。
(6.3)通過(guò) Linux 客戶端訪問(wèn) Linux 服務(wù)器共享文件,則先在 Linux 的控制臺(tái)上輸入如下命令查看主機(jī) 172.16.50.1 的共享信息
# smbclient -L //172.16.99.1 -U mary
若要訪問(wèn)share目錄,則輸入如下命令:
# smbclient -c ls //172.16.99.1/share -U mary
(6.4)通過(guò) Windows 訪問(wèn) Linux
右擊“我的電腦”,左鍵單擊映射網(wǎng)絡(luò)驅(qū)動(dòng)器,在文件夾方框內(nèi)按如下格式填寫(xiě)\\172.16.99.1\share ,如下圖所示。(假設(shè) 172.16.99.1 是Linux服務(wù)器的地址)
(7)使用 smbmount 命令掛載遠(yuǎn)程共享
(7.1)創(chuàng)建掛載點(diǎn)
# mkdir -p /mnt/smb/win
?(7.2)將遠(yuǎn)程共享 share 掛載到本地 /mnt/smb/win 目錄
# mount.cifs -o user=mary //172.16.99.1/share /mnt/smb/win/
?(7.3)進(jìn)入掛載點(diǎn)
?(7.4)用 mount 命令查看掛裝表的內(nèi)容
# mount
?(7.5)用 mount 命令查看掛裝表的內(nèi)容?
5.實(shí)驗(yàn)的總結(jié)
除了安裝samba包之外,還需要安裝samba-client和cifs
smb.conf文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-712543.html
# See smb.conf.example for a more detailed config file or
# read the smb.conf manpage.
# Run 'testparm' to verify the config is correct after
# you modified it.
[global]
workgroup = wyu
security = user
netbios name = linux40
log file = /var/log/samba/smbd.log
log level = 2
max log size = 50
passdb backend = tdbsam
printing = cups
printcap name = cups
load printers = yes
cups options = raw
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
writable = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @printadmin root
force group = @printadmin
create mask = 0664
directory mask = 0775
[tmp]
path = /tmp
read only = No
public = Yes
[share]
read list = @share
write list = @share
public = No
browseable = Yes
writable = Yes
create mask = 0664
directory mask = 0770
path = /home/share
smb.log?文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-712543.html
[2020/10/11 14:30:06.917095, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[homes]"
[2020/10/11 14:30:06.917159, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[printers]"
[2020/10/11 14:30:06.917195, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[print$]"
[2020/10/11 14:30:06.917237, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[tmp]"
[2020/10/11 14:30:06.917267, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[share]"
[2020/10/11 14:30:06.918513, 2] ../../source3/lib/interface.c:345(add_interface)
added interface ens33 ip=172.16.40.1 bcast=172.16.40.255 netmask=255.255.255.0
[2020/10/11 14:30:06.918542, 2] ../../source3/lib/interface.c:345(add_interface)
added interface ens37 ip=192.168.91.128 bcast=192.168.91.255 netmask=255.255.255.0
[2020/10/11 14:30:06.918551, 2] ../../source3/lib/interface.c:345(add_interface)
added interface virbr0 ip=192.168.122.1 bcast=192.168.122.255 netmask=255.255.255.0
[2020/10/11 14:30:06.920959, 1] ../../source3/profile/profile.c:51(set_profile_level)
INFO: Profiling turned OFF from pid 2970
[2020/10/11 14:30:06.921843, 2] ../../source3/passdb/pdb_interface.c:161(make_pdb_method_name)
No builtin backend found, trying to load plugin
[2020/10/11 14:30:06.945047, 2] ../../lib/tdb_wrap/tdb_wrap.c:64(tdb_wrap_log)
tdb(/var/lib/samba/registry.tdb): tdb_open_ex: could not open file /var/lib/samba/registry.tdb: 沒(méi)有那個(gè)文件或目錄
[2020/10/11 14:30:06.958458, 2] ../../lib/tdb_wrap/tdb_wrap.c:64(tdb_wrap_log)
tdb(/var/lib/samba/account_policy.tdb): tdb_open_ex: could not open file /var/lib/samba/account_policy.tdb: 沒(méi)有那個(gè)文件或目錄
[2020/10/11 14:30:06.958579, 2] ../../source3/passdb/account_pol.c:355(account_policy_get)
account_policy_get: tdb_fetch_uint32_t failed for type 1 (min password length), returning 0
[2020/10/11 14:30:06.958596, 2] ../../source3/passdb/account_pol.c:355(account_policy_get)
account_policy_get: tdb_fetch_uint32_t failed for type 2 (password history), returning 0
[2020/10/11 14:30:06.958605, 2] ../../source3/passdb/account_pol.c:355(account_policy_get)
account_policy_get: tdb_fetch_uint32_t failed for type 3 (user must logon to change password), returning 0
[2020/10/11 14:30:06.958613, 2] ../../source3/passdb/account_pol.c:355(account_policy_get)
account_policy_get: tdb_fetch_uint32_t failed for type 4 (maximum password age), returning 0
[2020/10/11 14:30:06.958620, 2] ../../source3/passdb/account_pol.c:355(account_policy_get)
account_policy_get: tdb_fetch_uint32_t failed for type 5 (minimum password age), returning 0
[2020/10/11 14:30:06.958627, 2] ../../source3/passdb/account_pol.c:355(account_policy_get)
account_policy_get: tdb_fetch_uint32_t failed for type 6 (lockout duration), returning 0
[2020/10/11 14:30:06.958634, 2] ../../source3/passdb/account_pol.c:355(account_policy_get)
account_policy_get: tdb_fetch_uint32_t failed for type 7 (reset count minutes), returning 0
[2020/10/11 14:30:06.958641, 2] ../../source3/passdb/account_pol.c:355(account_policy_get)
account_policy_get: tdb_fetch_uint32_t failed for type 8 (bad lockout attempt), returning 0
[2020/10/11 14:30:06.958648, 2] ../../source3/passdb/account_pol.c:355(account_policy_get)
account_policy_get: tdb_fetch_uint32_t failed for type 9 (disconnect time), returning 0
[2020/10/11 14:30:06.958655, 2] ../../source3/passdb/account_pol.c:355(account_policy_get)
account_policy_get: tdb_fetch_uint32_t failed for type 10 (refuse machine password change), returning 0
[2020/10/11 14:30:06.962536, 1] ../../source3/passdb/pdb_tdb.c:543(tdbsam_open)
tdbsam_open: Converting version 0.0 database to version 4.0.
[2020/10/11 14:30:06.962710, 1] ../../source3/passdb/pdb_tdb.c:304(tdbsam_convert_backup)
tdbsam_convert_backup: updated /var/lib/samba/private/passdb.tdb file.
[2020/10/11 14:30:06.962753, 2] ../../source3/lib/util_tdb.c:279(tdb_log)
tdb(/var/lib/samba/winbindd_idmap.tdb): tdb_open_ex: could not open file /var/lib/samba/winbindd_idmap.tdb: 沒(méi)有那個(gè)文件或目錄
[2020/10/11 14:30:06.969814, 0] ../../lib/util/become_daemon.c:136(daemon_ready)
daemon_ready: daemon 'smbd' finished starting up and ready to serve connections
[2020/10/11 14:30:06.992873, 1] ../../source3/printing/printer_list.c:234(printer_list_get_last_refresh)
Failed to fetch record!
[2020/10/11 14:30:06.993069, 2] ../../source3/smbd/server.c:1415(smbd_parent_loop)
waiting for connections
[2020/10/11 14:30:07.003805, 2] ../../lib/util/tevent_debug.c:66(samba_tevent_debug)
samba_tevent: EPOLL_CTL_DEL EBADF for fde[0x55c024d44cd0] mpx_fde[(nil)] fd[16] - disabling
[2020/10/11 14:42:37.104664, 1] ../../source3/lib/messages.c:899(send_all_fn)
send_all_fn: messaging_send_buf to 3193 failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2020/10/11 14:42:37.104795, 2] ../../lib/util/tevent_debug.c:66(samba_tevent_debug)
samba_tevent: EPOLL_CTL_DEL EBADF for fde[0x55c024d44cd0] mpx_fde[(nil)] fd[16] - disabling
[2020/10/11 14:45:07.002966, 2] ../../source3/smbd/server.c:837(remove_child_pid)
Could not find child 3358 -- ignoring
[2020/10/11 14:50:23.242144, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[homes]"
[2020/10/11 14:50:23.242243, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[printers]"
[2020/10/11 14:50:23.242281, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[print$]"
[2020/10/11 14:50:23.242322, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[tmp]"
[2020/10/11 14:50:23.242364, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[share]"
[2020/10/11 14:50:23.243629, 2] ../../source3/lib/interface.c:345(add_interface)
added interface ens33 ip=172.16.40.1 bcast=172.16.40.255 netmask=255.255.255.0
[2020/10/11 14:50:23.243657, 2] ../../source3/lib/interface.c:345(add_interface)
added interface ens37 ip=192.168.91.128 bcast=192.168.91.255 netmask=255.255.255.0
[2020/10/11 14:50:23.243665, 2] ../../source3/lib/interface.c:345(add_interface)
added interface virbr0 ip=192.168.122.1 bcast=192.168.122.255 netmask=255.255.255.0
[2020/10/11 14:50:23.246253, 1] ../../source3/profile/profile.c:51(set_profile_level)
INFO: Profiling turned OFF from pid 3770
[2020/10/11 14:50:23.246986, 2] ../../source3/passdb/pdb_interface.c:161(make_pdb_method_name)
No builtin backend found, trying to load plugin
[2020/10/11 14:50:23.267425, 0] ../../lib/util/become_daemon.c:136(daemon_ready)
daemon_ready: daemon 'smbd' finished starting up and ready to serve connections
[2020/10/11 14:50:23.286645, 1] ../../source3/printing/printer_list.c:234(printer_list_get_last_refresh)
Failed to fetch record!
[2020/10/11 14:50:23.286713, 2] ../../source3/smbd/server.c:1415(smbd_parent_loop)
waiting for connections
[2020/10/11 14:50:23.303029, 1] ../../source3/lib/messages.c:899(send_all_fn)
send_all_fn: messaging_send_buf to 2972 failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2020/10/11 14:50:23.303647, 1] ../../source3/lib/messages.c:899(send_all_fn)
send_all_fn: messaging_send_buf to 2973 failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2020/10/11 14:50:23.304144, 1] ../../source3/lib/messages.c:899(send_all_fn)
send_all_fn: messaging_send_buf to 3364 failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2020/10/11 14:50:23.304325, 1] ../../source3/lib/messages.c:899(send_all_fn)
send_all_fn: messaging_send_buf to 3414 failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2020/10/11 14:50:23.304575, 1] ../../source3/lib/messages.c:899(send_all_fn)
send_all_fn: messaging_send_buf to 3479 failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2020/10/11 14:50:23.304669, 2] ../../lib/util/tevent_debug.c:66(samba_tevent_debug)
samba_tevent: EPOLL_CTL_DEL EBADF for fde[0x557d7162b1a0] mpx_fde[(nil)] fd[16] - disabling
[2020/10/11 14:56:11.602732, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[homes]"
[2020/10/11 14:56:11.602796, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[printers]"
[2020/10/11 14:56:11.602863, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[print$]"
[2020/10/11 14:56:11.602908, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[tmp]"
[2020/10/11 14:56:11.602936, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[share]"
[2020/10/11 14:56:11.603894, 2] ../../source3/lib/interface.c:345(add_interface)
added interface ens33 ip=172.16.40.1 bcast=172.16.40.255 netmask=255.255.255.0
[2020/10/11 14:56:11.603921, 2] ../../source3/lib/interface.c:345(add_interface)
added interface ens37 ip=192.168.91.128 bcast=192.168.91.255 netmask=255.255.255.0
[2020/10/11 14:56:11.603930, 2] ../../source3/lib/interface.c:345(add_interface)
added interface virbr0 ip=192.168.122.1 bcast=192.168.122.255 netmask=255.255.255.0
[2020/10/11 14:56:11.605999, 1] ../../source3/profile/profile.c:51(set_profile_level)
INFO: Profiling turned OFF from pid 4258
[2020/10/11 14:56:11.606700, 2] ../../source3/passdb/pdb_interface.c:161(make_pdb_method_name)
No builtin backend found, trying to load plugin
[2020/10/11 14:56:11.623183, 0] ../../lib/util/become_daemon.c:136(daemon_ready)
daemon_ready: daemon 'smbd' finished starting up and ready to serve connections
[2020/10/11 14:56:11.638204, 1] ../../source3/printing/printer_list.c:234(printer_list_get_last_refresh)
Failed to fetch record!
[2020/10/11 14:56:11.638272, 2] ../../source3/smbd/server.c:1415(smbd_parent_loop)
waiting for connections
[2020/10/11 14:56:11.656495, 1] ../../source3/lib/messages.c:899(send_all_fn)
send_all_fn: messaging_send_buf to 2972 failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2020/10/11 14:56:11.656902, 1] ../../source3/lib/messages.c:899(send_all_fn)
send_all_fn: messaging_send_buf to 2973 failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2020/10/11 14:56:11.657209, 1] ../../source3/lib/messages.c:899(send_all_fn)
send_all_fn: messaging_send_buf to 3364 failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2020/10/11 14:56:11.657404, 1] ../../source3/lib/messages.c:899(send_all_fn)
send_all_fn: messaging_send_buf to 3414 failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2020/10/11 14:56:11.657595, 1] ../../source3/lib/messages.c:899(send_all_fn)
send_all_fn: messaging_send_buf to 3479 failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2020/10/11 14:56:11.657622, 1] ../../source3/lib/messages.c:899(send_all_fn)
send_all_fn: messaging_send_buf to 3772 failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2020/10/11 14:56:11.657643, 1] ../../source3/lib/messages.c:899(send_all_fn)
send_all_fn: messaging_send_buf to 3773 failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2020/10/11 14:56:11.657731, 2] ../../lib/util/tevent_debug.c:66(samba_tevent_debug)
samba_tevent: EPOLL_CTL_DEL EBADF for fde[0x5601900371a0] mpx_fde[(nil)] fd[16] - disabling
[2020/10/11 15:08:35.849748, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[homes]"
[2020/10/11 15:08:35.850320, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[printers]"
[2020/10/11 15:08:35.850365, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[print$]"
[2020/10/11 15:08:35.850412, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[tmp]"
[2020/10/11 15:08:35.850442, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[share]"
[2020/10/11 15:08:35.853937, 2] ../../source3/auth/auth.c:316(auth_check_ntlm_password)
check_ntlm_password: authentication for user [mary] -> [mary] -> [mary] succeeded
[2020/10/11 15:08:35.867740, 2] ../../source3/smbd/reply.c:705(reply_special)
netbios connect: name1=172.16.40.1 0x20 name2=LINUX40 0x0
[2020/10/11 15:08:35.867830, 2] ../../source3/smbd/reply.c:746(reply_special)
netbios connect: local=172.16.40.1 remote=linux40, name type = 0
[2020/10/11 15:08:35.870811, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[homes]"
[2020/10/11 15:08:35.870866, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[printers]"
[2020/10/11 15:08:35.870899, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[print$]"
[2020/10/11 15:08:35.870936, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[tmp]"
[2020/10/11 15:08:35.870960, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[share]"
[2020/10/11 15:08:35.871498, 2] ../../source3/auth/auth.c:316(auth_check_ntlm_password)
check_ntlm_password: authentication for user [mary] -> [mary] -> [mary] succeeded
[2020/10/11 15:08:41.747976, 1] ../../source3/lib/messages.c:899(send_all_fn)
send_all_fn: messaging_send_buf to 2972 failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2020/10/11 15:08:41.748404, 1] ../../source3/lib/messages.c:899(send_all_fn)
send_all_fn: messaging_send_buf to 2973 failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2020/10/11 15:08:41.748795, 1] ../../source3/lib/messages.c:899(send_all_fn)
send_all_fn: messaging_send_buf to 3364 failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2020/10/11 15:08:41.749115, 1] ../../source3/lib/messages.c:899(send_all_fn)
send_all_fn: messaging_send_buf to 3414 failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2020/10/11 15:08:41.749422, 1] ../../source3/lib/messages.c:899(send_all_fn)
send_all_fn: messaging_send_buf to 3479 failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2020/10/11 15:08:41.749645, 1] ../../source3/lib/messages.c:899(send_all_fn)
send_all_fn: messaging_send_buf to 3772 failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2020/10/11 15:08:41.749909, 1] ../../source3/lib/messages.c:899(send_all_fn)
send_all_fn: messaging_send_buf to 3773 failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2020/10/11 15:08:41.750552, 1] ../../source3/lib/messages.c:899(send_all_fn)
send_all_fn: messaging_send_buf to 5072 failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2020/10/11 15:08:41.750579, 2] ../../lib/util/tevent_debug.c:66(samba_tevent_debug)
samba_tevent: EPOLL_CTL_DEL EBADF for fde[0x5601900371a0] mpx_fde[(nil)] fd[16] - disabling
[2020/10/11 15:11:11.685861, 2] ../../source3/smbd/server.c:837(remove_child_pid)
Could not find child 5235 -- ignoring
[2020/10/11 15:18:23.423523, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[homes]"
[2020/10/11 15:18:23.423743, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[printers]"
[2020/10/11 15:18:23.423772, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[print$]"
[2020/10/11 15:18:23.423808, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[tmp]"
[2020/10/11 15:18:23.423832, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[share]"
[2020/10/11 15:18:23.424922, 2] ../../source3/auth/auth.c:316(auth_check_ntlm_password)
check_ntlm_password: authentication for user [mary] -> [mary] -> [mary] succeeded
[2020/10/11 15:18:23.432690, 2] ../../source3/smbd/service.c:851(make_connection_snum)
linux40 (ipv4:172.16.40.1:60254) connect to service share initially as user mary (uid=1005, gid=1007) (pid 5696)
[2020/10/11 15:18:23.440260, 2] ../../source3/smbd/service.c:1131(close_cnum)
linux40 (ipv4:172.16.40.1:60254) closed connection to service share
[2020/10/11 15:20:10.973678, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[homes]"
[2020/10/11 15:20:10.973965, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[printers]"
[2020/10/11 15:20:10.973996, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[print$]"
[2020/10/11 15:20:10.974034, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[tmp]"
[2020/10/11 15:20:10.974058, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[share]"
[2020/10/11 15:20:10.974939, 2] ../../source3/auth/auth.c:316(auth_check_ntlm_password)
check_ntlm_password: authentication for user [mary] -> [mary] -> [mary] succeeded
[2020/10/11 15:20:10.978012, 2] ../../source3/smbd/service.c:851(make_connection_snum)
linux40 (ipv4:172.16.40.1:60256) connect to service share initially as user mary (uid=1005, gid=1007) (pid 5832)
[2020/10/11 15:20:10.981980, 2] ../../source3/smbd/service.c:1131(close_cnum)
linux40 (ipv4:172.16.40.1:60256) closed connection to service share
[2020/10/11 15:21:11.874141, 1] ../../source3/lib/messages.c:899(send_all_fn)
send_all_fn: messaging_send_buf to 5695 failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2020/10/11 15:21:11.874758, 1] ../../source3/lib/messages.c:899(send_all_fn)
send_all_fn: messaging_send_buf to 5831 failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2020/10/11 15:21:11.874788, 2] ../../lib/util/tevent_debug.c:66(samba_tevent_debug)
samba_tevent: EPOLL_CTL_DEL EBADF for fde[0x560190037110] mpx_fde[(nil)] fd[16] - disabling
[2020/10/11 15:23:21.060082, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[homes]"
[2020/10/11 15:23:21.060177, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[printers]"
[2020/10/11 15:23:21.060208, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[print$]"
[2020/10/11 15:23:21.060245, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[tmp]"
[2020/10/11 15:23:21.060270, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[share]"
[2020/10/11 15:23:21.060760, 2] ../../source3/auth/auth.c:334(auth_check_ntlm_password)
check_ntlm_password: Authentication for user [YANG] -> [YANG] FAILED with error NT_STATUS_NO_SUCH_USER, authoritative=1
[2020/10/11 15:23:21.060809, 2] ../../auth/auth_log.c:647(log_authentication_event_human_readable)
Auth: [SMB2,(null)] user [YANGJH]\[YANG] at [日, 11 10月 2020 15:23:21.060793 CST] with [NTLMv2] status [NT_STATUS_NO_SUCH_USER] workstation [YANGJH] remote host [ipv4:172.16.40.100:5710] mapped to [YANGJH]\[YANG]. local host [ipv4:172.16.40.1:445]
{"timestamp": "2020-10-11T15:23:21.061222+0800", "type": "Authentication", "Authentication": {"version": {"major": 1, "minor": 1}, "eventId": 4625, "logonType": 3, "status": "NT_STATUS_NO_SUCH_USER", "localAddress": "ipv4:172.16.40.1:445", "remoteAddress": "ipv4:172.16.40.100:5710", "serviceDescription": "SMB2", "authDescription": null, "clientDomain": "YANGJH", "clientAccount": "YANG", "workstation": "YANGJH", "becameAccount": null, "becameDomain": null, "becameSid": null, "mappedAccount": "YANG", "mappedDomain": "YANGJH", "netlogonComputer": null, "netlogonTrustAccount": null, "netlogonNegotiateFlags": "0x00000000", "netlogonSecureChannelType": 0, "netlogonTrustAccountSid": null, "passwordType": "NTLMv2", "duration": 5293}}
[2020/10/11 15:23:37.829519, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[homes]"
[2020/10/11 15:23:37.829607, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[printers]"
[2020/10/11 15:23:37.829636, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[print$]"
[2020/10/11 15:23:37.829672, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[tmp]"
[2020/10/11 15:23:37.829696, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[share]"
[2020/10/11 15:23:37.831404, 2] ../../source3/auth/auth.c:316(auth_check_ntlm_password)
check_ntlm_password: authentication for user [mary] -> [mary] -> [mary] succeeded
[2020/10/11 15:23:37.840721, 2] ../../source3/smbd/service.c:851(make_connection_snum)
yangjh (ipv4:172.16.40.100:5713) connect to service share initially as user mary (uid=1005, gid=1007) (pid 6067)
[2020/10/11 15:26:11.718233, 2] ../../source3/smbd/server.c:837(remove_child_pid)
Could not find child 6260 -- ignoring
[2020/10/11 15:27:37.585791, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[homes]"
[2020/10/11 15:27:37.585872, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[printers]"
[2020/10/11 15:27:37.585902, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[print$]"
[2020/10/11 15:27:37.585938, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[tmp]"
[2020/10/11 15:27:37.585967, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[share]"
[2020/10/11 15:27:37.587005, 2] ../../source3/auth/auth.c:316(auth_check_ntlm_password)
check_ntlm_password: authentication for user [mary] -> [mary] -> [mary] succeeded
[2020/10/11 15:27:37.609960, 2] ../../source3/smbd/service.c:851(make_connection_snum)
(ipv4:172.16.40.1:60258) connect to service share initially as user mary (uid=1005, gid=1007) (pid 6370)
[2020/10/11 15:33:41.937227, 2] ../../lib/util/tevent_debug.c:66(samba_tevent_debug)
samba_tevent: EPOLL_CTL_DEL EBADF for fde[0x5601900353e0] mpx_fde[(nil)] fd[16] - disabling
[2020/10/11 15:41:11.761800, 2] ../../source3/smbd/server.c:837(remove_child_pid)
Could not find child 7264 -- ignoring
[2020/10/11 15:44:00.858884, 2] ../../source3/smbd/service.c:1131(close_cnum)
(ipv4:172.16.40.1:60258) closed connection to service share
[2020/10/11 15:45:46.229500, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[homes]"
[2020/10/11 15:45:46.229593, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[printers]"
[2020/10/11 15:45:46.229627, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[print$]"
[2020/10/11 15:45:46.229662, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[tmp]"
[2020/10/11 15:45:46.229684, 2] ../../source3/param/loadparm.c:2803(lp_do_section)
Processing section "[share]"
[2020/10/11 15:45:46.230623, 2] ../../source3/auth/auth.c:316(auth_check_ntlm_password)
check_ntlm_password: authentication for user [mary] -> [mary] -> [mary] succeeded
[2020/10/11 15:45:46.233804, 2] ../../source3/smbd/service.c:851(make_connection_snum)
(ipv4:172.16.40.1:60260) connect to service share initially as user mary (uid=1005, gid=1007) (pid 7621)
[2020/10/11 15:46:11.988168, 2] ../../lib/util/tevent_debug.c:66(samba_tevent_debug)
samba_tevent: EPOLL_CTL_DEL EBADF for fde[0x560190036e50] mpx_fde[(nil)] fd[16] - disabling
[2020/10/11 15:47:10.780679, 2] ../../source3/smbd/service.c:1131(close_cnum)
(ipv4:172.16.40.1:60260) closed connection to service share
到了這里,關(guān)于安裝samba服務(wù)器的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!