CHOWN
Print Email
Email this article
Close
Email this article
CloseYou are here: Home > Website Support > Linux Commands
The CHOWN command (abbreviation for change ownership) is used to change file and directory ownerships on UNIX based operating environments. The user ID and group ID of a file and directory may be changed using the CHOWN command. Two optional parameters may be parsed when configuring file and directory ownerships:
- User ID
- Group ID
As with CHMOD, using the option -R (recursive) when changing the user ID and group ID of a directory, will update the ownerships of all files in the file hierarchy below the directory.
The following table shows the correct syntax and results of three popular CHOWN commands:
Syntax: chown ftplogin.users filename
Output: -rw-r—r—ftplogin users filename
Syntax: chown ftplogin.ftplogin directory
Output: drw-r—r—ftplogin ftplogin directory
Syntax: chown ftplogin.nobody directory -R
Output: drw-r—r—ftplogin nobody directory
Was this information helpful?
Yes NoThank you for your feedback
We are delighted to find that our article resolved your query.
Thank you for your feedback
We will resolve your query as soon as possible.
Please take a few moments to comment on your unresolved query. Simply tell us what your problem is. We guarantee that we'll get back to you within two hours (during office hours) in response to your query.
