chown - file owner cannot chmod file, report operation not permitted - Ask Ubuntu


  1. use root copy or create file a.out
  2. chown user:user a.out, change a.out owner user
  3. now change user, su user
  4. use user chmod a.out, chmod 755 a.out
  5. ok, problem here. step 4 output : chmod: ./a.out: operation not permitted

i run these step on suse, it's work. , chmod can use file owner or root. so, think maybe bug on ubuntu. know this?

check file not set immutable, mentioned here:

changing ownership: "operation not permitted" - root!


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User