Samba returned error

I need to share a file path = /mnt/3c601e33-9c69-4917-ba31-1c973076ce49/Torrent through my local network
I want to start samba service with systemctl start samba.service
but I can’t,
samba returns an error:samba.service: Main process exited, code=exited, status=1/FAILURE
I created conf file under /var/lib/samba

Should I set server role but how?
active directory domain controller or the rpc proxy with
what does it mean?

tree
.
├── bind-dns [error opening dir]
├── private [error opening dir]
└── smb.conf

And smb.conf content

[global]
  usershare path = /var/lib/samba/usershares
  usershare max shares = 100
  usershare allow guests = yes
  usershare owner only = yes
  workgroup = WORKGROUP
  create mask = 0664
  directory mask = 2755
  force create mode = 0644
  force directory mode = 2755

[media]
  comment = Media share accessible by greg and pcusers
  path = /path/to/media
  valid users = greg @pcusers
  force group = +pcusers
  public = no
  writable = yes
  create mask = 0664
  directory mask = 2775
  force create mode = 0664
  force directory mode = 2775

[public]
  comment = Public share where archie has write access
  path = /mnt/3c601e33-9c69-4917-ba31-1c973076ce49/Torrent
  public = yes
  read only = yes
  write list = archie
  printable = no

[guests]
  comment = Allow all users to read/write
  path = /path/to/guests
  public = yes
  only guest = yes
  writable = yes
  printable = no
