Quote:
Originally Posted by
solaris_1977
I got the point. It may be nature of application, the way it is creating file with root ownership. I can check with application owner, if this nature can be changed.
But, is it possible at all, to give sudo access to app_user to remove that root owned file ? I just want to have my statement correct, before jumping into discussion with them.
Probably the worst approach to fixing a problem is writing more code to paper over the symptom of the problem instead of just fixing the actual problem.
Your problem here is a file has ownership/permissions that prevent processing per your system's requirements.
Instead of fixing
that problem, your proposed solution is to write even more code and/or create something new in order to change the
symptom.
So instead of a fixed problem, you now have a problem, a patch that hides that problem, an entire set of undocumented dependencies for working around that problem, and a requirement to spend future resources keeping that patch working.
Ever wonder how computer systems get unreliable?
That's exactly how.
Do you want reliable systems?
FIX the actual problems, never ADD extras to patch over and hide them.