I accidentally removed all the permissions from a file. Now I don't have permission to chmod it. Is there any way of chmod(ing) the file back?
Thank you
chmodlinuxpermissionsunix
I accidentally removed all the permissions from a file. Now I don't have permission to chmod it. Is there any way of chmod(ing) the file back?
Thank you
Best Answer
I suspect there's more going on than your question states, because that shouldn't happen:
As you can see, having no access to the file is no bar to changing the mode back. Could you tell us more about what you did, what you see, and what's going wrong?