#1075 prosodyctl --root cert ... demands root-owned certs dir

Reporter Zash
Owner Nobody
Stars ★ (1)  
  • Priority-Medium
  • Milestone-0.10
  • Type-Defect
  • Status-Accepted
  1. Zash on

    What steps will reproduce the problem? 1. chown prosody /etc/prosody/certs 2. sudo prosodyctl --root cert (anything) What is the expected output? No complaint, maybe? What do you see instead? The directory /etc/prosody/certs is not owned by the current user, won't be able to write files to it What version of the product are you using? On what operating system? 0.10.0. Reportedly Ubuntu. Please provide any additional information below. if pposix.getuid() ~= cert_dir_attrs.uid then will in this case only accept a root-owned directory Perhaps it should skip this check if running as root, since root is always allowed to write anything anywhere.

  2. Zash on

    Thanks to Hund on IRC for noticing this.

    • tags Milestone-0.10

New comment