Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have ubuntu 12.04 precise pangolin installed on my laptop. I am the admin of the computer, but anytime I try to change file permissions to acces files or tick exectute file as program then he just changes back quickly or unticks the box quickly. Please help!!!

share|improve this question
1  
What filesystem are the files you are trying to change on? –  hexafraction Nov 4 '12 at 19:11
    
filesystem? Explain please... –  Harald Nov 4 '12 at 19:13
1  
Are the files on a flash drive or external hard drive? Did you set up partitions yourself? –  hexafraction Nov 4 '12 at 19:13
    
They are on a partition I created earlier on windows 7. But now i swaped from windows 7 to ubuntu –  Harald Nov 4 '12 at 19:17
add comment

1 Answer

Windows 7 partitions are created using the NTFS filesystem, which does not support Unix-style file permissions, which Ubuntu uses. You can, however, use Umask along with fstab to mount easily:

  1. Run gksu gedit /etc/fstab to open Text Editor.

  2. You are now in fstab.

  3. Open a Terminal. Determine the partition UUID:

    blkid
    

and note the UUID for your partition.

  1. Also make a directory to mount:

    sudo mkdir /media/windisk
    
  2. Now go back to the text editor and add a line:

    UUID=[YOUR UUID HERE] /media/windisk ntfs-3g auto,users,permissions 0 0
    

Save, and reboot.

You can now mount this partition and work with permissions on it.

share|improve this answer
1  
Actually, you can make NTFS-3G respect the NTFS ownership and permissions on the drive. (It's just a bit complicated and often not worthwhile.) –  Eliah Kagan Jan 24 '13 at 22:14
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.