Skip to main content
Linux & System Administration Tools

Chown Command Generator

Generate a safe chown command from an owner, group, and file path - with an optional recursive flag.

Enter an owner, optional group, and the target path - this tool assembles the exact chown command, including the recursive flag if you need it.

Pair this with the chmod Calculator if you also need to adjust permissions, not just ownership.

What Does chown Do?

chown changes which user (and optionally group) owns a file or directory - a common step after deploying files as one user (like root) that need to be owned by an application's runtime user instead.

Why Use This Tool?

The exact owner:group syntax and where the recursive flag goes are easy to get slightly wrong, especially under time pressure. This tool assembles the command correctly every time.

How to Use It

  1. Enter the new owner (and optionally a group, separated automatically with a colon).
  2. Enter the target file or directory path.
  3. Toggle recursive if you're changing ownership of a whole directory tree.
  4. Copy the generated command and run it yourself with appropriate privileges.

Limitations

This only builds the command text - it never runs anything on our servers. Changing ownership recursively on the wrong directory can break an application's file permissions, so always double-check the path before running a generated command with -R.

Frequently Asked Questions

chown changes who owns a file (user and group); chmod changes what the owner, group and others are allowed to do with it.

Only root can give a file to another user, so changing ownership normally needs sudo.

It changes every file under the path. Running it on the wrong folder, especially / or a system directory, can break the system - double-check the path first.
Share this tool: