How Use Chown Linux?
Contents How Use Chown Command in Linux? How to Change the Owner of a File Become Superuser or Assume an Equivalent Role. Change the Owner of a File by Using...
Contents
How use chown command in Linux?
How to Change the Owner of a File
- Become superuser or assume an equivalent role.
- Change the owner of a file by using the chown command. # chown new-owner filename. new-owner. Specifies the user name or UID of the new owner of the file or directory. filename. …
- Verify that the owner of the file has changed. # ls -l filename.
Must Read
How do I give permission to chown?
To change directory permissions in Linux, use the following:
- chmod +rwx filename to add permissions.
- chmod -rwx directoryname to remove permissions.
- chmod +x filename to allow executable permissions.
- chmod -wx filename to take out write and executable permissions.