Changing Ownership
Explore how to change ownership of directories and files in the command-line interface using the chown command. Understand how to assign correct user and group ownership to manage permissions effectively and enable modifications without needing elevated privileges.
We'll cover the following...
We'll cover the following...
Setting permissions
Changing ownership is the easier method, and it’s often the only method we need. The permissions are set correctly in most cases, but they’re applied to the wrong user and group. That’s the case here, as well.
The chown command
The chown command lets us change the owner and group of a directory.
$ sudo chown temp:temp ...