Change users passwords in latest versions 26.0.4 and 27.0.1 does not work

As admin I was requested to change a password for a user that is not able to.

Nextcloud version (eg, 20.0.5): 27.0.1 and 26.0.4
Operating system and version (eg, Ubuntu 20.04): Debian 11
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.56
PHP version (eg, 7.4): 8.1

The issue you are facing:

I change the password of the user as admin on Users console and it does not work.

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. I go to “Users”, find the user, click on pencil button (edit), put a new password and mark V button.
  2. I have no error or success message but I cannot login as the password I just set.

I tried on Firefox and Brave.

The output of your Nextcloud log in Admin > Logging:

Nothing shows on the log after changing many times.

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

$CONFIG = array (
  'passwordsalt' => 'salt',
  'secret' => 'sdafasdfmnsecret',
  'trusted_domains' => 
  array (
    0 => '',
  'datadirectory' => '/ndata',
  'dbtype' => 'mysql',
  'version' => '',
  'overwrite.cli.url' => '',
  'dbname' => 'nextcloud',
  'dbhost' => '',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'ncadmin',
  'dbpassword' => 'password',
  'installed' => true,
  'instanceid' => 'instid',
  'default_phone_region' => 'BE',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => '0',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'updater.secret' => '$secret',

You forgot to hit the arrow [ → ] button: image
prior to clicking the checkmark image

and if it wasn’t the case (just forgot to describe it here). check again whether the entered new password corresponds to the password policy in terms of length and complexity.

Hope this helps,
Much luck!

1 Like

Yes, you are right. Sorry for that.