Do we need to change owner & group from 'toto' to 'apache'

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
Soumik
Posts: 20
Joined: Fri May 17, 2024 4:54 am

Do we need to change owner & group from 'toto' to 'apache'

Post by Soumik »

Hi Team,

In my production environment I see for cacti 1.2.18 list of files & folders, owner & group are defined as "apache".
But we configured a new instance, where I see for cacti 1.2.18 list of files & folders, owner & group are defined as "toto".
Do i need to change the owner & group for new instance too ?
------------------------------------------------------
For Prod,
-rw-rw-r-- 1 apache apache 49K Jul 4 2021 data_queries.php
-rw-rw-r-- 1 apache apache 35K Jul 4 2021 data_input.php
-rw-rw-r-- 1 apache apache 34K Jul 4 2021 data_debug.php
-rw-rw-r-- 1 apache apache 25K Jul 4 2021 color_templates.php
-rw-rw-r-- 1 apache apache 13K Jul 4 2021 color_templates_items.php
-rw-rw-r-- 1 apache apache 24K Jul 4 2021 color.php
-rw-rw-r-- 1 apache apache 8.7K Jul 4 2021 cmd_realtime.php
-rwxrwxr-x 1 apache apache 31K Jul 4 2021 cmd.php
-rw-rw-r-- 1 apache apache 232K Jul 4 2021 CHANGELOG
-rw-rw-r-- 1 apache apache 29K Jul 4 2021 cdef.php
-rw-rw-r-- 1 apache apache 123K Jul 4 2021 cacti.sql
-rw-rw-r-- 1 apache apache 38K Jul 4 2021 automation_tree_rules.php
-rw-rw-r-- 1 apache apache 19K Jul 4 2021 automation_templates.php
-rw-rw-r-- 1 apache apache 31K Jul 4 2021 automation_snmp.php
-rw-rw-r-- 1 apache apache 42K Jul 4 2021 automation_networks.php
-rw-rw-r-- 1 apache apache 36K Jul 4 2021 automation_graph_rules.php
-rw-rw-r-- 1 apache apache 24K Jul 4 2021 automation_devices.php
-rw-rw-r-- 1 apache apache 19K Jul 4 2021 auth_profile.php
-rw-rw-r-- 1 apache apache 15K Jul 4 2021 auth_changepassword.php
-rw-rw-r-- 1 apache apache 26K Jul 4 2021 aggregate_templates.php
-rw-rw-r-- 1 apache apache 62K Jul 4 2021 aggregate_graphs.php
-rw-rw-r-- 1 apache apache 4.3K Jul 4 2021 about.php
drwxrwxr-x 4 apache apache 4.0K Jul 4 2021 locales
drwxrwxr-x 3 apache apache 4.0K Jul 4 2021 docs
drwxrwxr-x 2 apache apache 4.0K Sep 4 2021 scripts
drwxrwxr-x 5 apache apache 4.0K Sep 5 2021 plugins
drwxrwxr-x 2 apache apache 4.0K Sep 24 2021 images
-rw-r----- 1 root root 5.6K Oct 8 2021 index.php.orig
-rw-rw-r-- 1 apache apache 5.6K Oct 8 2021 index.php
-rw-rw-r-- 1 apache apache 4.6K Oct 8 2021 logout.php
drwxrwxr-x 8 apache apache 4.0K Dec 22 2021 include
-rw-r----- 1 root root 5.6K Jan 10 2022 index.php.running
-rw-r----- 1 root root 30K Jan 10 2022 auth_login.php.orig
-rw-rw-r-- 1 apache apache 30K Jan 11 2022 auth_login.php
drwxrwxr-x 2 apache apache 4.0K Nov 21 2022 cli
drwxrwxr-x 2 apache apache 4.0K Nov 28 2022 lib
-rwxr-x--- 1 root root 35K Nov 28 2022 poller_boost.php_bak_20221128
-rwxrwxr-x 1 apache apache 35K Nov 28 2022 poller_boost.php
drwxrwxr-x 2 apache apache 4.0K Jun 10 00:04 log
drwxrwxr-x 2 apache apache 2.1M Jun 10 12:50 rra
root@grwcacticpe01 # pwd
/var/www/html/cacti-1.2.18
root@grwcacticpe01 #

