The MeshCentral terminal doesn't set your shell environment, you're just jumping into a bash process spawned from the meshagent process. That's also why you see the current path is /usr/local/mesh_services/meshagent and not of /root.
How are you logging in? How are you becoming root? Do other users have the issue? Does it happen if you log in as a regular user, and "su -" or "sudo bash" ? Are you SSHing in from another OS, like Windows? Logging in a different way? So many questions. Does "grep root /etc/passwd" show a home directory set?
If you actually answered all of these questions from /u/Tall-Introduction414, someone may be able to give you an idea.
I answered, this is meshcentral. But for everything else i do ssh in or use proxmox gui and it works for me. Im the only user. But i got like 15 different debian 12 and 13 that are like this. Ubuntu as well. Not sure you understand what meshcentral is there.
Weird. Never seen this on Debian, Ubuntu, or anywhere else.
How are you logging in? How are you becoming root? Do other users have the issue? Does it happen if you log in as a regular user, and "su -" or "sudo bash" ? Are you SSHing in from another OS, like Windows? Logging in a different way? So many questions. Does "grep root /etc/passwd" show a home directory set?
Are you using bash? Is your TERM set right? You should be able to tab complete file paths.
Basically fresh Debian 13 install in an lxc running latest proxmox install. I for now dont have any other user When ssh into the box with windows it works?
7
u/samon33 Mar 10 '26 edited Mar 10 '26
The MeshCentral terminal doesn't set your shell environment, you're just jumping into a bash process spawned from the meshagent process. That's also why you see the current path is
/usr/local/mesh_services/meshagentand not of/root.When you open the Terminal, type
su -1
u/wossack Mar 10 '26
You mention about fixing it before - what have you tried?
Looks like you just need to set the home for the root user, but presume you’ve tried that. Eg ‘usermod -d /root root’
1
u/Tall-Introduction414 Mar 10 '26
Weird. Never seen this on Debian, Ubuntu, or anywhere else.
How are you logging in? How are you becoming root? Do other users have the issue? Does it happen if you log in as a regular user, and "su -" or "sudo bash" ? Are you SSHing in from another OS, like Windows? Logging in a different way? So many questions. Does "grep root /etc/passwd" show a home directory set?
Are you using bash? Is your TERM set right? You should be able to tab complete file paths.
1
u/Lalelul Mar 10 '26
export HOME=/path/to/home
Maybe check if /etc/passwd or your login setup is correct? Seems like a deeper issue