Contents
How do I change owner in Linux?
Use the chown command to change file owner and group information.
Use the chmod command to change file access permissions such as read, write, and access.
How do I change the owner of a group in Linux?
Notes on usage
- user and group can be specified by name or by number.
- Only root can change the owner of a file.
- The owning group of a file can be changed by the file’s owner, if the owner belongs to that group.
- The owning group can also be changed by using the chgrp command.