Changing ownership of files with chown
Getting to grips with the command line in Linux will mean that you'll always be able to manage practically any Linux distribution (and there are literally hundreds) without having to learn a new interface.Command line instructions are often quicker to implement as well.
Here are some examples of chown use...
Use ls -l to show extended details for directories and files:
drwxr-xr-x 2 bunty root 4096 2007-06-11 20:11 mydirectory
To change the ownership of a file to belong to steven:
$ sudo chown steven filename
To change the ownership of a file to user steven and group root:
$ sudo chown steven:root filename
Thanks for visiting.