Article 5BG9F New to Linux - chown not worked as per expectation

New to Linux - chown not worked as per expectation

by
ckumar
from LinuxQuestions.org on (#5BG9F)
below is the snapshot of the code in production , requirement was to change the user and owner for one of the directory "policy"

i added $chown -R ${USER}:${USER} /opt/app/policy just below the existing code in prod which is $chown -R root:${USER} /opt/app.
now it lookis like

chown -R root:${USER} /opt/app
chown -R ${USER}:${USER} /opt/app/policy

but after running script the "policy" directy dont have the user changed it still shows root.latest?d=yIl2AUoC8zA latest?i=8EMjDAWkzZ0:C8MP5Ynofy4:F7zBnMy latest?i=8EMjDAWkzZ0:C8MP5Ynofy4:V_sGLiP latest?d=qj6IDK7rITs latest?i=8EMjDAWkzZ0:C8MP5Ynofy4:gIN9vFw8EMjDAWkzZ0
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments