내 삼바가 Ubuntu 21.10에서 작동을 멈췄습니다. 언제 시작했는지는 모르겠지만 시작하면 다음과 같은 메시지가 표시됩니다.
$ sudo service smbd restart
[sudo] password for username:
Job for smbd.service failed because the control process exited with error code.
See "systemctl status smbd.service" and "journalctl -xeu smbd.service" for details.
명령을 실행하면 다음과 같은 메시지가 표시됩니다.
$ systemctl status smbd.service
× smbd.service - Samba SMB Daemon
Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2021-11-10 04:07:54 AEDT; 2min 6s ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 160601 ExecStartPre=/usr/share/samba/update-apparmor-samba-profile (code=exited, status=0/SUCCESS)
Process: 160610 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=exited, status=255/EXCEPTION)
Main PID: 160610 (code=exited, status=255/EXCEPTION)
Status: "Starting process..."
CPU: 44ms
Nov 10 04:07:54 pern smbd[160610]: Ignoring unknown parameter "winbind trusted domains only"
Nov 10 04:07:54 pern smbd[160610]: [2021/11/10 04:07:54.175944, 0] ../../source3/auth/auth_util.c:1313(get_guest_info3)
Nov 10 04:07:54 pern smbd[160610]: SamInfo3_for_guest: Unable to locate guest account []!
Nov 10 04:07:54 pern smbd[160610]: [2021/11/10 04:07:54.175995, 0] ../../source3/auth/auth_util.c:1385(make_new_session_info_guest)
Nov 10 04:07:54 pern smbd[160610]: get_guest_info3 failed with NT_STATUS_NO_SUCH_USER
Nov 10 04:07:54 pern smbd[160610]: [2021/11/10 04:07:54.176018, 0] ../../source3/smbd/server.c:2052(main)
Nov 10 04:07:54 pern smbd[160610]: ERROR: failed to setup guest info.
Nov 10 04:07:54 pern systemd[1]: smbd.service: Main process exited, code=exited, status=255/EXCEPTION
Nov 10 04:07:54 pern systemd[1]: smbd.service: Failed with result 'exit-code'.
Nov 10 04:07:54 pern systemd[1]: Failed to start Samba SMB Daemon.
그리고
Subject: A start job for unit smbd.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit smbd.service has finished with a failure.
░░
░░ The job identifier is 14803 and the job result is failed.
Nov 10 04:07:54 pern systemd[1]: Starting Samba SMB Daemon...
░░ Subject: A start job for unit smbd.service has begun execution
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit smbd.service has begun execution.
░░
░░ The job identifier is 20143.
Nov 10 04:07:54 pern smbd[160610]: [2021/11/10 04:07:54.170769, 0] ../../lib/param/loadparm.c:815(lpcfg_map_parameter)
Nov 10 04:07:54 pern smbd[160610]: Unknown parameter encountered: "password level"
Nov 10 04:07:54 pern smbd[160610]: [2021/11/10 04:07:54.170806, 0] ../../lib/param/loadparm.c:1855(lpcfg_do_global_parameter)
Nov 10 04:07:54 pern smbd[160610]: Ignoring unknown parameter "password level"
Nov 10 04:07:54 pern smbd[160610]: [2021/11/10 04:07:54.170933, 0] ../../lib/param/loadparm.c:815(lpcfg_map_parameter)
Nov 10 04:07:54 pern smbd[160610]: Unknown parameter encountered: "update encrypted"
Nov 10 04:07:54 pern smbd[160610]: [2021/11/10 04:07:54.170944, 0] ../../lib/param/loadparm.c:1855(lpcfg_do_global_parameter)
Nov 10 04:07:54 pern smbd[160610]: Ignoring unknown parameter "update encrypted"
Nov 10 04:07:54 pern smbd[160610]: [2021/11/10 04:07:54.171032, 0] ../../lib/param/loadparm.c:815(lpcfg_map_parameter)
Nov 10 04:07:54 pern smbd[160610]: Unknown parameter encountered: "winbind trusted domains only"
Nov 10 04:07:54 pern smbd[160610]: [2021/11/10 04:07:54.171040, 0] ../../lib/param/loadparm.c:1855(lpcfg_do_global_parameter)
Nov 10 04:07:54 pern smbd[160610]: Ignoring unknown parameter "winbind trusted domains only"
Nov 10 04:07:54 pern smbd[160610]: [2021/11/10 04:07:54.175944, 0] ../../source3/auth/auth_util.c:1313(get_guest_info3)
Nov 10 04:07:54 pern smbd[160610]: SamInfo3_for_guest: Unable to locate guest account []!
Nov 10 04:07:54 pern smbd[160610]: [2021/11/10 04:07:54.175995, 0] ../../source3/auth/auth_util.c:1385(make_new_session_info_guest)
Nov 10 04:07:54 pern smbd[160610]: get_guest_info3 failed with NT_STATUS_NO_SUCH_USER
Nov 10 04:07:54 pern smbd[160610]: [2021/11/10 04:07:54.176018, 0] ../../source3/smbd/server.c:2052(main)
Nov 10 04:07:54 pern smbd[160610]: ERROR: failed to setup guest info.
Nov 10 04:07:54 pern systemd[1]: smbd.service: Main process exited, code=exited, status=255/EXCEPTION
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ An ExecStart= process belonging to unit smbd.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 255.
Nov 10 04:07:54 pern systemd[1]: smbd.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit smbd.service has entered the 'failed' state with result 'exit-code'.
Nov 10 04:07:54 pern systemd[1]: Failed to start Samba SMB Daemon.
░░ Subject: A start job for unit smbd.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit smbd.service has finished with a failure.
░░
░░ The job identifier is 20143 and the job result is failed.
뭐가 잘못 되었 니?? 게스트 계정이 부족하다고 불평하는데 게스트 계정을 원하지 않거나 사용하지 않나요???
답변1
해결 로그인할 수 없는 사용자를 생성하고 이를 게스트 사용자로 만들었습니다. 이제 아무도 동일한 속성을 갖고 있지 않은 것처럼 보이게 만들 수 있었고 smbd가 정상적으로 시작되었습니다.
답변2
Samba도 Impish에서 작동하지 않습니다. 오류 메시지가 약간 다릅니다. 분명히 unmasked 와 관련이 있습니다 samba-ad-dc.service
. 이 서비스는 과거에는 항상 가려져 있었습니다. 클라이언트 또는 파일 서버 전용 버전의 Samba(거의 모든 사람이 사용하는 서비스)와 충돌한다고 확신하기 때문입니다.
에러 메시지:
$ sudo apt install -y samba
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
python3-samba samba-common samba-common-bin samba-dsdb-modules samba-libs
samba-vfs-modules
Suggested packages:
bind9 bind9utils ctdb ldb-tools ntp | chrony smbldap-tools ufw winbind
heimdal-clients
Loaded services file OK.
Weak crypto is allowed
Server role: ROLE_STANDALONE
Done
Setting up samba (2:4.13.14+dfsg-0ubuntu0.21.10.4) ...
Samba is not being run as an AD Domain Controller: Masking samba-ad-dc.service
Please ignore the following error about deb-systemd-helper not finding those services.
(samba-ad-dc.service masked)
Created symlink /etc/systemd/system/multi-user.target.wants/nmbd.service → /lib/systemd/system/nmbd.service.
Created symlink /etc/systemd/system/multi-user.target.wants/samba-ad-dc.service → /lib/systemd/system/samba-ad-dc.service.
Created symlink /etc/systemd/system/multi-user.target.wants/smbd.service → /lib/systemd/system/smbd.service.
Job for samba-ad-dc.service failed because the control process exited with error code.
See "systemctl status samba-ad-dc.service" and "journalctl -xeu samba-ad-dc.service" for details.
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for libc-bin (2.34-0ubuntu3) ...
apt
그렇게 말했다 See "systemctl status samba-ad-dc.service" and "journalctl -xeu samba-ad-dc.service" for details.
...
$ sudo journalctl -xeu samba-ad-dc.service
░░
░░ The job identifier is 4924.
Dec 14 01:48:10 uminefi01 systemd[1]: samba-ad-dc.service: Main process exited,>
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ An ExecStart= process belonging to unit samba-ad-dc.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Dec 14 01:48:10 uminefi01 systemd[1]: samba-ad-dc.service: Failed with result '>
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit samba-ad-dc.service has entered the 'failed' state with result 'exi>
Dec 14 01:48:10 uminefi01 systemd[1]: Failed to start Samba AD Daemon.
░░ Subject: A start job for unit samba-ad-dc.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit samba-ad-dc.service has finished with a failure.
░░
░░ The job identifier is 4924 and the job result is failed.
ESCOC
사용자 생성에 대한 귀하의 권장 사항을 받아들였습니다 nobody
(이 특정 솔루션에는 필요하지 않다고 생각하지만 좋은 아이디어인 것 같습니다).
$ sudo smbpasswd -a nobody
New SMB password: [enter on blank line]
Retype new SMB password: [enter on blank line]
Added user nobody.
장치 를 마스킹했습니다 samba-ad-dc.service
.
systemctl mask samba-ad-dc.service
Created symlink /etc/systemd/system/samba-ad-dc.service → /dev/null.
패키지 관리 자동 수정 실행:
$ sudo dpkg -a --configure && sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
독립 실행형 Samba 서비스 활성화('일반' 서비스):
systemctl enable --now smbd nmbd
Synchronizing state of smbd.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable smbd
Synchronizing state of nmbd.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable nmbd
testparm
일반 패키지 관리자에서 실행했는데 smb.conf
모두 좋다고 말했습니다 ...
나의cockpit-zfs-manager
45Drive에서다시 작동합니다 ...