how give permission for reset apache without admin permission?











up vote
0
down vote

favorite












my user don't have admin permission and i do not want to give admin permission to them.



how give permission that they see log and reset and change config in apache?



is there apache admin group that add user to this group?










share|improve this question







New contributor




Sara Azizi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
























    up vote
    0
    down vote

    favorite












    my user don't have admin permission and i do not want to give admin permission to them.



    how give permission that they see log and reset and change config in apache?



    is there apache admin group that add user to this group?










    share|improve this question







    New contributor




    Sara Azizi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      my user don't have admin permission and i do not want to give admin permission to them.



      how give permission that they see log and reset and change config in apache?



      is there apache admin group that add user to this group?










      share|improve this question







      New contributor




      Sara Azizi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      my user don't have admin permission and i do not want to give admin permission to them.



      how give permission that they see log and reset and change config in apache?



      is there apache admin group that add user to this group?







      permissions apache2 groups






      share|improve this question







      New contributor




      Sara Azizi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Sara Azizi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Sara Azizi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked Nov 26 at 13:35









      Sara Azizi

      1




      1




      New contributor




      Sara Azizi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Sara Azizi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Sara Azizi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          In order to let the user see the log files, I would suggest changing the group ownership of /var/log/apache and all files in that directory to group www. You'll likely have to edit /etc/logrotate.d/apache2 to keep the new group permissions. Then add your user to the group www



          Use sudo permissions to let the user reset the service. Using visudo, add a line like username ALL=(root) /usr/sbin/service apache2 start,/usr/sbin/service apache2 stop,/usr/sbin/service apache2 restart.



          I would not allow the user to edit the apache config file. It would be difficult to give them permissions to do this without the possibility of them breaking system security.






          share|improve this answer





















          • this case have 20 machin and it's difficult.is there a group that apache is a member of it?
            – Sara Azizi
            Nov 26 at 14:28













          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          Sara Azizi is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1096173%2fhow-give-permission-for-reset-apache-without-admin-permission%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          In order to let the user see the log files, I would suggest changing the group ownership of /var/log/apache and all files in that directory to group www. You'll likely have to edit /etc/logrotate.d/apache2 to keep the new group permissions. Then add your user to the group www



          Use sudo permissions to let the user reset the service. Using visudo, add a line like username ALL=(root) /usr/sbin/service apache2 start,/usr/sbin/service apache2 stop,/usr/sbin/service apache2 restart.



          I would not allow the user to edit the apache config file. It would be difficult to give them permissions to do this without the possibility of them breaking system security.






          share|improve this answer





















          • this case have 20 machin and it's difficult.is there a group that apache is a member of it?
            – Sara Azizi
            Nov 26 at 14:28

















          up vote
          0
          down vote













          In order to let the user see the log files, I would suggest changing the group ownership of /var/log/apache and all files in that directory to group www. You'll likely have to edit /etc/logrotate.d/apache2 to keep the new group permissions. Then add your user to the group www



          Use sudo permissions to let the user reset the service. Using visudo, add a line like username ALL=(root) /usr/sbin/service apache2 start,/usr/sbin/service apache2 stop,/usr/sbin/service apache2 restart.



          I would not allow the user to edit the apache config file. It would be difficult to give them permissions to do this without the possibility of them breaking system security.






          share|improve this answer





















          • this case have 20 machin and it's difficult.is there a group that apache is a member of it?
            – Sara Azizi
            Nov 26 at 14:28















          up vote
          0
          down vote










          up vote
          0
          down vote









          In order to let the user see the log files, I would suggest changing the group ownership of /var/log/apache and all files in that directory to group www. You'll likely have to edit /etc/logrotate.d/apache2 to keep the new group permissions. Then add your user to the group www



          Use sudo permissions to let the user reset the service. Using visudo, add a line like username ALL=(root) /usr/sbin/service apache2 start,/usr/sbin/service apache2 stop,/usr/sbin/service apache2 restart.



          I would not allow the user to edit the apache config file. It would be difficult to give them permissions to do this without the possibility of them breaking system security.






          share|improve this answer












          In order to let the user see the log files, I would suggest changing the group ownership of /var/log/apache and all files in that directory to group www. You'll likely have to edit /etc/logrotate.d/apache2 to keep the new group permissions. Then add your user to the group www



          Use sudo permissions to let the user reset the service. Using visudo, add a line like username ALL=(root) /usr/sbin/service apache2 start,/usr/sbin/service apache2 stop,/usr/sbin/service apache2 restart.



          I would not allow the user to edit the apache config file. It would be difficult to give them permissions to do this without the possibility of them breaking system security.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 26 at 13:56









          Doug O'Neal

          26115




          26115












          • this case have 20 machin and it's difficult.is there a group that apache is a member of it?
            – Sara Azizi
            Nov 26 at 14:28




















          • this case have 20 machin and it's difficult.is there a group that apache is a member of it?
            – Sara Azizi
            Nov 26 at 14:28


















          this case have 20 machin and it's difficult.is there a group that apache is a member of it?
          – Sara Azizi
          Nov 26 at 14:28






          this case have 20 machin and it's difficult.is there a group that apache is a member of it?
          – Sara Azizi
          Nov 26 at 14:28












          Sara Azizi is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Sara Azizi is a new contributor. Be nice, and check out our Code of Conduct.













          Sara Azizi is a new contributor. Be nice, and check out our Code of Conduct.












          Sara Azizi is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1096173%2fhow-give-permission-for-reset-apache-without-admin-permission%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How did Captain America manage to do this?

          迪纳利

          南乌拉尔铁路局