Is there any way to disable wifi show password in ubuntu 18.04 or is there any way stop system to store wifi passwords.
All OSes have this out of box, what you're asking is a feature request. You could however restrict access to network settings by : sudo chmod 700 $(which nm-connection-editor)
. However, As mentioned by @triplee, changing permissions on system resources is not a ideal/recommended solution.