Prevent users from having shell access and running commands by setting their home directory to /dev/null and setting their shell to /usr/bin/false.