Error when going to Access Right Management

  • Hi Folks,


    I got this Error when going to Access Right Management


    Error #0:
    exception 'ErrorException' with message 'Undefined offset: 5' in /usr/share/php/openmediavault/system.inc:2341
    Stack trace:
    #0 /usr/share/php/openmediavault/system.inc(2341): exception_error_handler(8, 'Undefined offse...', '/usr/share/php/...', 2341, Array)
    #1 /usr/share/php/openmediavault/system.inc(2369): OMVSystemUser->getData('passwd')
    #2 /var/www/openmediavault/rpc/usermgmt.inc(156): OMVSystemUser->exists()
    #3 /var/www/openmediavault/rpc/usermgmt.inc(215): UserMgmtRpc->enumerateUsersByType('normal')
    #4 [internal function]: UserMgmtRpc->enumerateUsers(Array)
    #5 /usr/share/php/openmediavault/rpc.inc(265): call_user_func_array(Array, Array)
    #6 /var/www/openmediavault/rpc/usermgmt.inc(330): OMVRpc::exec('UserMgmt', 'enumerateUsers')
    #7 [internal function]: UserMgmtRpc->getUserList(Array)
    #8 /usr/share/php/openmediavault/rpc.inc(265): call_user_func_array(Array, Array)
    #9 /usr/share/php/openmediavault/rpc.inc(98): OMVRpc::exec('UserMgmt', 'getUserList', Array)
    #10 /var/www/openmediavault/rpc.php(44): OMVJsonRpcServer->handle()
    #11 {main}


    Kind regards
    R

    • Offizieller Beitrag

    What version of OMV? What is OMV installed on? usb stick? I assume you were trying to go to the User tab? Did you add any third party plugins/scripts?

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | 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!

  • Its a project im working on at school so i only can give information when im at it.
    This are the answers i got for you:
    What version of OMV? 0.4.32 ( Fedaykin )
    What is OMV installed on? Physical HDD
    I assume you were trying to go to the User tab? Yes
    Did you add any third party plugins/scripts? libcurl3-gnutls 7.21.0-2.1+squeeze4


    If you need further information just ask and i wil answer them.
    I will check the forum with responses but with certain things i just need to be at school.

    • Offizieller Beitrag

    What is the output of (as root):


    tail -n 10 /etc/passwd


    And no, it doesn't have any of your passwords in it :)

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | 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!

  • Did the cmd and this is what i received


    statd:x:103:65534::/var/lib/nfs:/bin/false
    messagebus:x:104:108::/var/run/dbus:/bin/false
    avahi:x:105:109:Avahi mDNS daemon,,,:/var/run/avahi-daemon:/bin/false
    sshd:x:106:65534::/var/run/sshd:/usr/sbin/nologin
    tftp:x:107:111:tftp daemon,,,:/srv/tftp:/bin/false
    snmp:x:108:112::/var/lib/snmp:/bin/false
    proftpd:x:109:65534::/var/run/proftpd:/bin/false
    ftp:x:110:65534::/home/ftp:/bin/false
    openmediavault:x:999:999::/home/openmediavault:/bin/sh
    admin:x:998:100:WebGUI administrator:/home/admin:/usr/sbin/nologin

    • Offizieller Beitrag

    The error is having an issue with your /etc/passwd file but I don't see anything there. Can you post your entire /etc/passwd?


    cat /etc/passwd

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | 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!

  • root:x:0:0:root:/root:/bin/bash
    daemon:x:1:1:daemon:/usr/sbin:/bin/sh
    bin:x:2:2:bin:/bin:/bin/sh
    sys:x:3:3:sys:/dev:/bin/sh
    sync:x:4:65534:sync:/bin:/bin/sync
    games:x:5:60:games:/usr/games:/bin/sh
    man:x:6:12:man:/var/cache/man:/bin/sh
    lp:x:7:7:lp:/var/spool/lpd:/bin/sh
    mail:x:8:8:mail:/var/mail:/bin/sh
    news:x:9:9:news:/var/spool/news:/bin/sh
    uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
    proxy:x:13:13:proxy:/bin:/bin/sh
    www-data:x:33:33:www-data:/var/www:/bin/sh
    backup:x:34:34:backup:/var/backups:/bin/sh
    list:x:38:38:Mailing List Manager:/var/list:/bin/sh
    irc:x:39:39:ircd:/var/run/ircd:/bin/sh
    gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
    nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
    libuuid:x:100:101::/var/lib/libuuid:/bin/sh
    ntp:x:101:103::/home/ntp:/bin/false
    postfix:x:102:105::/var/spool/postfix:/bin/false
    statd:x:103:65534::/var/lib/nfs:/bin/false
    messagebus:x:104:108::/var/run/dbus:/bin/false
    avahi:x:105:109:Avahi mDNS daemon,,,:/var/run/avahi-daemon:/bin/false
    sshd:x:106:65534::/var/run/sshd:/usr/sbin/nologin
    tftp:x:107:111:tftp daemon,,,:/srv/tftp:/bin/false
    snmp:x:108:112::/var/lib/snmp:/bin/false
    proftpd:x:109:65534::/var/run/proftpd:/bin/false
    ftp:x:110:65534::/home/ftp:/bin/false
    openmediavault:x:999:999::/home/openmediavault:/bin/sh
    admin:x:998:100:WebGUI administrator:/home/admin:/usr/sbin/nologin

    • Offizieller Beitrag

    Does the following (as root) give you the same output?


    getent passwd

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | 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

    AD users? That explains a little more. I'm sure that is what is messing up the access right management. It uses getent passwd to get the list of users. The AD users must not be formatted the way it wants. It is looking for the user home directory after the 4th colon in each line. I'm guessing your AD users don't have that? Can you post a few of the lines?

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | 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

    You can remove it. Not sure why that is giving you an error. It looks formatted correctly. Maybe the error is actually coming from converting the uid and gid?? I definitely think it is the AD part messing things up. Maybe Volker can help?

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | 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

    While he is a member of this forum, I would file a bug report here. Worst case, he will tell you AD is unsupported.

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | 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!

  • Hi,


    I'm sarching for an issue with NFS and I found this topic. I'm using OMV with an a domain controller running under Windows 2008 R2. I did not find any issue when I try to edit ACLS in OpenMediaVault.


    I tried again right now.


    Remcosb


    How did you configure your OMV ? Is it an AD member or is it your domain controller ?

    My wiki : http://howto-it.dethegeek.eu.org


    = latest setup =
    proxmox VE 6 hypervisor on a J1900 CPU + 8GB RAM
    guests : OpenWRT (VM), OMV 5 (VM), Samba 4 domain controller (LXC)
    OMV alive since 2011 I guess : never crashed, always upgraded : stronger than my hard drives.


    Searching for a P2P online storage solution : must be open source, client side encrypted, quota supprt. Tahoe LAFS is the nearest, but is lacking quota. Would be perfect to build a OMV based, anonymous online storage for backups

Jetzt mitmachen!

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