Beiträge von edwintheelf

    Thanks


    /etc/shadow has 640 permissions


    grep 'ro' /proc/mounts:

    proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0

    /dev/sdf1 / ext4 ro,relatime,errors=remount-ro 0 0

    tmpfs /sys/fs/cgroup tmpfs ro,nosuid,nodev,noexec,mode=755 0 0

    cgroup2 /sys/fs/cgroup/unified cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate 0 0

    cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,xattr,name=systemd 0 0

    cgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpu,cpuacct 0 0

    cgroup /sys/fs/cgroup/rdma cgroup rw,nosuid,nodev,noexec,relatime,rdma 0 0

    cgroup /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 0

    cgroup /sys/fs/cgroup/net_cls,net_prio cgroup rw,nosuid,nodev,noexec,relatime,net_cls,net_prio 0 0

    cgroup /sys/fs/cgroup/devices cgroup rw,nosuid,nodev,noexec,relatime,devices 0 0

    cgroup /sys/fs/cgroup/pids cgroup rw,nosuid,nodev,noexec,relatime,pids 0 0

    cgroup /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 0 0

    cgroup /sys/fs/cgroup/perf_event cgroup rw,nosuid,nodev,noexec,relatime,perf_event 0 0

    cgroup /sys/fs/cgroup/hugetlb cgroup rw,nosuid,nodev,noexec,relatime,hugetlb 0 0

    cgroup /sys/fs/cgroup/memory cgroup rw,nosuid,nodev,noexec,relatime,memory 0 0

    cgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0

    systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=37,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=10946 0 0

    /dev/sde1 /srv/dev-disk-by-label-NASDISK05 ext4 rw,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group 0 0

    /dev/sdd1 /srv/dev-disk-by-label-NASDISK04 ext4 rw,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group 0 0

    /dev/sda1 /srv/dev-disk-by-label-NASDISK02 ext4 rw,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group 0 0

    /dev/sda1 /export/NAS02 ext4 rw,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group 0 0

    /dev/sdc1 /srv/dev-disk-by-label-NASDISK03 ext4 rw,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group 0 0

    /dev/sdd1 /export/NAS04 ext4 rw,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group 0 0

    /dev/sde1 /export/NAS05 ext4 rw,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group 0 0

    /dev/sdc1 /export/NAS03 ext4 rw,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group 0 0

    /dev/sdb1 /srv/dev-disk-by-label-NASDISK1 ext4 rw,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group 0 0

    /dev/sdb1 /export/NAS01 ext4 rw,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group 0 0

    Hi Zoki,


    As above, it was an automatic update via the OMV web update, which was modifying the modules noted in my previous post.



    cat /etc/pam.conf

    # ---------------------------------------------------------------------------#

    # /etc/pam.conf #

    # ---------------------------------------------------------------------------#

    #

    # NOTE

    # ----

    #

    # NOTE: Most program use a file under the /etc/pam.d/ directory to setup their

    # PAM service modules. This file is used only if that directory does not exist.

    # ---------------------------------------------------------------------------#


    # Format:

    # serv. module ctrl module [path] ...[args..] #

    # name type flag #

    Hi,


    Results below. OMV was running an update of the following packages via the web interface:

    Code
    base-files chrony libc-bin libc-l10n libc6 libcups2 libgmp10 libicu63  libssl1.1 libxml2 locales openssl rsyslog tzdata vim-common vim-tiny xxd


    cat: /etc/pam.com: No such file or directory


    ls -lah /etc/pam.d

    total 116K

    drwxr-xr-x 2 root root 4.0K Mar 3 17:07 .

    drwxrwxr-x 96 root root 4.0K Mar 28 08:31 ..

    -rw-r--r-- 1 root root 384 Sep 27 2017 chfn

    -rw-r--r-- 1 root root 92 Sep 27 2017 chpasswd

    -rw-r--r-- 1 root root 581 Sep 27 2017 chsh

    -rw-r--r-- 1 root root 1.2K Sep 21 2020 common-account

    -rw-r--r-- 1 root root 1.2K Sep 21 2020 common-auth

    -rw-r--r-- 1 root root 1.5K Sep 21 2020 common-password

    -rw-r--r-- 1 root root 1.2K Sep 21 2020 common-session

    -rw-r--r-- 1 root root 1.2K Sep 21 2020 common-session-noninteractive

    -rw-r--r-- 1 root root 606 Oct 11 2019 cron

    -rw-r--r-- 1 root root 4.9K Jul 27 2018 login

    -rw-r--r-- 1 root root 100 Jul 7 2019 monit

    -rw-r--r-- 1 root root 92 Sep 27 2017 newusers

    -rw-r--r-- 1 root root 354 Apr 24 2019 openmediavault

    -rw-r--r-- 1 root root 186 Apr 24 2019 openmediavault-common-auth

    -rw-r--r-- 1 root root 365 Apr 24 2019 openmediavault-webgui

    -rw-r--r-- 1 root root 520 Feb 14 2019 other

    -rw-r--r-- 1 root root 92 Sep 27 2017 passwd

    -rw-r--r-- 1 root root 385 Mar 10 2020 proftpd

    -rw-r--r-- 1 root root 143 Jan 10 2019 runuser

    -rw-r--r-- 1 root root 138 Jan 10 2019 runuser-l

    -rw-r--r-- 1 root root 84 Sep 2 2019 samba

    -rw-r--r-- 1 root root 2.1K Jan 31 2020 sshd

    -rw-r--r-- 1 root root 2.3K Jan 10 2019 su

    -rw-r--r-- 1 root root 95 Feb 2 2020 sudo

    -rw-r--r-- 1 root root 137 Jan 10 2019 su-l

    -rw-r--r-- 1 root root 317 Apr 27 2020 systemd-user


    cat /etc/pam.d/openmediavault*

    #

    # The PAM configuration file for openmediavault.

    #


    # openmediavault standard authentication.

    @include openmediavault-common-auth


    # Standard Un*x authentication.

    @include common-auth


    account required pam_tally2.so


    # Standard Un*x authorization.

    @include common-account


    # Standard Un*x session setup and teardown.

    @include common-session

    #

    # The PAM configuration file for openmediavault.

    #


    # Deny user access after 3 failed login attempts.

    auth required pam_tally2.so onerr=fail audit deny=3 unlock_time=180

    #

    # The PAM configuration file for the openmediavault WebGUI.

    #


    # openmediavault standard authentication.

    @include openmediavault-common-auth


    # Standard Un*x authentication.

    @include common-auth


    account required pam_tally2.so


    # Standard Un*x authorization.

    @include common-account


    # Standard Un*x session setup and teardown.

    @include common-session

    Thanks.


    Tried that and I get the following without the password changing:

    Updating control panel administrator password. Please wait ...

    {'response': None, 'error': {'code': 0, 'message': "Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; chpasswd </tmp/WKYqQU' with exit code '1': ", 'trace': "OMV\\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; chpasswd </tmp/WKYqQU' with exit code '1': in /usr/share/php/openmediavault/system/process.inc:196\nStack trace:\n#0 /usr/share/php/openmediavault/system/user.inc(377): OMV\\System\\Process->execute()\n#1 /usr/share/openmediavault/engined/rpc/usermgmt.inc(1165): OMV\\System\\User->changePassword('Entr0py1964')\n#2 [internal function]: Engined\\Rpc\\UserMgmt->setPasswordByContext(Array, Array)\n#3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)\n#4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\\Rpc\\ServiceAbstract->callMethod('setPasswordByCo...', Array, Array)\n#5 /usr/sbin/omv-engined(537): OMV\\Rpc\\Rpc::call('UserMgmt', 'setPasswordByCo...', Array, Array, 1)\n#6 {main}", 'http_status_code': 500}}

    ERROR: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; chpasswd </tmp/WKYqQU' with exit code '1':

    Hi,


    I was running an update when part way through the process a red message popped up and asked me to re-authenticate. When I re-entered my password I got the following:


    Incorrect username or password.

    Error #0:
    OMV\HttpErrorException: Incorrect username or password. in /var/www/openmediavault/rpc/session.inc:151
    Stack trace:
    #0 [internal function]: OMVRpcServiceSession->login(Array, Array)
    #1 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
    #2 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('login', Array, Array)
    #3 /usr/share/php/openmediavault/rpc/proxy/json.inc(97): OMV\Rpc\Rpc::call('Session', 'login', Array, Array, 3)
    #4 /var/www/openmediavault/rpc.php(45): OMV\Rpc\Proxy\Json->handle()
    #5 {main}


    Can someone please help me resolve this?

    Further info...


    I've tried running iperf3 between the two boxes and it reports full Gigabit Ethernet speed, so eliminates one element.


    I've also looked at the two related threads about SMB/CIFS speed but nothing there has helped.


    Still looking for help please...

    I've built a new NAS using on old PC (Intel Core 2 Quad 8400 and Asus PQ5 Pro Turbo MoBo with 8Gb memory).


    OMV is at 4.1.21-1 with all updates loaded.


    When I test file transfer speed (using LAN Speed Test on Win10) I get around 60MBs write and 5MBps read to the Sata connected drive.


    Firstly, does the write speed appear reasonable?


    Secondly, any suggestions as to what I can look at to understand/correct what appears to be a very low read speed please?

    To follow up....


    I had been runing the RPi headless, so couldn't see the local outpout on crash, so I hooked it up to a screen and :


    EXT4-fs error (device mmcblk0p2):ext4_find_entry: 1438: inode......


    So, it was due to a fauly Micro SD card. Replaced with a nice new SanDisk Extreme 32 GB microSDHC and now running absolutely fine.

    I've run stress for over and hour and no crash, so still stumped as to the what teh problem is.


    Appreciate that there are many potential causes, so will keep looking.


    In any case, thanks for your help!!

    Running armbianmonitor -v I get:



    It appears you may have corrupt packages.


    This is usually a symptom of filesystem corruption caused by SD cards or eMMC
    dying or burning the OS image to the installation media went wrong.


    The following changes from packaged state files were detected:


    /usr/local/bin/pulseaudio.txt
    /usr/bin/armbianmonitor


    Neither suggest issues in running OMV and the latter is strange, given that it's the very utility that I've just run. Anything to worry about?

    tkaiser Thanks for the response!


    I have no /var/log/raspihealth.log (I've looked).


    BTW, forgot to state that I have heatsinks and a fan powered from the GPIO pins. (See below, temperatures are relatively low)



    Running raspimon I appear to be getting some low voltages and drops in clock speed, so will look to see if I can find a better PSU / cable:



    SD card is configured as follows:
    Device Boot Start End Sectors Size Id Type
    /dev/mmcblk0p1 8192 137215 129024 63M c W95 FAT32 (LBA)
    /dev/mmcblk0p2 137216 15500000 15362785 7.3G 83 Linux
    /dev/mmcblk0p3 15500001 61707551 46207551 22G 83 Linux


    But 'armbianmonitor -c /dev/mmcblk0p2' gives 'Checking disks is not permitted as root or through sudo. Exiting' am I just executing the wrong command?



    Tried using 'minerd' and 'cpuminer' but for each I get 'command not found'


    (Sorry for my ineptitude on this)

    Hi,


    I upgraded my RPI 2 B+ from OMV2 to OMV4 by doing a clean install.


    All seemed well at first, i.e. could access shares as I wanted, etc., but now it is crashing periodically and I don't know the cause :( (BTW It did not crash with OMV2 loaded - exactly the same hardware configuration)


    Once it has crashed, only a power off/on will bring it back - I can't access it through the GUI or TTY into it.


    After rebooting the OMV log is cleared, so I can't see any error messages that I can address ?(


    Config is:

    • RPI 2B+
    • 2 x external self powered USB hard drives
    • USB Gigabit ethernet adapter
    • OMV 4.1.19-1
    • Linux 4.14.98-v7+


    I'm only moderately technical and have very limited Linux knowledge. Can someone help me locate the fault please? Suggestions on where to look for faults....logs to view....tests....?


    Thanks in anticipation :thumbup: