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

How to Change File Permissions in Lubuntu Linux

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

Setting Up File Permissions

  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:

    Copy
    whoami

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

    Copy
    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 File Permissions

    Setting Up Permissions on Files and Directories.

    Basic Building Blocks for the Permission Command.

    Ownership Types:

    • Use ‘u‘ to Setup Permissions for the User Owner
    • Use ‘g‘ to Setup Permissions for the Primary Group Owner
    • Use ‘u+g‘ to Setup Permissions for the User and Primary Group Owner
    • Use ‘a‘ to Setup Permissions for All (World)
    • Use ‘o‘ for Revoking Actual Permissions and Giving Permissions to the Others (the Before Disabled ones)
  3. Permission Types:

    • Use ‘x‘ to Setup Execution Permission
    • Use ‘w‘ to Setup Write/Delete Permission
    • Use ‘r‘ to Setup Read Permission

    Giving/Removing Permissions:

    • Use ‘+‘ to Give Permission
    • Use ‘‘ to Remove Permission

    Generic Permission Command Form:

    Copy
    chmod ownershipSubject[+/-]r/w/x [myEntity]

    For Instance:

    Copy
    mkdir $HOME/world

    To Give ‘All’ (read,write/delete,execute) Permissions on the ‘world’ Directory to ‘Everybody’:

    Copy
    chmod a+rwx $HOME/world

    (Normally Take Care Before to Open a Directory to the World Because this Can Compromise your System Security!)
    Now to Check Permissions Setup:

    Copy
    ls -l $HOME

    To Remove the ‘Write/Delete’ Permission to the ‘World’:

    Copy
    chmod a-w $HOME/world

    To Give the ‘Write/Delete’ Permission the ‘world’ Only to the Owner:

    Copy
    chmod u+w $HOME/world

    To Give the ‘Write/Delete’ Permission the ‘world’ Also to the Owner’s Primary Group:

    Copy
    chmod g+w $HOME/world

    To Remove the ‘Execution’ Permission to the ‘World’:

    Copy
    chmod a-x $HOME/world

    To Give the ‘Execution’ Permission to the ‘world’ to the Owner:

    Copy
    chmod u+x $HOME/world

    To Give the ‘Execution’ Permission to the ‘world’ Also to the Owner’s Primary Group:

    Copy
    chmod g+x $HOME/world

    After that Only your User and your User’s Primary Group will be able to Access the ‘world’ Directory Directory on Shell!

Contents