How to change file or folder ownership in Ubuntu?

by Geethalakshmi 2009-11-17 00:32:09

How to change file or folder ownership in Ubuntu?


1. Open the Terminal screen within Ubuntu. You should find the Terminal under the Applications and Accessories Menu. If for some reason you do not have Terminal, you should download this package. It is essential!

2. Change to the super user (root) by entering 'sudo su' at the command prompt. You will need to enter your account password. You will then notice the prompt change slightly to include the name 'root'.

3. Enter the following command. "chown username filepath". Enter your username and the complete file path of the folder or the file you want to adjust the ownership for.

4. Check the ownership of the folder or file. It should now be displaying the name of the user you changed it to. Also the file type may be different as well. You should now see the actual file type of the file (if the item you are changing is a file). There will not be a change, if you are changing ownership of a folder.

Tagged in:

1201
like
1
dislike
0
mail
flag

You must LOGIN to add comments