Create a shell user - PHP Fatal error: Uncaught TypeError: realpath()
I tryied to create a shell user
28.02.2023-18:01 - WARNING - There is already a lockfile set, but no process running with this pid (180528). Continuing.
28.02.2023-18:01 - DEBUG [plugins.inc:155] - Calling function 'check_phpini_changes' from plugin 'webserver_plugin' raised by action 'server_plugins_loaded'.
28.02.2023-18:01 - DEBUG [server:177] - Found 7 changes, starting update process.
28.02.2023-18:01 - DEBUG [plugins.inc:118] - Calling function 'insert' from plugin 'shelluser_base_plugin' raised by event 'shell_user_insert'.
28.02.2023-18:01 - DEBUG [system.inc:2399] - safe_exec cmd: chattr -i '/var/www/clients/client3/web6' - return code: 0
useradd: user 'USER1234' already exists
28.02.2023-18:01 - DEBUG [system.inc:2399] - safe_exec cmd: useradd -d '/var/www/clients/client3/web6/home/USER1234' -g 'client3' -o -s '/bin/false' -u '5007' 'USER1234' - return code: 9
28.02.2023-18:01 - DEBUG [shelluser base plugin.inc:138] - Executed command: useradd -d ? -g ? -o -s ? -u ? ?
28.02.2023-18:01 - DEBUG [shelluser base plugin.inc:139] - Added shelluser: USER1234
28.02.2023-18:01 - DEBUG [shelluser base plugin.inc:431] - ssh-rsa setup shelluser_base
28.02.2023-18:01 - DEBUG [system.inc:2399] - safe_exec cmd: mktemp -dt id_rsa.XXXXXXXX - return code: 0
PHP Warning: Array to string conversion in /usr/local/ispconfig/server/lib/classes/functions.inc.php on line 473
28.02.2023-18:01 - DEBUG [system.inc:2399] - safe_exec cmd: ssh-keygen -t rsa -C 'USER1234-rsa-key-1677603714' -f 'Array63fe338261e968.84316028' -N "" - return code: 0
28.02.2023-18:01 - WARNING - Action aborted, file is a symlink: Array63fe338261e968.84316028
PHP Warning: Undefined array key "hostname" in /usr/local/ispconfig/server/lib/app.inc.php on line 324
PHP Warning: Undefined array key "hostname" in /usr/local/ispconfig/server/lib/app.inc.php on line 324
28.02.2023-18:01 - WARNING - Action aborted, file is a symlink: Array63fe338261e968.84316028.pub
PHP Warning: Undefined array key "hostname" in /usr/local/ispconfig/server/lib/app.inc.php on line 324
PHP Warning: Undefined array key "hostname" in /usr/local/ispconfig/server/lib/app.inc.php on line 324
28.02.2023-18:01 - DEBUG [db mysql.inc:523] - NON-String given in escape function! (boolean)
28.02.2023-18:01 - DEBUG [db mysql.inc:523] - NON-String given in escape function! (boolean)
PHP Fatal error: Uncaught TypeError: realpath(): Argument #1 ($path) must be of type string, array given in /usr/local/ispconfig/server/lib/classes/system.inc.php:946
Stack trace:
#0 /usr/local/ispconfig/server/lib/classes/system.inc.php(946): realpath()
#1 /usr/local/ispconfig/server/lib/classes/functions.inc.php(480): system->rmdir()
#2 /usr/local/ispconfig/server/plugins-available/shelluser_base_plugin.inc.php(468): functions->generate_ssh_key()
#3 /usr/local/ispconfig/server/plugins-available/shelluser_base_plugin.inc.php(157): shelluser_base_plugin->_setup_ssh_rsa()
#4 /usr/local/ispconfig/server/lib/classes/plugins.inc.php(120): shelluser_base_plugin->insert()
#5 /usr/local/ispconfig/server/mods-available/web_module.inc.php(150): plugins->raiseEvent()
#6 /usr/local/ispconfig/server/lib/classes/modules.inc.php(302): web_module->process()
#7 /usr/local/ispconfig/server/lib/classes/modules.inc.php(235): modules->raiseTableHook()
#8 /usr/local/ispconfig/server/server.php(180): modules->processDatalog()
#9 {main}
thrown in /usr/local/ispconfig/server/lib/classes/system.inc.php on line 946
Edited by Claudius