Hello! Tell me, how can I change the permissions on a file if the chmod function is disabled? Perhaps there is an option through the creation of its function?

  • Create another file, if you create the necessary rights during creation, copy the data from the old one. remove old. rename new - Mike
  • What about the option if it is forbidden to create files in the folder? - user242683
  • And then you will not change the rights. changing file permissions is the same entry in the directory as creating a file and therefore it will not have rights - Mike
  • No options at all? The eval and umask functions are available. Now I deal with them, what's the sense I understand it from them 0? - user242683
  • So if there is no write permission, then there are none, without options. even if chmod were available, you would still not do anything. unless of course you can change the rights to the directory in which it is located - Mike

0