<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: let a normal user bounce httpd (apache) ? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/let-a-normal-user-bounce-httpd-apache/m-p/3123180#M8055</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;apache runs on poort 80 (-1024 = root poort) if you change it to 8080 you do not need root privaliges to start apache.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Gideon</description>
    <pubDate>Wed, 19 Nov 2003 09:00:04 GMT</pubDate>
    <dc:creator>G. Vrijhoeven</dc:creator>
    <dc:date>2003-11-19T09:00:04Z</dc:date>
    <item>
      <title>let a normal user bounce httpd (apache) ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/let-a-normal-user-bounce-httpd-apache/m-p/3123177#M8052</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I have created a normal user (no root privileges) for our webmaster.&lt;BR /&gt;I have given him write privileges to the apache-config files, but after changing the config-files he want to bounce the http-daemons.&lt;BR /&gt;&lt;BR /&gt;How can I achieve he doesn't need the root-password to do this ?&lt;BR /&gt;Should I create a STOP and START-script, but I need to run these as root, can this be done via SUID-bit (s) ?  How does this work ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;  Chris MARREEL</description>
      <pubDate>Wed, 19 Nov 2003 05:04:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/let-a-normal-user-bounce-httpd-apache/m-p/3123177#M8052</guid>
      <dc:creator>MARREEL Chris_1</dc:creator>
      <dc:date>2003-11-19T05:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: let a normal user bounce httpd (apache) ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/let-a-normal-user-bounce-httpd-apache/m-p/3123178#M8053</link>
      <description>Scripting won't work.&lt;BR /&gt;You may try to add him to apache group, but I'm not sure it'll work either, as httpd starts with root rights, meaning that root, and root only can start it...</description>
      <pubDate>Wed, 19 Nov 2003 05:39:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/let-a-normal-user-bounce-httpd-apache/m-p/3123178#M8053</guid>
      <dc:creator>Jerome Henry</dc:creator>
      <dc:date>2003-11-19T05:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: let a normal user bounce httpd (apache) ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/let-a-normal-user-bounce-httpd-apache/m-p/3123179#M8054</link>
      <description>You can use "sudo" to temporarily give a user root privs for a command.&lt;BR /&gt; &lt;BR /&gt;&lt;A href="http://www.courtesan.com/sudo/" target="_blank"&gt;http://www.courtesan.com/sudo/&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;Alternatively, you need to create a wrapper around your restart command and set the SETUID bit.&lt;BR /&gt; &lt;BR /&gt;This is most likely to be a 'C' program that does a "setuid(0)" and then runs the "apachectl" command.  You would set this as SETUID with something like chmod 6755.  &lt;BR /&gt; &lt;BR /&gt;Essesntially, SETUID means the program will run  with the permissions of the owner of the program.  So if the program is owned by root, then it will have root authority.  You can not have SETUID scripts any more.</description>
      <pubDate>Wed, 19 Nov 2003 06:16:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/let-a-normal-user-bounce-httpd-apache/m-p/3123179#M8054</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-11-19T06:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: let a normal user bounce httpd (apache) ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/let-a-normal-user-bounce-httpd-apache/m-p/3123180#M8055</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;apache runs on poort 80 (-1024 = root poort) if you change it to 8080 you do not need root privaliges to start apache.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Gideon</description>
      <pubDate>Wed, 19 Nov 2003 09:00:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/let-a-normal-user-bounce-httpd-apache/m-p/3123180#M8055</guid>
      <dc:creator>G. Vrijhoeven</dc:creator>
      <dc:date>2003-11-19T09:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: let a normal user bounce httpd (apache) ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/let-a-normal-user-bounce-httpd-apache/m-p/3123181#M8056</link>
      <description>Hmm, I am not getting the warm and fussy when giving some regular user the power of root to run an application? But if you must, you can use sudo, I believe most linux distro should have it; for redhat the conf file is in /etc/sudoers. Have at it and becarefull.</description>
      <pubDate>Wed, 19 Nov 2003 09:01:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/let-a-normal-user-bounce-httpd-apache/m-p/3123181#M8056</guid>
      <dc:creator>K.C. Chan</dc:creator>
      <dc:date>2003-11-19T09:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: let a normal user bounce httpd (apache) ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/let-a-normal-user-bounce-httpd-apache/m-p/3123182#M8057</link>
      <description>Giving an ordinary user the power to start and stop httpd improves security.  If the httpd daemon is exploited in some way the exploit fails to gain root priviledges.&lt;BR /&gt;&lt;BR /&gt;You can do this in an automated way, by putting httpd in a chroot jail.  The easisest way is to run bastille on your system.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.bastillelinux.org" target="_blank"&gt;http://www.bastillelinux.org&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 19 Nov 2003 09:54:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/let-a-normal-user-bounce-httpd-apache/m-p/3123182#M8057</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-11-19T09:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: let a normal user bounce httpd (apache) ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/let-a-normal-user-bounce-httpd-apache/m-p/3123183#M8058</link>
      <description>You may try to see if 'apachectl graceful' will work from a non root account.  This will gracefully reload the configuration changes.&lt;BR /&gt;&lt;BR /&gt;I use sudo to allow users to perform tasks like this.  You can limit the commands they can execute, as well as the user id the command is performed as.&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Nov 2003 09:35:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/let-a-normal-user-bounce-httpd-apache/m-p/3123183#M8058</guid>
      <dc:creator>Bill Thorsteinson</dc:creator>
      <dc:date>2003-11-20T09:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: let a normal user bounce httpd (apache) ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/let-a-normal-user-bounce-httpd-apache/m-p/3123184#M8059</link>
      <description>I was brain dead during my earlier post.&lt;BR /&gt;&lt;BR /&gt;We have a user called ias.  That user owns the apache binaries.&lt;BR /&gt;&lt;BR /&gt;In order for this user to open a process on a port 80, the SUID bit had to be set.'&lt;BR /&gt;&lt;BR /&gt;In other words you were right.  We even skpped that part by running apache on port 7777&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 20 Nov 2003 10:37:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/let-a-normal-user-bounce-httpd-apache/m-p/3123184#M8059</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-11-20T10:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: let a normal user bounce httpd (apache) ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/let-a-normal-user-bounce-httpd-apache/m-p/3123185#M8060</link>
      <description>Thanks a lot,&lt;BR /&gt;&lt;BR /&gt;I have looked at SUDO, and this indeed is a good tool and easy to configure.&lt;BR /&gt;&lt;BR /&gt;I have added a few lines to the /etc/sudoers :&lt;BR /&gt;webmaster       ALL=/etc/init.d/httpd stop&lt;BR /&gt;webmaster       ALL=/etc/init.d/httpd start&lt;BR /&gt;webmaster       ALL=/etc/init.d/httpd restart&lt;BR /&gt;&lt;BR /&gt;And our webmaster can easily bounce the httpd daemons.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;  Chris MARREEL</description>
      <pubDate>Thu, 20 Nov 2003 12:40:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/let-a-normal-user-bounce-httpd-apache/m-p/3123185#M8060</guid>
      <dc:creator>MARREEL Chris_1</dc:creator>
      <dc:date>2003-11-20T12:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: let a normal user bounce httpd (apache) ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/let-a-normal-user-bounce-httpd-apache/m-p/3123186#M8061</link>
      <description>Great !&lt;BR /&gt;But be aware that your webmaster is root on doing sudo allowed commands.&lt;BR /&gt;&lt;BR /&gt;J</description>
      <pubDate>Thu, 20 Nov 2003 12:55:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/let-a-normal-user-bounce-httpd-apache/m-p/3123186#M8061</guid>
      <dc:creator>Jerome Henry</dc:creator>
      <dc:date>2003-11-20T12:55:21Z</dc:date>
    </item>
  </channel>
</rss>

