jeudi 26 février 2015

Set hostname without root, and without CAP_SYS_ADMIN


I have an application that I want to be able to change the hostname in Linux. Currently doing so by running the hostname command. I don't want to set CAP_SYS_ADMIN either. I also don't want to edit /etc/hostname and reboot.


Is there a capability that only just allows changing the hostname? If not what are my options?



Aucun commentaire:

Enregistrer un commentaire