Linux Mint Change File Owner
Welcome, Mint User! This tutorial will guide you step-by-step on How to Change File/Directory Owner on Linux Mint Desktop.
And the Linux Mint Change File Owner instruction is to Set a different Owner for Files and Directories on the Linux Mint File System.
Moreover, Mastering the Ownerships Over Files and Directories is the First, Step in Setting Up Permissions and so Establishing a Security over the System.
Finally, Following the Tutorial you will Get a Little Practice with the Linux Mint Shell Command Line.
-
Linux Mint Terminal Tutorial for Beginners
-
Who Can Set/Change the Ownership?.
Only the Administrators or a Super-User Can Change a File/Directory Ownership!
-
How to Set/Change the Ownership?.
-
To Set/Change Ownership Over a Single File/Directory:
sudo su -c "chown [myUser]:[myGroup] [myEntity]"
Where [myUser] is your’s user Name & [myGroup] is your’s user Primary Group.
How to Look Up Username & Group on Terminal
For Instance:
mkdir -p $HOME/hello/world
Now to Give the ‘world’ Directory to the ‘root’ User do:
sudo su -c "chown root:root $HOME/hello/world"
Checking Ownership:
ls -l $HOME/hello
-
To Set/Change Permissions Recursively Over a Directory and it’s Content (Subdirectories and Files):
sudo su -c "chown -R [myUser]:[myGroup] [myEntity]"
For Instance:
sudo su -c "touch $HOME/hello/world/happy"
Checking Ownership:
ls -l $HOME/hello && ls -l $HOME/hello/world
Now to Get Back the ‘world’ Directory with the ‘happy’ File:)
sudo su -c "chown -R [myUser]:[myGroup] $HOME/hello/world"
Check again Ownership like Above…
-
-
How to Change Permissions on Linux Mint File System
Mint Best Software:
Best Software to Install on Linux Mint.