Perhaps it is not possible to use it in PHP with exec().
Please test all commands first without PHP.
If that works post your commands and perhaps than we find a php-script.
thank you for the offer.
I don’t have SSH access to this cloud, so i tried a lot with occ&PHP.
The last way was to pipe the password inside the exec() function.
But this will not work with an enabled save_mode, i read…
If you execute the password-setting and adding the user in two “exec” instructions, it will not work, because the password is not persistent set and will be “forgotten”, if the shell command ends.
If you set the password variable and add the user in the same “exec” command, the variable still should be available at occ-command.
The “&&” excutes the occ-command only, if setting the password was successful.