On Drupal 7 drush is not working and set permission to 6226 on for owner and group for module install directory ? and also the new module does not show up on the module install page , even after you correct the permissions with commands like :
chown -R root:root /var/www/html
chmod -R 640 /var/www/html
find /var/www/html -type d -exec chmod u=rwx,g=rx,o= {} \;
find /var/www/html/sites/default/files -type d -exec chmod g+w {};
After all this the new modules still do not show up in the install module page.