title: Linux BASH script to determine number of users logged in?
body: <p>i need help in writing BASH script that determines the number of potential users for the system by getting a count of the number of passwords contained in the system's password file.
      i tried /etc/passwd. It always comes up saying "Permission Denied".
       and also the script that determines the number of users currently logged in to the system.This script is to be run in an unattended batch manner without any input from the keyboard other than being invoked. </p>
  
  <p>thank you.</p>