journalctl -u samba.service
-- Journal begins at Tue 2020-05-19 21:39:52 +03, ends at Sat 2021-04-24 22:15:23 +03. --
Apr 24 21:31:05 max-20ste6t12n systemd[1]: Starting Samba AD Daemon...
Apr 24 21:31:05 max-20ste6t12n samba[9308]: [2021/04/24 21:31:05.386256,  0] ../../source4/samba/server.c:644(binary_smbd_main)
Apr 24 21:31:05 max-20ste6t12n samba[9308]:   samba version 4.14.2 started.
Apr 24 21:31:05 max-20ste6t12n samba[9308]:   Copyright Andrew Tridgell and the Samba Team 1992-2021
Apr 24 21:31:05 max-20ste6t12n samba[9308]: [2021/04/24 21:31:05.386401,  0] ../../lib/util/become_daemon.c:147(daemon_status)
Apr 24 21:31:05 max-20ste6t12n samba[9308]:   daemon_status: daemon 'samba' : Starting process...
Apr 24 21:31:05 max-20ste6t12n samba[9308]: [2021/04/24 21:31:05.436096,  0] ../../source4/samba/server.c:874(binary_smbd_main)
Apr 24 21:31:05 max-20ste6t12n samba[9308]:   At this time the 'samba' binary should only be used for either:
Apr 24 21:31:05 max-20ste6t12n samba[9308]:   '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'
Apr 24 21:31:05 max-20ste6t12n samba[9308]:   You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
Apr 24 21:31:05 max-20ste6t12n samba[9308]: [2021/04/24 21:31:05.436208,  0] ../../lib/util/become_daemon.c:121(exit_daemon)
Apr 24 21:31:05 max-20ste6t12n samba[9308]:   exit_daemon: daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error code 22
Apr 24 21:31:05 max-20ste6t12n systemd[1]: samba.service: Main process exited, code=exited, status=1/FAILURE
Apr 24 21:31:05 max-20ste6t12n systemd[1]: samba.service: Failed with result 'exit-code'.
Apr 24 21:31:05 max-20ste6t12n systemd[1]: Failed to start Samba AD Daemon.
Apr 24 21:31:29 max-20ste6t12n systemd[1]: Starting Samba AD Daemon...
Apr 24 21:31:29 max-20ste6t12n samba[9336]: [2021/04/24 21:31:29.438490,  0] ../../source4/samba/server.c:644(binary_smbd_main)
Apr 24 21:31:29 max-20ste6t12n samba[9336]:   samba version 4.14.2 started.
Apr 24 21:31:29 max-20ste6t12n samba[9336]:   Copyright Andrew Tridgell and the Samba Team 1992-2021
Apr 24 21:31:29 max-20ste6t12n samba[9336]: [2021/04/24 21:31:29.438660,  0] ../../lib/util/become_daemon.c:147(daemon_status)
Apr 24 21:31:29 max-20ste6t12n samba[9336]:   daemon_status: daemon 'samba' : Starting process...
Apr 24 21:31:29 max-20ste6t12n samba[9336]: [2021/04/24 21:31:29.477974,  0] ../../source4/samba/server.c:874(binary_smbd_main)
Apr 24 21:31:29 max-20ste6t12n samba[9336]:   At this time the 'samba' binary should only be used for either:
Apr 24 21:31:29 max-20ste6t12n samba[9336]:   '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'
Apr 24 21:31:29 max-20ste6t12n samba[9336]:   You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
Apr 24 21:31:29 max-20ste6t12n samba[9336]: [2021/04/24 21:31:29.478098,  0] ../../lib/util/become_daemon.c:121(exit_daemon)
Apr 24 21:31:29 max-20ste6t12n samba[9336]:   exit_daemon: daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error code 22
Apr 24 21:31:29 max-20ste6t12n systemd[1]: samba.service: Main process exited, code=exited, status=1/FAILURE
Apr 24 21:31:29 max-20ste6t12n systemd[1]: samba.service: Failed with result 'exit-code'.
Apr 24 21:31:29 max-20ste6t12n systemd[1]: Failed to start Samba AD Daemon.
Apr 24 21:36:38 max-20ste6t12n systemd[1]: Starting Samba AD Daemon...
Apr 24 21:36:38 max-20ste6t12n samba[10829]: [2021/04/24 21:36:38.686036,  0] ../../source4/samba/server.c:644(binary_smbd_main)
Apr 24 21:36:38 max-20ste6t12n samba[10829]:   samba version 4.14.2 started.
Apr 24 21:36:38 max-20ste6t12n samba[10829]:   Copyright Andrew Tridgell and the Samba Team 1992-2021
Apr 24 21:36:38 max-20ste6t12n samba[10829]: [2021/04/24 21:36:38.686323,  0] ../../lib/util/become_daemon.c:147(daemon_status)
Apr 24 21:36:38 max-20ste6t12n samba[10829]:   daemon_status: daemon 'samba' : Starting process...
Apr 24 21:36:38 max-20ste6t12n samba[10829]: [2021/04/24 21:36:38.724581,  0] ../../source4/samba/server.c:874(binary_smbd_main)
Apr 24 21:36:38 max-20ste6t12n samba[10829]:   At this time the 'samba' binary should only be used for either:
Apr 24 21:36:38 max-20ste6t12n samba[10829]:   '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'
Apr 24 21:36:38 max-20ste6t12n samba[10829]:   You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
Apr 24 21:36:38 max-20ste6t12n samba[10829]: [2021/04/24 21:36:38.724718,  0] ../../lib/util/become_daemon.c:121(exit_daemon)
Apr 24 21:36:38 max-20ste6t12n samba[10829]:   exit_daemon: daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error code 22
Apr 24 21:36:38 max-20ste6t12n systemd[1]: samba.service: Main process exited, code=exited, status=1/FAILURE
Apr 24 21:36:38 max-20ste6t12n systemd[1]: samba.service: Failed with result 'exit-code'.
Apr 24 21:36:38 max-20ste6t12n systemd[1]: Failed to start Samba AD Daemon.
Apr 24 21:39:43 max-20ste6t12n systemd[1]: Starting Samba AD Daemon...
Apr 24 21:39:43 max-20ste6t12n systemd[1]: samba.service: Main process exited, code=exited, status=1/FAILURE
Apr 24 21:39:43 max-20ste6t12n systemd[1]: samba.service: Failed with result 'exit-code'.
Apr 24 21:39:43 max-20ste6t12n systemd[1]: Failed to start Samba AD Daemon.
Apr 24 21:41:36 max-20ste6t12n systemd[1]: Starting Samba AD Daemon...
Apr 24 21:41:36 max-20ste6t12n systemd[1]: samba.service: Main process exited, code=exited, status=1/FAILURE
Apr 24 21:41:36 max-20ste6t12n systemd[1]: samba.service: Failed with result 'exit-code'.
Apr 24 21:41:36 max-20ste6t12n systemd[1]: Failed to start Samba AD Daemon.
Apr 24 22:12:40 max-20ste6t12n systemd[1]: Starting Samba AD Daemon...
Apr 24 22:12:40 max-20ste6t12n systemd[1]: samba.service: Main process exited, code=exited, status=1/FAILURE
Apr 24 22:12:40 max-20ste6t12n systemd[1]: samba.service: Failed with result 'exit-code'.
Apr 24 22:12:40 max-20ste6t12n systemd[1]: Failed to start Samba AD Daemon.
Apr 24 22:12:50 max-20ste6t12n systemd[1]: Starting Samba AD Daemon...
Apr 24 22:12:50 max-20ste6t12n systemd[1]: samba.service: Main process exited, code=exited, status=1/FAILURE
Apr 24 22:12:50 max-20ste6t12n systemd[1]: samba.service: Failed with result 'exit-code'.
Apr 24 22:12:50 max-20ste6t12n systemd[1]: Failed to start Samba AD Daemon.
  1. That does not look like a permanent mount. How did you mount that?
  2. That should be in /etc/samba/smb.conf
  3. There has been a movement to move samba to better authentication, so the first thing to try is to add client min protocol = NT1 to the [global] section.

