We have a log file that always gets created as root:other and to clear this log I have to su - root to change the permissions. I attempted to create a quick script so that a user would not have to su - root.
Just a simple
#!/bin/sh
chown mark:dev /export/home/test
I figured if I set it as 755 I would be able to run it as any user to modify the test file. No can do I receive the old
chown: /export/home/test: Not owner
Does any one know of a way to do this?
Thanks
MC