I need to your help . I am trying to changing the folder/files permissions but it is not working . what is the issue ? i am login on putty with root user.
Please help me .
I need to your help . I am trying to changing the folder/files permissions but it is not working . what is the issue ? i am login on putty with root user.
Please help me .
Try to verify the permission of the folder with:
lsattr /folder
If you see, you can't modify your folder, you can use chattr to remove the security. Answer will be probably more interesting if you tell us the name of your folder.
First of all check that you are trying to change the right directory. /folder
points to the folder in the root directory of the server. root directory might not be the path you are in.
So stat folder
should show you Uid and Gid of the directory. Uid has to be your user.
But why do you want to do a recursive chmod on a directory taking away the owners access rights? This will never work with a regular user as he will not be able to change anything within the directory And it seems that the system starts top down.
You can do this while you are root. But still I don't get the rationale behind that.