Try the above first before we go digging into anything else…

:crossed_fingers:

1 Like
  1. May not, using gnome-disk-utility's mounting option which Mount at system startup
    I don’t know how works

  2. Actually, I have a similar one, sorry I forgot to say

[global]
	disable netbios = yes
	workgroup = workgroup
	server string = db1
	dns proxy = no
	log file = /var/log/samba/log.%m
	max log size = 1000
	client min protocol = NT1client min protocol = NT1
	syslog = 0
	panic action = /usr/share/samba/panic-action %d
	obey pam restrictions = yes
	unix password sync = yes
	passwd program = /usr/bin/passwd %u
	passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
	pam password change = yes
	map to guest = bad user
	usershare allow guests = yes
	security = user
	username map = /etc/samba/smbusers
	load printers = no
	printing = bsd
	printcap name = /dev/null
	disable spoolss = yes

[Media]
        path = /mnt/3c601e33-9c69-4917-ba31-1c973076ce49/Torrent
        writeable = no
        browseable = yes
        valid users = all
        create mask = 6700
        directory mask = 6700

I applied to /etc/samba/smb.conf and /var/lib/samba/smb.conf your suggest in turn.
You’re right, It should under /etc/samba/smb.conf

Apr 25 02:26:16 max-20ste6t12n systemd[1]: Starting Samba AD Daemon...
Apr 25 02:26:16 max-20ste6t12n samba[28879]: [2021/04/25 02:26:16.921109,  0] ../../source4/samba/server.c:644(binary_smbd_main)
Apr 25 02:26:16 max-20ste6t12n samba[28879]:   samba version 4.14.2 started.
Apr 25 02:26:16 max-20ste6t12n samba[28879]:   Copyright Andrew Tridgell and the Samba Team 1992-2021
Apr 25 02:26:16 max-20ste6t12n samba[28879]: [2021/04/25 02:26:16.921400,  0] ../../lib/util/become_daemon.c:147(daemon_status)
Apr 25 02:26:16 max-20ste6t12n samba[28879]:   daemon_status: daemon 'samba' : Starting process...
Apr 25 02:26:16 max-20ste6t12n samba[28879]: [2021/04/25 02:26:16.972193,  0] ../../source4/samba/server.c:874(binary_smbd_main)
Apr 25 02:26:16 max-20ste6t12n samba[28879]:   At this time the 'samba' binary should only be used for either:
Apr 25 02:26:16 max-20ste6t12n samba[28879]:   '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'
Apr 25 02:26:16 max-20ste6t12n samba[28879]:   You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
Apr 25 02:26:16 max-20ste6t12n samba[28879]: [2021/04/25 02:26:16.972571,  0] ../../lib/util/become_daemon.c:121(exit_daemon)
Apr 25 02:26:16 max-20ste6t12n samba[28879]:   exit_daemon: daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error code 22
Apr 25 02:26:16 max-20ste6t12n systemd[1]: samba.service: Main process exited, code=exited, status=1/FAILURE
Apr 25 02:26:16 max-20ste6t12n systemd[1]: samba.service: Failed with result 'exit-code'.
Apr 25 02:26:16 max-20ste6t12n systemd[1]: Failed to start Samba AD Daemon.
Apr 25 02:36:21 max-20ste6t12n systemd[1]: Starting Samba AD Daemon...
Apr 25 02:36:21 max-20ste6t12n samba[29593]: [2021/04/25 02:36:21.393758,  0] ../../source4/samba/server.c:644(binary_smbd_main)
Apr 25 02:36:21 max-20ste6t12n samba[29593]:   samba version 4.14.2 started.
Apr 25 02:36:21 max-20ste6t12n samba[29593]:   Copyright Andrew Tridgell and the Samba Team 1992-2021
Apr 25 02:36:21 max-20ste6t12n samba[29593]: [2021/04/25 02:36:21.394038,  0] ../../lib/util/become_daemon.c:147(daemon_status)
Apr 25 02:36:21 max-20ste6t12n samba[29593]:   daemon_status: daemon 'samba' : Starting process...
Apr 25 02:36:21 max-20ste6t12n samba[29593]: [2021/04/25 02:36:21.444801,  0] ../../source4/samba/server.c:874(binary_smbd_main)
Apr 25 02:36:21 max-20ste6t12n samba[29593]:   At this time the 'samba' binary should only be used for either:
Apr 25 02:36:21 max-20ste6t12n samba[29593]:   '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'
Apr 25 02:36:21 max-20ste6t12n samba[29593]:   You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
Apr 25 02:36:21 max-20ste6t12n samba[29593]: [2021/04/25 02:36:21.444930,  0] ../../lib/util/become_daemon.c:121(exit_daemon)
Apr 25 02:36:21 max-20ste6t12n samba[29593]:   exit_daemon: daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error code 22
Apr 25 02:36:21 max-20ste6t12n systemd[1]: samba.service: Main process exited, code=exited, status=1/FAILURE
Apr 25 02:36:21 max-20ste6t12n systemd[1]: samba.service: Failed with result 'exit-code'.
Apr 25 02:36:21 max-20ste6t12n systemd[1]: Failed to start Samba AD Daemon.

