Not able to enable smb/cifs service

  • hi

    i can'i enable smb/cifs.Here is the error

    is other information needed?i am soory for my poor English.

    Thanks

  • The message when i run systemctl status smbd.service

    and journalctl -xe

  • Are you trying as root? If not try sudo. sudo testparm -d3

    I am using the root account,including the previous commands.

    Code
    root@omv2:~# testparm -d3
    lp_load_ex: refreshing parameters
    Initialising global parameters
    Processing section "[global]"
    directory_create_or_exist_strict: invalid ownership on directory /var/lib/samba/private/msg.sock
    Unable to initialize messaging context!

    are these useful? donh

  • I installed OMV on an old computer (I forgot the specific CPU model I can check it tomorrow if needed) docker is installed via OMV-extras

    Are you trying as root? If not try sudo. sudo testparm -d3


    A few more details might get a better guess also. Is this a pi or docker or anything else?

    • Offizieller Beitrag

    Is this OMV6? Looks like the error is here.

    [tt]

    Code
    directory_create_or_exist_strict: invalid ownership on directory /var/lib/samba/private/msg.sock

    Try this.

    Code
    root@omvad3:~# ls -la /var/lib/samba/private
    total 884
    drwxr-xr-x 3 root root   4096 Mar 11  2022 .
    drwxr-xr-x 7 root root   4096 Oct 12 01:40 ..
    drwx------ 2 root root  16384 Oct 14 09:55 msg.sock
    -rw------- 1 root root  28672 Oct 12 01:45 netlogon_creds_cli.tdb
    -rw------- 1 root root 421888 Mar  4  2022 passdb.tdb
    -rw------- 1 root root 430080 Aug 10 11:54 secrets.tdb
    root@omvad3:~#
  • Is this OMV6? Looks like the error is here.

    In fact I am OMV5

    Code
    root@omv2:~# ls -la /var/lib/samba/private
    total 844
    drwxr-xr-x 3 82 82   4096 Oct  8 12:50 .
    drwxr-xr-x 6 82 82   4096 Oct  9 07:45 ..
    drwx------ 2 82 82   4096 Oct 12 22:08 msg.sock
    -rw------- 1 82 82 421888 Oct  9 14:53 passdb.tdb
    -rw------- 1 82 82 430080 Oct  8 12:50 secrets.tdb

    Looks like I should have changed the owner to root,right?

    and I checked that the hard drive was still some space away from being full

    • Offizieller Beitrag

    Not sure why it doesn't show owner root. Could be the problem?

    Code
    root@omv5:~# ls -la /var/lib/samba/private
    total 2136
    drwxr-xr-x 3 root root    4096 Sep 20  2019 .
    drwxr-xr-x 6 root root    4096 Oct 12 01:38 ..
    drwx------ 2 root root   12288 Oct 14 10:23 msg.sock
    -rw------- 1 root root   28672 Oct 12 01:42 netlogon_creds_cli.tdb
    -rw------- 1 root root  421888 Sep 20  2019 passdb.tdb
    -rw------- 1 root root 1286144 Sep 20  2019 secrets.ldb
    -rw------- 1 root root  430080 May 10 14:16 secrets.tdb
    root@omv5:~# 

    I am not sure if this might cause other problems. Maybe someone else will reply.

    chown -R root && chgrp -R root

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!