Bin/elasticsearch-setup-passwords: No such file or directory


I am using elasticsearch 8.0 and I want to setup passwords for built-in users, so I enabled true and after restarting elasticsearch service I ran following command: "bin/elasticsearch-setup-passwords interactive" and it gives me below error
"bin/elasticsearch-setup-passwords: No such file or directory"
can someone help here, I was able to run this command on my previous deployment but not in here and they both were on same version.

Is there a reason you are running 8.0? It's not yet released.

oh sorry its 7.8.0

Please try with whole path:
/usr/share/elasticsearch/bin/elasticsearch-setup-passwords interactive