Change ownership of file or folder in Linux [Ubuntu]

change ownership of file or folder in Linux [Ubuntu]

open terminal-

if you are not logged in as root then type bellow command to change file or folder ownership:

first you need to login as root:

type su -> enter -> type pw

now you are logged in as root.

go to near that folder or file you want to change ownership and type:

chown -R username folder/file name or * to change all

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>