Change file ownership. Use elevated privileges only when needed.
sudo chown user:group ./fileLINUX COMMAND ATLAS · COMMAND GUIDE
Change file ownership. Use elevated privileges only when needed.
GNU Coreutilschown [OPTION]... [OWNER][:[GROUP]] FILE...
Change file ownership. Use elevated privileges only when needed.
sudo chown user:group ./fileSet the owner and group of one file.
sudo chown alice:developers ./report.txtChange ownership of a directory tree (review the path carefully).
sudo chown -R alice:developers ./projectChanging ownership usually needs administrator privileges. A recursive change can affect many files; verify the exact path before using -R.