aaPanel_Captain
Sorry if this seems a bit thick, but I found it, I don't know if I will violate any terms/rules by saying this, but for advanced users if they need to enter some command when making the terminal open in a folder, I changed the following file: /www/server/panel/BTPanel/static/js/public.js, searching for on_open: so I added my command Term.send("sudo -i\n"); above Term.last_cd = "cd " + f_path;
And as a result, when opening the terminal in a folder, it automatically logged in as root
I use the aaPanel on Amazon instance, so I can't login directly as root, this ends up delaying the process of opening the terminal in a folder because I end up connecting with ec2-user and need to switch to root, so the cd would open in ec2-user now open in root