• Webconn Technology
    • GPU Server
      • Dedicated GPU Servers with NVIDIA RTX/A100 GPUs for accelerated AI training, rendering, and scientific computing. Features CUDA cores, 24GB-141GB VRAM, and parallel processing. Pre-configured with TensorFlow/PyTorch.

      • nvidia rtx A6000
    • Dedicated Server
      • Experience blazing-fast speeds & ironclad security with your own dedicated server. No shared resources. Fully customizable plans for gaming, e-commerce, and big data. Start now!

      • datacenter
    • Shared Hosting
      • Get user-friendly DirectAdmin shared hosting for your website. Enjoy an intuitive control panel, one-click app installs, and reliable performance. Perfect for blogs, small business sites, and portfolios.

      • shared hosting web
    • Domains
      • Search and register the perfect domain name for your website. Get a memorable .com, .net, .org or niche TLD to start building your brand online. Includes free privacy protection.

    • VPS
      • Experience the power of a dedicated server without the high cost. Our VPS hosting guarantees CPU, RAM, and storage for your site, ensuring optimal performance and stability.

      • data center
  • Blog
  • Dashboard

How to change the ownership of httpd process?

apache
  • The owner and group of httpd-related processes is “apache” by default, as set in the apache configuration file (httpd.conf) shown below.

User apache
Group apache

  • You can confirm the user name and group of httpd process by using the ps command as follows.

$ ps -aux | grep httpd
root 9773 0.0 0.0 4520 685 pts/3 R+ 19:19 0:00 grep --color httpd
root 9773 0.0 0.5 18564 5736 ? Ss Aug19 0:00 /usr/sbin/httpd
apache 9773 0.0 0.2 18564 3068 ? S Aug19 0:00 /usr/sbin/httpd
apache 9773 0.0 0.2 18564 3068 ? S Aug19 0:00 /usr/sbin/httpd

  • If you want to change the owner of the httpd, simply edit /etc/httpd/conf/httpd.conf and replace the User and Group directives with any other user/groupd.

User newuser
Group newgroup

  • Restart apache httpd service.

systemctl restart httpd

  • Confirm the modification as follows.

ps -aux | grep httpd

Comments

Leave a Reply