If you want to set the permission for a directory, such that except owner no one else should have access, even to view the directory contents
chmod 744 dirname
chmod 755 dirname
chmod 700 dirname
chmod 711 dirname