Linux and Unix chown command


About chown

Command for system V that changes the owner of a file.

Syntax

#chown [-R] newowner filenames


-R Change the permission on files that are in the subdirectories of the directory that you are currently in.
newowner The alias/username of the new owner of the file.
filenames The file that you are changing the rights to.

Examples

#chown chope file.txt

Give permissions as owner to user chope for the file file.txt.

#chown -R chope work

Give chown permissions to chope for all files in the work directory.

Post a Comment

0 Comments