Setting ownership (chown) on an NTFS partition in Ubuntu with NTFS-3G

(0 votes, average 0 out of 5)

If you want to set ownership of a folder on an NTFS drive in Linux, you need to change the ownership of its entry in /etc/fstab. Unfortunately you cannot use chown because NTFS is not a POSIX-compatible filesystem. Open up Users and Groups and find your user's ID. The first user on an Ubuntu install has uid 1000. Similarly, click on Manage Groups and find your group - the gid for the first user is 1000. Open /etc/fstab as root sudo gedit /etc/fstab and change the mount line to include the uid and gid parameters:

UUID=XXXXXXXX /media/mydrive  ntfs    defaults,umask=007,uid=1000,gid=1000 0       0
 

 

Save the changes and unmount/remount the device:

1
2
sudo umount /media/mydrive
sudo mount /media/mydrive
Partner Links:
 
Related Articles

» Make an ISO file from Folders or CDROM drive in Linux

If you want to create an ISO image of a CD/DVD or a folder and its contents for archive purposes, copies, easy mounting, burning out, and other purposes, Linux comes with two quick and easy to use command line utilities to make this happen dd and mkisofs.First you will need to open a terminal ("CTRL + ALT + T" in Ubuntu) and type in the following commands for the operation you want to accomplish. CD/DVD Drive:Type: sudo umount /dev/cdrom to unmount your CDRom drive from the...

» Access Windows Files From within a Ubuntu (Wubi) Install

So maybe you have just installed Ubuntu through the Wubi installation or have been using Ubuntu through Wubi for a while, but you find yourself trying to get access to your Window's documents/music/videos/etcetera from Ubuntu and your not sure where to look.  Well, the solution is pretty simple but not very intuitive for most users. Follow these instructions to get access to the files contained within your Windows installation:Assuming your using Ubuntu 10.xx, go to the top left:...

» How to Integrate Hulu Desktop with Windows 7 Media Center

If you would like to integrate Hulu Desktop with Windows 7 Media Center on your home theater PC, follow these few easy steps below: Hulu Desktop.Install Hulu Desktop. Hulu Desktop Integration.Install Hulu Desktop Integration by running the .msi file.That's it! You're finished. To access Hulu Desktop within Windows 7 Media Center, scroll down past Extras to see you'll find the Hulu Icon.Note: This integration will minimize Media Center and open Hulu Desktop when opened. When Hulu Desktop is...