|
|
How to change file or folder ownership in Ubuntu? - Linux
|
Views : 511
|
|
Tagged in : Linux
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
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.
|
|
By Geethalakshmi, On - 2009-11-17 |
|
|
|