Reputation: 1985
I have files in a directory. Some have root as the owner and group and some user (me) as owner and group (however that happened). I ran sudo chmod 755 -R /usr/casloader
, all my directories are under /usr/casloader
. All files are -rwxr-xr-x
.
I am trying to compile a java class (as me the user) - if run the javac on a file that owner/group is root
, I can compile fine. The owner/group of the compiled class becomes me. (it writes the compiled class into the same folder).
But if I try compile a class that owner group is me it gives file write error: Permission Denied
.
How do I solve this? Does everything have to be root?
Upvotes: 0
Views: 1100
Reputation: 1985
I just did g+w,o+w with a -R. so I have rwxrwxrwx - so the problem is solved. (Not sure if this is the most optimal solution.)
Upvotes: 1