bash: id: command not found -bash: [: : integer expression expected

I am using Debian GNU/Linux 10 (buster). I am able to login remotely via ssh. I noticed after giving my credentials it shows both for user and root

Password:
-bash: id: command not found
-bash: [: : integer expression expected
root@debian:~#

I didn’t find any solution regarding this problem. Do you have have any suggestion why I received it?