Thanks @renjith_nair for your reply.
I want to upgrade my Splunk Enterprise version so while upgrading it using tar should I upgrade it as a non-root user or as a root user? There should not be any permission denied issue during upgrade if I go with non-root user.
Please suggest some workaround if possible.
You can install splunk as a root but you shouldn't if possible. This is normally against the best practices considering the security aspects.
Please refer to below more information
https://docs.splunk.com/Documentation/Splunk/8.0.6/Installation/RunSplunkasadifferentornon-rootuser
Tar file installation : https://docs.splunk.com/Documentation/Splunk/8.0.6/Installation/InstallonLinux