[SOLVED] cifs share are not visible on webGUI

  • After a few days I could not see any CIFS Share on the WebGUI in the Tab "Freigaben".
    When I try to add these Share again, I've got the error that a share with this name already exists.
    Browsing from a Windows Client also shows the shares, but I am not able to access the share
    with username/password (access denied).

    • Offizieller Beitrag

    What OMV version and is OMV installed on a usb stick?


    What is the output of (as root):


    mount
    cat /etc/fstab

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • The Version I use is the latest (0.4.16 fedaykin) installed on a internal harddisk.
    When I click on SMB/CIFS on WebGUI the following error is shown: Undefined index: recyclemaxsize


    The output from mount:
    # mount
    /dev/sda1 on / type ext4 (rw,errors=remount-ro)
    tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
    proc on /proc type proc (rw,noexec,nosuid,nodev)
    sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
    udev on /dev type tmpfs (rw,mode=0755)
    tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
    devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
    tmpfs on /tmp type tmpfs (rw)
    /dev/sdb1 on /media/8ff509e7-4504-4195-981d-e1dde50a194f type ext4 (rw,noexec,acl,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0)
    /media/8ff509e7-4504-4195-981d-e1dde50a194f/public on /export/public type none (rw,bind)
    /media/8ff509e7-4504-4195-981d-e1dde50a194f/wichtig/wichtig/sigrid on /export/shauck type none (rw,bind)
    /media/8ff509e7-4504-4195-981d-e1dde50a194f/wichtig on /export/wichtig type none (rw,bind)
    rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
    tmpfs on /opt/omd/sites/monitoring/tmp type tmpfs (rw,noexec,nosuid,nodev,mode=755,uid=997,gid=1002,user=monitoring)
    nfsd on /proc/fs/nfsd type nfsd (rw)


    from:
    # cat /etc/fstab
    # /etc/fstab: static file system information.
    #
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc defaults 0 0
    # / was on /dev/sda1 during installation
    UUID=92690231-a682-4fd3-aad2-7dece5033191 / ext4 errors=remount-ro 0 1
    # swap was on /dev/sda5 during installation
    UUID=8db8826e-ea8c-4b9d-a333-40a4762b533d none swap sw 0 0
    /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
    tmpfs /tmp tmpfs defaults 0 0
    # >>> [openmediavault]
    UUID=8ff509e7-4504-4195-981d-e1dde50a194f /media/8ff509e7-4504-4195-981d-e1dde50a194f ext4 defaults,acl,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 0 2
    /media/8ff509e7-4504-4195-981d-e1dde50a194f/public/ /export/public none bind 0 0
    /media/8ff509e7-4504-4195-981d-e1dde50a194f/wichtig/wichtig/sigrid/ /export/shauck none bind 0 0
    /media/8ff509e7-4504-4195-981d-e1dde50a194f/wichtig/ /export/wichtig none bind 0 0
    # <<< [openmediavault]
    tmpfs /omd/sites/monitoring/tmp tmpfs noauto,user,mode=755,uid=monitoring,gid=monitoring 0 0

    • Offizieller Beitrag

    How about:


    df
    cat /etc/samba/smb.conf

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    To fix the problem create a shell script called fixconfig.sh with the following content:


    Bash
    #!/bin/sh
    . /etc/default/openmediavault
    . /usr/share/openmediavault/scripts/helper-functions
    omv_config_add_element "//services/smb/shares/share" "recyclemaxsize" "0"
    omv_config_add_element "//services/smb/shares/share" "recyclemaxage" "0"


    After that


    Code
    chmod 744 fixconfig.sh
    ./fixconfig.sh

Jetzt mitmachen!

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