安装samba服务器

1.实验目的

(1)了解SMB和NETBIOS的基本原理

(2)掌握Windows和Linux之间,Linux系统之间文件共享的基本方法。

2.实验内容

(1)安装samba服务器。

(2)配置samba服务器的安全级别为用户级。

(3)配置用户的共享。

(4)测试Windows和Linux之间的文件共享。

(5)测试Linux用户之间的文件共享。

3.实验环境

(1)高档PC

(2)Windows 10操作系统

(3)VMware15

(4)CentOS-7x86_64

4.实验过程

(1)按照附录1完成网络配置

(2)安装samba文件

  • 检测系统内部是否已经安装好samba文件
#rpm –qa | grep samba
  • 如果显示类似如下的版本信息,则证明系统内已经安装好 samba 服务

  •  如果没有提示上述信息,则要安装对应的包。
# yum install samba

(3)指定samba在开机启动

# systemctl enable smb

(4)配置/etc/samba/smb.conf配置文件

  • 利用vi文本编辑器打开配置文件/etc/samba/smb.conf
# vi /etc/samba/smb.conf
  • 配置 global 全局变量区域(只需要找到相应的变量修改即可,如果该变量所在的行用分号“;”注释掉,则将分号去掉。没有该变量就手动添加)
[global]
security = user ;文档中存在多个 security 变量,只需其中一个有效即可。
workgroup = wyu :配置文件中所有等号前后加一个空格
netbios name = linux ;建议采用 linux+学号的方式,比如 linux25
;调试日志
log file = /var/log/samba/smbd.log
log level = 2 ; 一共有 10 个级别,2 是 LOG_NOTICE,3 是 LOG_INFO
max log size = 50 ; 日志文件最大大小,单位 KB

(5)设置文件共享

  • 设置Linux普通用户宿主目录文件共享(配置文件的默认设置)
[homes]
comment = Home Directories #对 homes 的注释,以下略写
browserable = No
writable = Yes
  •  设置匿名用户目录(在配置文件中最后的地方添加即可)
[tmp]
path = /tmp
read only = No
public = Yes
  • 设置用户组share的共享目录(在配置文件中最后的地方添加即可)
[share]read list = @sharewrite list = @sharepublic = Nobrowseable = Yeswritable = Yescreate mask = 0664directory mask = 0770path=/home/share
  • 保存该文本文件,重启 samba 服务
 # 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 注意:第一个 share 前有一个“.”
# chmod 770 /home/share

重新启动服务

systemctl restart smb.service

(6)Windows 和 Linux 互联测试

(6.1)禁用 SeLinux(实验 1-5 均需要禁用 SElinux)

  • 先测试 Selinux 的设置,如果处于 Enforcing 状态,修改为 permissive 或者 disabled。具体如下:
# getenforce
  •  如果输出“Enforcing”,则输入下面的命令
# setenforce 0

(6.2) 禁用防火墙 firewalld(实验 1-5 均需要禁用 firewalld)

  • 先查看防火墙的运行状态
# systemctl is-active firewalld.service
  • 输出 active(活跃),inactive(不活跃)
  • 若处于 active 状态,则禁用。
# systemctl stop firewalld.service

以上(6.1)(6.2)两个命令重启后无效,需要重新设置。

(6.3)通过 Linux 客户端访问 Linux 服务器共享文件,则先在 Linux 的控制台上输入如下命令查看主机 172.16.50.1 的共享信息

# smbclient -L //172.16.99.1 -U mary

若要访问share目录,则输入如下命令:

# smbclient -c ls //172.16.99.1/share -U mary

(6.4)通过 Windows 访问 Linux

右击“我的电脑”,左键单击映射网络驱动器,在文件夹方框内按如下格式填写\\172.16.99.1\share ,如下图所示。(假设 172.16.99.1 是Linux服务器的地址)

(7)使用 smbmount 命令挂载远程共享

(7.1)创建挂载点

# mkdir -p /mnt/smb/win

 (7.2)将远程共享 share 挂载到本地 /mnt/smb/win 目录

# mount.cifs -o user=mary //172.16.99.1/share /mnt/smb/win/

 (7.3)进入挂载点

 (7.4)用 mount 命令查看挂装表的内容

