I have a directory /webroot in my linux server. Which permission set is 771, that means 1 for others. But I want to make it 773 through java code which like is :
Process p1 = Runtime.getRuntime().exec("chmod 773 /webroot");
But it can not change the permission.
I also capture the error stream which is like as :
chmod: changing permissions of `/webroot/': Operation not permitted
I saw a nearly related post yesterday, but i could not find the appropriate answer. At this time, what can I do now?
Please any help.