I put all details, thanks

  1. Put that in fstab for a start and provide the fstab line

  2. That’s wrong:

    It should be:

    client min protocol = NT1
    

    (only once)

  3. Both /etc and /var/lib?

  4. Why 6700 and not 0670?

  5. You’re completely missing

    server role = standalone server
    

    in the [globa]l section so it’ll never start with your config.

  6. For more information, please follow this if this is your fist time configuring samba.

:scream:

  1. I checked fsstab file looks good
# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=88A3-1B1C                            /boot/efi      vfat    umask=0077 0 2
UUID=1974023c-5c86-4884-a3ce-c8e99ca4bf9e /              ext4    defaults,noatime 0 1
UUID=c3100a32-5b98-4246-abfc-70342fc1fdbf /home          ext4    defaults,noatime 0 2
tmpfs                                     /tmp           tmpfs   defaults,noatime,mode=1777 0 0
/dev/disk/by-uuid/3c601e33-9c69-4917-ba31-1c973076ce49 /mnt/3c601e33-9c69-4917-ba31-1c973076ce49 auto nosuid,nodev,nofail,x-gvfs-show 0 0

I create new one conf file. Sorry for terrible fetched somewhere configuration.
6. I glanced but arch linux configurations looks little easy
7. I deleted samba confusing files under /var/lib/samba

