Find the answer to your Linux question:
Results 1 to 6 of 6
Hello Everyone , Can anyone please guide if there is any way to change file permisions of NTFS drives ? All my C programming files resides in a NTFS drive ...
  1. #1
    Just Joined!
    Join Date
    Sep 2008
    Posts
    12

    chmod on NTFS drives

    Hello Everyone ,

    Can anyone please guide if there is any way to change file permisions of NTFS drives ? All my C programming files resides in a NTFS drive and I need to set execute permision on them in order to run.

    I tired chmod -Rv 777 /media/Programming.

    and also tired

    chmod 775 *.* after entering the folder in which all my files resides.

    but both these commands doesn't seem to have any effect on the files.

    I know NTFS doesn't use Unix file system and chmod command goes in vain. Is there anyway around to do it.

    Thanking You

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,096
    man mount.ntfs

    You can mount ntfs with different default permissions.
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    Sep 2008
    Posts
    12
    Thanking You very much reminding me this. I had to manually mount the drive using the -o exec option.

    Just to complete the thread , this is what I had to do.

    mount -t ntfs-3g -o exec /dev/sdb7 /media/Drive

    Fedora gives you the freedom to mount your ntfs automatically with just a click. Is there any way to add the -o exec option in the default mounting operation? Kindly let me know if it is possible.

    Thank You

    Regards

    Genocide_Hoax

  4. #4
    Just Joined!
    Join Date
    Sep 2006
    Location
    Norfolk Island
    Posts
    31
    check out autofs.

  5. #5
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    You can edit /etc/fstab file and add option(s) in mount line of NTFS Partition.
    Code:
    /dev/sdb7     /media/Drive     ntfs-3g     defaults,exec,umask=0  0  0
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #6
    Just Joined!
    Join Date
    Sep 2008
    Posts
    12
    Ok thank you very much.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...