mercredi 25 mars 2015

Can I restrict sudoer nopasswd to directory?


Maybe I should rephrase - what is the most secure way to accomplish my needs?


Details


I am using WinSCP to modify my Apache document_root. The directory /var/www/html has an owner and group of root. Using WinSCP I must log in as root to modify these files since sudo -s requires a password. I don't want to login with root remotely so what I'd like to do is add a sudoer with a no password requirement for /var/www/html. Is that possible?



Aucun commentaire:

Enregistrer un commentaire