$schemamarkup = get_post_meta(get_the_ID(), 'schemamarkup', true); if(!empty($schemamarkup)) { echo $schemamarkup; }

How to Change File Owner on Lubuntu Linux Guide

October 21, 2020 | By the+gnu+linux+evangelist.

Setting Up Ownership

[ad_slider autoplay=”true” interval=”8″ count=”5″]

  1. 2. About Ownership

    Who Can Change File’s Permissions?
    First, the root User may be the Default one in Lubuntu.
    So to Check What User you are on:

    whoami

    Again, check What’s your User’s Primary Group Name:

    id -gn
    • You Can Freely Change Permissions over Files/Directories Your User’s Hold.
    • But you need Admin Super User Powers to Change Permissions on Entities he Do Not Hold!
  2. 3. Setting Up Ownership

    How to Set/Change the Ownership?.

    • To Set/Change Ownership Over a Single File/Directory:

      sudo 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

      Find Username & Group
      [ad_slider autoplay=”true” interval=”8″ count=”5″]

      For Instance:

      mkdir -p $HOME/hello/world

      Now to Give the ‘world’ Directory to the ‘root’ User do:

      sudo 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 chown -R [myUser]:[myGroup] [myEntity]

      For Instance:

      sudo 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 chown -R [myUser]:[myGroup] $HOME/hello/world

      Check again Ownership like Above…

[ad_slider autoplay=”true” interval=”8″ count=”5″]

Contents