I have different .jar files that create a directory with files inside, the problem is that this directory and these files are created with the wrong owner (root) and I'd like that by default the owner is admin. Is there any use of chmod or chown to change this?
The owner of the directory and files change with some command and thus not be granting permissions each time a file generated by a .jar is created.
I tried to use chmod g+rwxs /dirname but it doesn't work ...