Users can't change password

    • OMV 2.x
    • Users can't change password

      Hi,

      My users can't change their passwords :

      Source Code

      1. Error #2002:
      2. exception 'OMVException' with message 'Invalid method parameter: gid does not exist, and it is not an optional property.' in /usr/share/php/openmediavault/rpcservice.inc:187
      3. Stack trace:
      4. #0 /usr/share/openmediavault/engined/rpc/usermgmt.inc(516): OMVRpcServiceAbstract->validateMethodParams(Array, '{\n\t\t\t "type":"...')
      5. #1 [internal function]: OMVRpcServiceUserMgmt->setUser(Array, Array)
      6. #2 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
      7. #3 /usr/share/openmediavault/engined/rpc/usermgmt.inc(662): OMVRpcServiceAbstract->callMethod('setUser', Array, Array)
      8. #4 [internal function]: OMVRpcServiceUserMgmt->setUserByContext(Array, Array)
      9. #5 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
      10. #6 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('setUserByContex...', Array, Array)
      11. #7 /usr/sbin/omv-engined(500): OMVRpc::exec('UserMgmt', 'setUserByContex...', Array, Array, 1)
      12. #8 {main}
      Display All


      I can change the passwords with the admin account, but the users can't change themselves the password of their account ...
    • it's 2.1 (stone burner).

      Source Code

      1. ​ cat /etc/group
      2. root:x:0:
      3. daemon:x:1:
      4. bin:x:2:
      5. sys:x:3:
      6. adm:x:4:
      7. tty:x:5:
      8. disk:x:6:
      9. lp:x:7:
      10. mail:x:8:
      11. news:x:9:
      12. uucp:x:10:
      13. man:x:12:
      14. proxy:x:13:
      15. kmem:x:15:
      16. dialout:x:20:
      17. fax:x:21:
      18. voice:x:22:
      19. cdrom:x:24:
      20. floppy:x:25:
      21. tape:x:26:
      22. sudo:x:27:
      23. audio:x:29:
      24. dip:x:30:
      25. www-data:x:33:
      26. backup:x:34:
      27. operator:x:37:
      28. list:x:38:
      29. irc:x:39:
      30. src:x:40:
      31. gnats:x:41:
      32. shadow:x:42:
      33. utmp:x:43:
      34. video:x:44:
      35. sasl:x:45:
      36. plugdev:x:46:
      37. staff:x:50:
      38. games:x:60:
      39. users:x:100:user1,user2,user3,user4,user5,user6
      40. nogroup:x:65534:
      41. libuuid:x:101:
      42. crontab:x:102:
      43. fuse:x:103:
      44. ntp:x:104:
      45. ssl-cert:x:105:
      46. postfix:x:106:
      47. postdrop:x:107:
      48. ssh:x:108:
      49. messagebus:x:109:
      50. avahi:x:110:
      51. netdev:x:111:
      52. tftp:x:112:
      53. snmp:x:113:
      54. sambashare:x:114:
      55. openmediavault:x:999:
      56. groupeIT:1000:
      Display All
    • Source Code

      1. ​cat /etc/passwd
      2. root:x:0:0:root:/root:/bin/bash
      3. daemon:x:1:1:daemon:/usr/sbin:/bin/sh
      4. bin:x:2:2:bin:/bin:/bin/sh
      5. sys:x:3:3:sys:/dev:/bin/sh
      6. sync:x:4:65534:sync:/bin:/bin/sync
      7. games:x:5:60:games:/usr/games:/bin/sh
      8. man:x:6:12:man:/var/cache/man:/bin/sh
      9. lp:x:7:7:lp:/var/spool/lpd:/bin/sh
      10. mail:x:8:8:mail:/var/mail:/bin/sh
      11. news:x:9:9:news:/var/spool/news:/bin/sh
      12. uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
      13. proxy:x:13:13:proxy:/bin:/bin/sh
      14. www-data:x:33:33:www-data:/var/www:/bin/sh
      15. backup:x:34:34:backup:/var/backups:/bin/sh
      16. list:x:38:38:Mailing List Manager:/var/list:/bin/sh
      17. irc:x:39:39:ircd:/var/run/ircd:/bin/sh
      18. gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
      19. nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
      20. libuuid:x:100:101::/var/lib/libuuid:/bin/sh
      21. ntp:x:101:104::/home/ntp:/bin/false
      22. postfix:x:102:106::/var/spool/postfix:/bin/false
      23. messagebus:x:103:109::/var/run/dbus:/bin/false
      24. avahi:x:104:110:Avahi mDNS daemon,,,:/var/run/avahi-daemon:/bin/false
      25. sshd:x:105:65534::/var/run/sshd:/usr/sbin/nologin
      26. tftp:x:106:112:tftp daemon,,,:/srv/tftp:/bin/false
      27. snmp:x:107:113::/var/lib/snmp:/bin/false
      28. statd:x:108:65534::/var/lib/nfs:/bin/false
      29. proftpd:x:109:65534::/var/run/proftpd:/bin/false
      30. ftp:x:110:65534::/srv/ftp:/bin/false
      31. openmediavault:x:999:999::/home/openmediavault:/bin/sh
      32. admin:x:998:100:WebGUI administrator:/home/admin:/usr/sbin/nologin
      33. user6:x:1000:100::/media/cf561cdd-797f-4487-a5ce-4da30134ac50/Users//user6:/bin/dash
      34. user5:x:1001:100::/home/user5:/bin/bash
      35. user4:x:1002:100::/home/user4:/bin/dash
      36. user3:x:1003:100::/home/user3:/bin/false
      37. user2:x:1004:100::/home/user2:/bin/dash
      38. user1:x:1005:100::/home/user1:/bin/bash
      Display All
    • Looking at the code from the stacktrace looks like omv is trying to read a value from config.xml that's not allowed in between the user xml tag.
      Is this a new install or you upgraded from an older version?

      If you have omv-extras installed can you run this command in terminal and post the results here:

      omv-showkey users

      The result might be big because includes other stuff. Look carefully at the beginning, the relevant entries for user1 to 6 should be there you can post that info here.
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server