Manjoro Linux에서 Samba를 작동시키면 데몬이 시작되지 못했습니다. Samba는 잘못 구성된 "서버 역할"을 감지하고 종료되었습니다.

Manjoro Linux에서 Samba를 작동시키면 데몬이 시작되지 못했습니다. Samba는 잘못 구성된 "서버 역할"을 감지하고 종료되었습니다.

나는 최근에 manjoro linux에서 samba를 시작하려고 했습니다.

systemctl start samba.service
systemctl status samba.service
● samba.service - Samba AD Daemon
  Loaded: loaded (/usr/lib/systemd/system/samba.service; enabled; vendor preset: disabled)
  Active: failed (Result: exit-code) since Fri 2017-04-21 10:40:03 SAST; 1s ago
 Process: 5913 ExecStart=/usr/bin/samba $SAMBAOPTIONS (code=exited, status=0/SUCCESS)
Main PID: 5914 (code=exited, status=1/FAILURE)

Apr 21 10:40:02 aaron-pc systemd[1]: Starting Samba AD Daemon...
Apr 21 10:40:02 aaron-pc systemd[1]: Started Samba AD Daemon.
Apr 21 10:40:03 aaron-pc systemd[1]: samba.service: Main process exited, code=exited, status=1/FAILURE
Apr 21 10:40:03 aaron-pc systemd[1]: samba.service: Unit entered failed state.
Apr 21 10:40:03 aaron-pc systemd[1]: samba.service: Failed with result 'exit-code'.  

less /var/log/samba/%m.log 
.....
samba version 4.5.8 started.
Copyright Andrew Tridgell and the Samba Team 1992-2016
[2017/04/21 10:31:05.057860,  0] ../source4/smbd/server.c:466(binary_smbd_main)
At this time the 'samba' binary should only be used for either:
'server role = active directory domain controller' or to access the ntvfs file server with 'server services = +smb' or the rpc proxy with 'dcerpc endpoint servers = remote'
You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
[2017/04/21 10:31:05.057905,  0] ../lib/util/become_daemon.c:111(exit_daemon)
STATUS=daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error code 22
....

내가 여기서 무엇을 놓치고 있는지 잘 모르겠습니다.

testparm 
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[printers]"
Processing section "[print$]"
Processing section "[Aaron-share]"
Processing section "[Aaron-movies]"
Loaded services file OK.
Server role: ROLE_STANDALONE

Press enter to see a dump of your service definitions

# Global parameters
[global]
    server services = s3fs, rpc, nbt, wrepl, ldap, cldap, kdc, drepl, winbindd, ntp_signd, kcc, dnsupdate, dns, smb
    server string = %h manjoro linux
    workgroup = ECN
    log file = /var/log/samba/%m.log
    max log size = 1000
    panic action = /usr/share/samba/panic-action %d
    usershare allow guests = Yes
    map to guest = Bad User
    obey pam restrictions = Yes
    pam password change = Yes
    passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
    passwd program = /usr/bin/passwd %u
    server role = standalone server
    unix password sync = Yes
    dns proxy = No
    idmap config * : backend = tdb

답변1

이것은 나의 오해입니다.

samba.service를 시작할 필요가 없습니다.
https://www.samba.org/samba/docs/man/manpages-3/
"삼바(8)
클라이언트에게 AD 및 SMB/CIFS 서비스를 제공하는 서버"

systemctl disable samba
systemctl stop samba

나에게 정말로 필요한 것은중소기업 서비스.
https://www.samba.org/samba/docs/man/manpages-3/smbd.8.html
"smbd — 클라이언트에 SMB/CIFS 서비스를 제공하는 서버"

AD 유형 설정을 실행할 필요가 없으며 내 파일을 다른 컴퓨터와 공유하고 싶습니다.

systemctl enable smb
systemctl start smb
systemctl status smb
systemctl enable nmb
systemctl start nmb
systemctl status nmb

smb.conf에 올바른 설정이 모두 있으면 액세스 가능한 작업 공유를 얻는 데 충분합니다.

자세한 내용은 아치 문서를 읽어야 합니다.
https://wiki.archlinux.org/index.php/samba

이 링크가 도움이 되었다고 생각합니다.
https://wiki.manjaro.org/index.php?title=Using_Samba_in_your_File_Manager
https://forum.antergos.com/topic/5557/samba-won-t-start-can-t-share-folders-over-network/3

관련 정보