Ubuntu 18.04 – Change file ownership

You can change file owner and group with chown.

sudo chown root xab

Changes the owner of the xab file to root.

, <span>Ubuntu 18.04 – Change file ownership</span>, KandZ
before
, <span>Ubuntu 18.04 – Change file ownership</span>, KandZ
after
sudo chown root:root xac

Changes the owner of the xac file to root, and its group to root

, <span>Ubuntu 18.04 – Change file ownership</span>, KandZ
before
, <span>Ubuntu 18.04 – Change file ownership</span>, KandZ
after

sudo chown root:root xtest/ -R

Changes the owner of the directory and the files inside this directory to root and their group to root

, <span>Ubuntu 18.04 – Change file ownership</span>, KandZ
before
, <span>Ubuntu 18.04 – Change file ownership</span>, KandZ
the fies inside xtest directory before
, <span>Ubuntu 18.04 – Change file ownership</span>, KandZ
after
, <span>Ubuntu 18.04 – Change file ownership</span>, KandZ
the files inside xtest directory after

THE END!!!

76250cookie-checkUbuntu 18.04 – Change file ownershipUbuntu 18.04 – Change file ownership

Related posts

One Thought to “Ubuntu 18.04 – Change file ownership

Comments are closed.