Reputation: 9499
"bin" is the name of an empty folder on a Linux system that I want to delete. From the parent folder, I have typed:
chmod 700 bin
And it returns
chmod: changing permissions of 'bin': Operation not permitted.
Upvotes: 3
Views: 20595
Reputation: 621
Probably the file has the immutable flag set in its extended attributes. To fix this, just run sudo chattr -i file
% sudo chattr -i immutable
% sudo chown user:user immutable
Upvotes: 3
Reputation: 305
Become su [switch user command] In my case, I had a remote server with user temproot in it. I used su temproot sudo -i chmod 777 TargetDirectory or FileName
Upvotes: 0
Reputation: 5147
it means you dont have permission for it. check that whoami and after that check that who is owner of bin folder.
Upvotes: 0