------------------------------------------
For New Instance
-rw-rw-r-- 1 toto toto 87K Jul 4 2021 graphs.php
-rw-rw-r-- 1 toto toto 33K Jul 4 2021 graphs_new.php
-rw-rw-r-- 1 toto toto 27K Jul 4 2021 graphs_items.php
-rw-rw-r-- 1 toto toto 18K Jul 4 2021 graph_realtime.php
-rw-rw-r-- 1 toto toto 22K Jul 4 2021 graph.php
-rw-rw-r-- 1 toto toto 9.0K Jul 4 2021 graph_json.php
-rw-rw-r-- 1 toto toto 5.7K Jul 4 2021 graph_image.php
-rw-rw-r-- 1 toto toto 14K Jul 4 2021 gprint_presets.php
drwxrwxr-x 2 toto toto 156 Jul 4 2021 formats
-rw-rw-r-- 1 toto toto 44K Jul 4 2021 data_templates.php
-rw-rw-r-- 1 toto toto 66K Jul 4 2021 data_sources.php
-rw-rw-r-- 1 toto toto 36K Jul 4 2021 data_source_profiles.php
-rw-rw-r-- 1 toto toto 49K Jul 4 2021 data_queries.php
-rw-rw-r-- 1 toto toto 35K Jul 4 2021 data_input.php
-rw-rw-r-- 1 toto toto 34K Jul 4 2021 data_debug.php
-rw-rw-r-- 1 toto toto 25K Jul 4 2021 color_templates.php
-rw-rw-r-- 1 toto toto 13K Jul 4 2021 color_templates_items.php
-rw-rw-r-- 1 toto toto 24K Jul 4 2021 color.php
-rw-rw-r-- 1 toto toto 8.7K Jul 4 2021 cmd_realtime.php
-rwxrwxr-x 1 toto toto 31K Jul 4 2021 cmd.php
drwxrwxr-x 2 toto toto 4.0K Jul 4 2021 cli
-rw-rw-r-- 1 toto toto 232K Jul 4 2021 CHANGELOG
-rw-rw-r-- 1 toto toto 29K Jul 4 2021 cdef.php
-rw-rw-r-- 1 toto toto 123K Jul 4 2021 cacti.sql
-rw-rw-r-- 1 toto toto 38K Jul 4 2021 automation_tree_rules.php
-rw-rw-r-- 1 toto toto 19K Jul 4 2021 automation_templates.php
-rw-rw-r-- 1 toto toto 31K Jul 4 2021 automation_snmp.php
-rw-rw-r-- 1 toto toto 42K Jul 4 2021 automation_networks.php
-rw-rw-r-- 1 toto toto 36K Jul 4 2021 automation_graph_rules.php
-rw-rw-r-- 1 toto toto 24K Jul 4 2021 automation_devices.php
-rw-rw-r-- 1 toto toto 19K Jul 4 2021 auth_profile.php
-rw-rw-r-- 1 toto toto 30K Jul 4 2021 auth_login.php
-rw-rw-r-- 1 toto toto 15K Jul 4 2021 auth_changepassword.php
-rw-rw-r-- 1 toto toto 26K Jul 4 2021 aggregate_templates.php
-rw-rw-r-- 1 toto toto 62K Jul 4 2021 aggregate_graphs.php
-rw-rw-r-- 1 toto toto 4.3K Jul 4 2021 about.php
drwxrwxr-x 4 toto toto 92 Jul 4 2021 locales
drwxrwxr-x 3 toto toto 4.0K Jul 4 2021 docs
drwxrwxr-x 8 toto toto 4.0K Jun 10 13:39 include
[root@grwcactiacc01 cacti-1.2.18]#
[root@grwcactiacc01 cacti-1.2.18]#
[root@grwcactiacc01 cacti-1.2.18]# pwd
/var/www/html/cacti-1.2.18
[root@grwcactiacc01 cacti-1.2.18]#

Br
Soumik
Attachments
Production Files and folders of owners & groups.png
Production Files and folders of owners & groups.png (84.78 KiB) Viewed 1108 times
New instance .png
New instance .png (79.38 KiB) Viewed 1108 times
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Do we need to change owner & group from 'toto' to 'apache'

Post by TheWitness »

I normally change owner on everything to Apache or whatever the website or the cactid is running as.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Soumik
Posts: 20
Joined: Fri May 17, 2024 4:54 am

Re: Do we need to change owner & group from 'toto' to 'apache'

Post by Soumik »

Hi TheWitness,

Thanks for your reply.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest