Giving users the ability to read and write from files that root makes

Discussion in 'Systems Administration' started by TheMasteredPanda, May 13, 2016.

  1. Hello,

    So I am having a little bit of trouble. I know how to make users via the command line, but when It comes to file permissions and stuff I am clueless. I want to give a user access to write over/rewrite files in a folder even when the user is root in a certain file. How would I be able to achieve that?
  2. You can either change the permissions:
    chmod 777 /path/to/file
    or for folders:
    chmod -R 777 /path/to/dir

    Alternatively, you can change the owner
    chown user /path/to/file
    And again for folders,
    chown -R user /path/to/dir