Hello,
Compile and install samba-4.13.17 from the source code. After the installation
and configuration are completed, three problems are found:
2. The startup status of samba and winbind shows an error message;
What am I doing wrong? Would appreciate your answer.
[e_zhangiso at myradius ~]$ su
Password:
[root at myradius e_zhangiso]# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
[root at myradius e_zhangiso]# /usr/local/samba/sbin/smbd -V
Version 4.13.17
[root at myradius e_zhangiso]# systemctl status samba -l
? samba.service - Samba Domain Member
Loaded: loaded (/usr/lib/systemd/system/samba.service;
enabled; vendor preset: disabled)
Active: active (running) since
Thu 2022-09-08 17:34:52 CST; 12min ago
Docs: man:samba(8)
man:samba(7)
man:smb.conf(5)
Main PID: 1660 (smbd)
Status: "smbd: ready to serve connections..."
Tasks: 4
CGroup: /system.slice/samba.service
??1660
/usr/local/samba/sbin/smbd --foreground --no-process-group
??1708
/usr/local/samba/sbin/smbd --foreground --no-process-group
??1710
/usr/local/samba/sbin/smbd --foreground --no-process-group
??2063
/usr/local/samba/sbin/smbd --foreground --no-process-group
Sep 08 17:34:52 myradius.com systemd[1]: Starting Samba Domain Member...
Sep 08 17:34:52 myradius.com smbd[1660]:
[2022/09/08 17:34:52.727161, 0]
../../lib/util/become_daemon.c:136(daemon_ready)
Sep 08 17:34:52 myradius.com smbd[1660]: daemon_ready:
daemon 'smbd' finished starting up and ready to serve connections
Sep 08 17:34:52 myradius.com systemd[1]: Started Samba Domain Member.
Sep 08 17:34:53 myradius.com smbd[1660]:
[2022/09/08 17:34:53.249399, 0]
../../source3/printing/nt_printing.c:252(nt_printing_init)
Sep 08 17:34:53 myradius.com smbd[1660]: nt_printing_init:
error checking published printers: WERR_ACCESS_DENIED
[root at myradius e_zhangiso]# systemctl status winbind -l
? winbind.service - Samba Winbind Daemon
Loaded: loaded (/usr/lib/systemd/system/winbind.service;
enabled; vendor preset: disabled)
Active: active (running) since
Thu 2022-09-08 17:34:52 CST; 13min ago
Docs: man:winbindd(8)
man:samba(7)
man:smb.conf(5)
Main PID: 1463 (winbindd)
Status: "winbindd: ready to serve connections..."
Tasks: 4
CGroup: /system.slice/winbind.service
??1463
/usr/local/samba/sbin/winbindd --foreground --no-process-group
??1656
/usr/local/samba/sbin/winbindd --foreground --no-process-group
??1662
/usr/local/samba/sbin/winbindd --foreground --no-process-group
??1716
/usr/local/samba/sbin/winbindd --foreground --no-process-group
Sep 08 17:34:52 myradius.com systemd[1]: Starting Samba Winbind Daemon...
Sep 08 17:34:52 myradius.com winbindd[1463]:
[2022/09/08 17:34:52.483146, 0]
../../source3/winbindd/winbindd_cache.c:3205(initialize_winbindd_cache)
Sep 08 17:34:52 myradius.com winbindd[1463]:
initialize_winbindd_cache: clearing cache and re-creating with version
number 2
Sep 08 17:34:52 myradius.com winbindd[1463]:
[2022/09/08 17:34:52.497733, 0]
../../lib/util/become_daemon.c:136(daemon_ready)
Sep 08 17:34:52 myradius.com winbindd[1463]: daemon_ready:
daemon 'winbindd' finished starting up and ready to serve connections
Sep 08 17:34:52 myradius.com systemd[1]: Started Samba Winbind Daemon.
Sep 08 17:34:52 myradius.com winbindd[1656]:
[2022/09/08 17:34:52.513388, 0]
../../source3/winbindd/winbindd_cm.c:1874(wb_open_internal_pipe)
Sep 08 17:34:52 myradius.com winbindd[1656]:
open_internal_pipe: Could not connect to dssetup pipe:
NT_STATUS_RPC_INTERFACE_NOT_FOUND
Sep 08 17:34:52 myradius.com winbindd[1656]:
[2022/09/08 17:34:52.524062, 0]
../../source3/rpc_server/rpc_ncacn_np.c:457(rpcint_dispatch)
Sep 08 17:34:52 myradius.com winbindd[1656]:
rpcint_dispatch: DCE/RPC fault in call lsarpc:2E -
DCERPC_NCA_S_OP_RNG_ERROR
[root at myradius e_zhangiso]# cat /usr/local/samba/etc/smb.conf
[global]
workgroup = TESTENTERPRISE
realm = TESTENTERPRISE.NET
preferred master = no
server string = centOS FreeRADIUS
Test Machine
security = ADS
passdb backend = tdbsam
# Default ID mapping configuration
using the autorid
# idmap backend. This will work out
of the box for simple setups
# as well as complex setups with
trusted domains.
idmap config * : backend = autorid
idmap config * : range =
100000-19999999
idmap config * : rangesize = 1000000
template homedir = /home/%D/%U
template shell = /bin/bash
winbind enum users = Yes
winbind enum groups = Yes
winbind use default domain = false
winbind nested groups = Yes
log file = /var/log/samba/%m.log
max log size = 50
log level = 1
ntlm auth = mschapv2-and-ntlmv2-only
printcap name = /etc/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
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /usr/local/samba/drivers
write list = @printadmin root
force group = @printadmin
create mask = 0664
directory mask = 0775