I tried new two parameters below similar to arch samba wiki

The easiest one configuration

[global]
  usershare path = /var/lib/samba/usershares
  usershare max shares = 100
  usershare allow guests = yes
  usershare owner only = yes
  client min protocol = NT1

Other configuration

[global]
  usershare path = /var/lib/samba/usershares
  usershare max shares = 100
  usershare allow guests = yes
  usershare owner only = yes
  workgroup = WORKGROUP
  client min protocol = NT1
  create mask = 0664
  directory mask = 2755
  force create mode = 0644
  force directory mode = 2755
  printing = CUPS

[public]
  comment = Public share where archie has write access
  path = /mnt/3c601e33-9c69-4917-ba31-1c973076ce49/Torrent
  public = yes
  read only = yes
  write list = archie
  printable = no

[printers]
    comment = All Printers
    path = /var/spool/samba
    browseable = yes
    # to allow user 'guest account' to print.
    guest ok = no
    writable = no
    printable = yes
    create mode = 0700
    write list = root @axe
journalctl -xe
Apr 26 18:49:32 max-20ste6t12n kernel: audit: type=1110 audit(1619452172.737:958): pid=205644 uid=1000 auid=1000 ses=3 subj==unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/s>
Apr 26 18:49:32 max-20ste6t12n kernel: audit: type=1105 audit(1619452172.737:959): pid=205644 uid=1000 auid=1000 ses=3 subj==unconfined msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" host>
Apr 26 18:49:32 max-20ste6t12n sudo[205644]:      axe : TTY=pts/1 ; PWD=/etc/samba ; USER=root ; COMMAND=/usr/bin/gedit smb.conf
Apr 26 18:49:32 max-20ste6t12n sudo[205644]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
Apr 26 18:50:05 max-20ste6t12n sudo[205644]: pam_unix(sudo:session): session closed for user root
Apr 26 18:50:05 max-20ste6t12n audit[205644]: USER_END pid=205644 uid=1000 auid=1000 ses=3 subj==unconfined msg='op=PAM:session_close grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev>
Apr 26 18:50:05 max-20ste6t12n audit[205644]: CRED_DISP pid=205644 uid=1000 auid=1000 ses=3 subj==unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? term>
Apr 26 18:50:05 max-20ste6t12n kernel: audit: type=1106 audit(1619452205.777:960): pid=205644 uid=1000 auid=1000 ses=3 subj==unconfined msg='op=PAM:session_close grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hos>
Apr 26 18:50:05 max-20ste6t12n kernel: audit: type=1104 audit(1619452205.777:961): pid=205644 uid=1000 auid=1000 ses=3 subj==unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/s>
Apr 26 18:50:18 max-20ste6t12n polkitd[566]: Registered Authentication Agent for unix-process:205717:16724804 (system bus name :1.633 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationA>
Apr 26 18:50:20 max-20ste6t12n audit[205723]: USER_AUTH pid=205723 uid=1000 auid=1000 ses=7 subj==unconfined msg='op=PAM:authentication grantors=pam_faillock,pam_permit,pam_faillock acct="axe" exe="/usr/lib/polkit-1/polkit-agent-helper-1>
Apr 26 18:50:20 max-20ste6t12n kernel: audit: type=1100 audit(1619452220.637:962): pid=205723 uid=1000 auid=1000 ses=7 subj==unconfined msg='op=PAM:authentication grantors=pam_faillock,pam_permit,pam_faillock acct="axe" exe="/usr/lib/pol>
Apr 26 18:50:20 max-20ste6t12n dbus-daemon[553]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.635' (uid=0 pid=205723 comm="/usr/lib/polkit-1/polkit-agent>
Apr 26 18:50:20 max-20ste6t12n audit[205723]: USER_ACCT pid=205723 uid=1000 auid=1000 ses=7 subj==unconfined msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="axe" exe="/usr/lib/polkit-1/polkit-agent-helper-1" hostname=?>
Apr 26 18:50:20 max-20ste6t12n dbus-daemon[553]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Apr 26 18:50:20 max-20ste6t12n polkit-agent-helper-1[205723]: pam_systemd_home(polkit-1:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Apr 26 18:50:20 max-20ste6t12n polkitd[566]: Operator of unix-session:7 successfully authenticated as unix-user:axe to gain TEMPORARY authorization for action org.freedesktop.systemd1.manage-units for system-bus-name::1.634 [systemctl st>
Apr 26 18:50:20 max-20ste6t12n kernel: audit: type=1101 audit(1619452220.647:963): pid=205723 uid=1000 auid=1000 ses=7 subj==unconfined msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="axe" exe="/usr/lib/polkit-1/polkit>
Apr 26 18:50:20 max-20ste6t12n systemd[1]: Starting Samba AD Daemon...
░░ Subject: A start job for unit samba.service has begun execution
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░ 
░░ A start job for unit samba.service has begun execution.
░░ 
░░ The job identifier is 8922.
Apr 26 18:50:20 max-20ste6t12n samba[205731]: [2021/04/26 18:50:20.755228,  0] ../../source4/samba/server.c:644(binary_smbd_main)
Apr 26 18:50:20 max-20ste6t12n samba[205731]:   samba version 4.14.2 started.
Apr 26 18:50:20 max-20ste6t12n samba[205731]:   Copyright Andrew Tridgell and the Samba Team 1992-2021
Apr 26 18:50:20 max-20ste6t12n samba[205731]: [2021/04/26 18:50:20.756547,  0] ../../lib/util/become_daemon.c:147(daemon_status)
Apr 26 18:50:20 max-20ste6t12n samba[205731]:   daemon_status: daemon 'samba' : Starting process...
Apr 26 18:50:20 max-20ste6t12n samba[205731]: [2021/04/26 18:50:20.756588,  0] ../../lib/util/util.c:212(directory_create_or_exist)
Apr 26 18:50:20 max-20ste6t12n samba[205731]:   directory_create_or_exist: mkdir failed on directory /var/lib/samba/private/smbd.tmp: No such file or directory
Apr 26 18:50:20 max-20ste6t12n samba[205731]: [2021/04/26 18:50:20.756644,  0] ../../lib/util/become_daemon.c:121(exit_daemon)
Apr 26 18:50:20 max-20ste6t12n samba[205731]:   exit_daemon: daemon failed to start: Failed to cleanup temporary files, error code 22
Apr 26 18:50:20 max-20ste6t12n systemd[1]: samba.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░ 
░░ An ExecStart= process belonging to unit samba.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 1.
Apr 26 18:50:20 max-20ste6t12n systemd[1]: samba.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░ 
░░ The unit samba.service has entered the 'failed' state with result 'exit-code'.
Apr 26 18:50:20 max-20ste6t12n systemd[1]: Failed to start Samba AD Daemon.
░░ Subject: A start job for unit samba.service has failed
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░ 
░░ A start job for unit samba.service has finished with a failure.
░░ 
░░ The job identifier is 8922 and the job result is failed.
Apr 26 18:50:20 max-20ste6t12n audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=samba comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Apr 26 18:50:20 max-20ste6t12n polkitd[566]: Unregistered Authentication Agent for unix-process:205717:16724804 (system bus name :1.633, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from >
Apr 26 18:50:20 max-20ste6t12n kernel: audit: type=1130 audit(1619452220.757:964): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=samba comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res>
lines 1243-1302/1302 (END)

Checked whether a folder under /var/lib/samba/usershares or not and there was any folder under lib related samba then created them.

But I’m getting the same results and had tried to delete completely samba service. I can’t figure out which happens the simplest config.

It seems to me that something else triggers the error but what

1 Like