Back to Top

Change folder Permissions and Ownership Ubuntu

change the file ownership

Here is one quick article about to explain changing the permissions of the share folder/files in ubuntu.

I am using Ubuntu in my machine and sometimes for some purpose I wanted to share my folders to others so others can work on my files and you can share your folder to the other user using Samba clients and I have explained same in my earlier article.

Now, what happens, If someone make any kind of changes in my shared files that files get locked and even I can’t make any changes until I don’t change its permission.

So Today I am going to share one simple command which you need to execute in terminal to unlock your shared files

SYNTAX to change the file ownership

sudo chown -hR username:username path_to_the_files

if you have a root access, syntax like

sudo chown -hR root:root path_to_the_files

-h – Changes the owner of the each symbolic link instead of any referenced file
-R – Recursively change ownership of directories and their contents.

That’s it.Now you have changed ownership of files/folders and your files are ready to use again.

Thanks for reading and feel free to share your thoughts! Don’t Forget to Follow us on Twitter or Subscribe us to Get the Latest Updates.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Most Popular Posts

How To Create a Temporary File in PHP

Posted on 7 years ago

Bhumi

How To set up Signup Bonus in X-Cart

Posted on 6 years ago

Bhumi

The Readers’ Poll – October 2012

Posted on 6 years ago

Bhumi

How To Install Bugzilla on Windows

Posted on 7 years ago

Bhumi

Hello world

Updated 5 days ago

Nick Carter

In depth Understanding of Laravel Core

Updated 2 months ago

Bhumi

ECMAScript 6 New Features – 2

Updated 1 year ago

Bhumi

The Reader’s Poll – June 2015

Posted on 4 years ago

Bhumi

The Reader’s Poll – August 2014

Posted on 4 years ago

Bhumi

The Reader’s Poll – June 2014

Posted on 5 years ago

Bhumi

The Readers’ Poll – May 2014

Posted on 5 years ago

Bhumi

The Readers’ Poll – August 2013

Posted on 5 years ago

Bhumi