# mount

 (7.5)用 mount 命令查看挂装表的内容 

5.实验的总结

除了安装samba包之外,还需要安装samba-client和cifs

smb.conf

# 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 = wyusecurity = usernetbios name = linux40log file = /var/log/samba/smbd.loglog level = 2max log size = 50passdb backend = tdbsamprinting = cupsprintcap name = cupsload printers = yescups options = raw[homes]comment = Home Directoriesvalid users = %S, %D%w%Sbrowseable = Noread only = Noinherit acls = Yeswritable = Yes[printers]comment = All Printerspath = /var/tmpprintable = Yescreate mask = 0600browseable = No[print$]comment = Printer Driverspath = /var/lib/samba/driverswrite list = @printadmin rootforce group = @printadmincreate mask = 0664directory mask = 0775[tmp]path = /tmpread only = Nopublic = Yes[share]read list = @sharewrite list = @sharepublic = Nobrowseable = Yeswritable = Yescreate mask = 0664directory mask = 0770path = /home/share

smb.log 

[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: 没有那个文件或目录
[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: 没有那个文件或目录
[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: 没有那个文件或目录
[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

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/74679.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

unity 控制Dropdown的Arrow箭头变化

Dropdown打开下拉菜单会以“Template”为模板创建一个Dropdown List,在“Template”上添加一个脚本在Start()中执行下拉框打开时的操作,在OnDestroy()中执行下拉框收起时的操作即可。 效果代码如下用于控制Arrow旋转可以根据自己的想法进行修改&#xff…

算法:移除数组中的val的所有元素---双指针[2]

文章来源: https://blog.csdn.net/weixin_45630258/article/details/132689237 欢迎各位大佬指点、三连 1、题目: 给你一个数组 nums和一个值 val,你需要原地移除所有数值等于 val 的元素,并返回移除后数组的新长度。 不要使用…

【Proteus仿真】【STM32单片机】血压心率血氧体温蓝牙

文章目录 一、功能简介二、软件设计三、实验现象联系作者 一、功能简介 系统运行后,LCD1604液晶显示心率、血氧、血压和体温,及其阈值;可通过K3键进入阈值设置模式,K1和K2加减调节,K4确定;当检测心率、血氧…

linux 多重启动grub2详解

https://www.gnu.org/software/grub/manual/grub/grub.pdf

Linux C进程间通信(IPC)

概述 每个进程有独立的进程空间: 好处————安全 缺点:开销大(独立的地址空间);进程的通信更加困难(对其他进程的操作开销也大) 广义上的进程间通信: A进程写给文件/数据库&am…

Python测试框架 Pytest —— mock使用(pytest-mock)

pytest-mock 安装:pip install pytest-mock 这里的mock和unittest的mock基本上都是一样的,唯一的区别在于pytest.mock需要导入mock对象的详细路径。 # weateher_r.py class Mock_weather():def weather(self):天气接口passdef weather_result(self):模…

【算法训练-链表 七】【排序】:链表排序、链表的奇偶重排、重排链表

废话不多说,喊一句号子鼓励自己:程序员永不失业,程序员走向架构!本篇Blog的主题是【链表的排序】,使用【链表】这个基本的数据结构来实现,这个高频题的站点是:CodeTop,筛选条件为&am…

光栅和矢量图像处理:Graphics Mill 11.4.1 Crack

Graphics Mill 是适用于 .NET 和 ASP.NET 开发人员的最强大的成像工具集。它允许用户轻松向 .NET 应用程序添加复杂的光栅和矢量图像处理功能。 光栅图形 加载和保存 JPEG、PNG 和另外 8 种图像格式 调整大小、裁剪、自动修复、色度键和 30 多种其他图像操作 可处理任何尺寸&am…

Blender--》页面布局及基本操作讲解

接下来我会在three.js专栏中分享关于3D建模知识的文章,如果学习three朋友并且想了解和学习3D建模,欢迎关注本专栏,关于这款3D建模软件blender的安装,我在前面的文章已经讲解过了,如果不了解的朋友可以去考考古&#xf…

现货黄金代理好吗?

做黄金代理这个职业好吗?从目前的市场现状来看,其实做黄金代理很不错的。在股票市场中,投资者只能通过买涨进盈利,所以当市场行情不好的时候,股票经纪人的业务将很难展开,而现货黄金投资者不一样&#xff0…

腾讯云服务器CVM标准型S5性能测评和租用费用

腾讯云服务器CVM标准型S5实例具有稳定的计算性能,CVM 2核2G S5活动优惠价格280.8元一年自带1M带宽,15个月313.2元、2核4G配置748.2元15个月,CPU内存配置还可以选择4核8G、8核16G等配置,公网带宽可选1M、3M、5M或10M,百…

Vue中对于指令的介绍

Vue指令 文章目录 Vue指令1、介绍2、指令介绍2.1、v-html2.2、v-show和v-if3.2、v-else 和 v-else-if3.3、v-on3.4、v-bind3.5、v-for3.6、v-for 中的key3.7、v-model 3、指令修饰符3.1、 按键修饰符3.2、 监听v-model修饰符3.3、 事件修饰符 1、介绍 Vue 会根据不同的【指令】…

龙迅LT86102UX HDMI一进二出,支持分辨率4K60HZ

龙迅LT86102UXE 1. 描述 龙迅LT86102UX HDMI2.0 分路器具有符合 HDMI2.0/1.4 规范的 1:2 分路器、最大 6Gbps 高速数据速率、自适应均衡 RX 输入和预强调的 TX 输出,支持长电缆应用,板载无 XTAL,可节省 BOM 成本。 LT86102UX HDM…

Vue 3 基础(二)基础 1

API 参考 1、创建一个 Vue 应用 1.1 应用实例 每个 Vue 应用都是通过 createApp 函数创建一个新的 应用实例: import { createApp } from vueconst app createApp({/* 根组件选项 */ })1.2 根组件 我们传入 createApp 的对象实际上是一个组件,每个…

哈希表的实现(哈希捅)

今天是哈希表的实现&#xff0c;哈希表也是一种数据结构&#xff0c;我个人认为还是比较简单的&#xff0c;先给大家看看我 的实现代码吧&#xff0c;如下&#xff1a; #pragma once #include <iostream> #include <set> #include <map> #include <vecto…

MySQL主从分离读写复制

在高负载的生产环境里&#xff0c;把数据库进行读写分离&#xff0c;能显著提高系统的性能。下面对MySQL的进行读写分离。 试验环境 A机&#xff1a;IP:192.168.0.1 mysql版本&#xff1a;mysql-5.6.4,主数据服务器&#xff08;只写操作&#xff09; B机&#xff1a;IP:192.…

网管实战⑼:配置华为S5720交换机

配置好汇聚交换机后&#xff0c;需要根据单位情况配置具体的接入交换机。 自从2019年12月底配置好交换机后&#xff0c;基本上都没有怎么操作交换机了。那时候使用的是H3C交换机&#xff0c;主要是H3C S7706、H3C S5120、H3C S5130、H3C S5500、H3C S3600等型号的交换机&#x…

Kafka3.0.0版本——消费者(自动提交 offset)

目录 一、自动提交offset的相关参数二、消费者&#xff08;自动提交 offset&#xff09;代码示例 一、自动提交offset的相关参数 官网文档 参数解释 参数描述enable.auto.commi默认值为 true&#xff0c;消费者会自动周期性地向服务器提交偏移量。auto.commit.interval.ms如果…

Ubuntu终端指令

目录 目录 一、基本指令 1.命令行提示符 2.切换用户 3.修改密码 4.查看当前目录下的文件 5.修改文件权限---chmod 6.cd 切换路径 7.touch 8.cat 9.echo 10.mkdir 11. rm/rmdir 二、在线下载软件 1.更新软件源 2.更新软件列表 3.下载软件 三、离线安装软件 1. …

车载软件架构——基础软件供应商开发工具链(一)

车载软件架构——基础软件供应商&开发工具链(一) 我是穿拖鞋的汉子,魔都中坚持长期主义的汽车电子工程师。 老规矩,分享一段喜欢的文字,避免自己成为高知识低文化的工程师: 没有人关注你。也无需有人关注你。你必须承认自己的价值,你不能站在他人的角度来反对自己…