Hello, I am new to fedora and I am unable to start samba.
sudo systemctl start smb.service
gives
Job for smb.service failed because the control process exited with error code.
See “systemctl status smb.service” and “journalctl -xeu smb.service” for details.
systemctl status smb.service
× smb.service - Samba SMB Daemon
Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2022-08-16 08:14:25 IST; 5min ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 3997 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=exited, status=1/FAILURE)
Main PID: 3997 (code=exited, status=1/FAILURE)
CPU: 68msAug 16 08:14:25 fedora systemd[1]: Starting smb.service - Samba SMB Daemon…
Aug 16 08:14:25 fedora smbd[3997]: [2022/08/16 08:14:25.183073, 0] …/…/source3/smbd/server.c:1741(main)
Aug 16 08:14:25 fedora smbd[3997]: smbd version 4.16.4 started.
Aug 16 08:14:25 fedora smbd[3997]: Copyright Andrew Tridgell and the Samba Team 1992-2022
Aug 16 08:14:25 fedora systemd[1]: smb.service: Main process exited, code=exited, status=1/FAILURE
Aug 16 08:14:25 fedora systemd[1]: smb.service: Failed with result ‘exit-code’.
Aug 16 08:14:25 fedora systemd[1]: Failed to start smb.service - Samba SMB Daemon.
journalctl -xeu smb.service
░░
░░ A start job for unit smb.service has begun execution.
░░
░░ The job identifier is 3376.
Aug 16 08:14:25 fedora smbd[3997]: [2022/08/16 08:14:25.183073, 0] …/…/source3/smbd/server.c:1741(main)
Aug 16 08:14:25 fedora smbd[3997]: smbd version 4.16.4 started.
Aug 16 08:14:25 fedora smbd[3997]: Copyright Andrew Tridgell and the Samba Team 1992-2022
Aug 16 08:14:25 fedora systemd[1]: smb.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: systemd-devel Info Page
░░
░░ An ExecStart= process belonging to unit smb.service has exited.
░░
░░ The process’ exit code is ‘exited’ and its exit status is 1.
Aug 16 08:14:25 fedora systemd[1]: smb.service: Failed with result ‘exit-code’.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░
░░ The unit smb.service has entered the ‘failed’ state with result ‘exit-code’.
Aug 16 08:14:25 fedora systemd[1]: Failed to start smb.service - Samba SMB Daemon.
░░ Subject: A start job for unit smb.service has failed
░░ Defined-By: systemd
░░
░░ A start job for unit smb.service has finished with a failure.
░░
░░ The job identifier is 3376 and the job result is failed.
sudo testparm -s
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Weak crypto is allowedServer role: ROLE_STANDALONE
[global]
workgroup = SIMPLE
idmap config * : backend = tdb[test]
comment = For testing only, please
guest ok = Yes
path = /home
read only = No