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

» How to connect an Apple Bluetooth Keyboard to Ubuntu (Troubleshooting)

Note: This guide uses programs specific to Ubuntu 10.04 (Lucid Lynx) and newer. For older versions of Ubuntu, please refer to .Sometimes the Ubuntu bluetooth stack can behave erratically and prevent you from connecting your Apple Bluetooth Keyboard (or other bluetooth device). The normal procedure for connecting your bluetooth keyboard involves the following steps:First, make sure the bluetooth applet is running by looking for the bluetooth icon on your panel:If it is not running, press ALT+F2,...

» How to Determine Which Programs are Using Which Ports

Sometimes a program is using a particular port, preventing another program from capturing and using it. It can be difficult to trace down which process exactly is using the port. Fortunately, there are a couple helpful utilities which can link each process with the port(s) it is using.WindowsOn Windows, download and run . It will display a table of the currently running processes and the ports they are using. It is possible to sort by process name or the port number to make it easy to find the...

» 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...