I have a limited user and access to root. How can I give that user the possibility to remove files owned by root?
I have the following line added in
john ALL=(ALL) NOPASSWD:/var/opt/OV/tmp/*yet I'm unable to perform touch or rm commands under /var/opt/OV/tmp. What do I need extra?
I don't know the syntax or how it should exactly be set, so the user john can execute only rm or touch under /var/opt/OV/tmp/. I'm thinking somewhere allong the lines
john ALL = (ALL) NOPASSWD: REMOVE, CREATE, /var/opt/OV/tmp. Let me know if this might work or if I need something added/removed. No, the chmod&chown commands will not help since the files under /var/opt/OV/tmp are owned by root.