Past ExamsRwanda ICT preparation

Topics / Operating Systems

Files uploaded by root into /var/www/portal cannot be read by the web server, which runs as the user www-data. Which command gives www-data ownership of the whole directory?

Des fichiers déposés par root dans /var/www/portal ne peuvent pas être lus par le serveur web, qui tourne sous l'utilisateur www-data. Quelle commande donne à www-data la propriété de tout le répertoire ?

Answers
Achmod www-data /var/www/portalchmod www-data /var/www/portal
Bchgrp -R root /var/www/portalchgrp -R root /var/www/portal
Cusermod -d /var/www/portal -aG root www-datausermod -d /var/www/portal -aG root www-data
Dchown -R www-data:www-data /var/www/portalchown -R www-data:www-data /var/www/portal
The answer and explanation are in the full bank.

This question is one of 2,831 in the paid banks. Each comes with the correct answer and the reasoning behind it, not just a mark.

Unlock for 5,000 RWF

MIFOTRA exam practicealigned to Practice set: Linux and CMD Commands·2 marks·Medium

More Operating Systems questions