Changing File Ownership
Changing file ownership can allow a user or users to view a file or restrict their access, all depends on the use of the function. The function in question is a command called "chown" and with the use of chown you can change the ownership of a file to another user on the system.
When checking the file ownership we can use the command "ls -al" to view all files as well as the rights and ownership assigned the to the files.
chown
· Chown <user> <file>
· Chown ngsacdemey newfile.txt