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.

This question already has an answer here:

I am not able to understand what is the issue here ?

vks@vksTP:~/dropbox/shells$ ll sssh.sh
-rw-rw-rw- 1 root root 1218 Mar 17 17:58 sssh.sh
vks@vksTP:~/dropbox/shells$ sudo chmod +x sssh.sh
vks@vksTP:~/dropbox/shells$ ll sssh.sh
-rw-rw-rw- 1 root root 1218 Mar 17 17:58 sssh.sh

I am not able to change the permission of the to +x.

Edit:

I have a dual boot machine, and I share the same dropbox folder. This dropbox folder is on a ntfs mount of my D drive for windows. Following are the entries from fstab

/dev/sda2 /mnt/C ntfs-3g rw,user,fmask=0111,dmask=0000 0 0  
/dev/sda3 /mnt/D ntfs-3g rw,user,fmask=0111,dmask=0000 0 0  

I am not able to add +x to anyfile in /mnt/D

share|improve this question

marked as duplicate by Kevin Bowen, Web-E, Eliah Kagan, Rinzwind, gertvdijk Mar 19 '13 at 9:35

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
What are the permissions for the directory? Does dropbox support permissions at all? –  choroba Mar 17 '13 at 12:53
    
Just checked mine, dropbox does support my +x parameter –  Meer Borg Mar 17 '13 at 13:01
    
@viv assumed you used Sudo to change as it is root –  Meer Borg Mar 17 '13 at 13:03
    
Are you able to chmod any other file on the same partition where the file is? If not, maybe you need to edit your fstab file and add the exec option. –  To Do Mar 17 '13 at 20:31
    
By default you can't have executable in NTFS parition. Need to edit fstab file. –  Web-E Mar 19 '13 at 5:57

1 Answer 1

Your fmask is set to 0111, meaning the lowermost bit of file permissions will be cleared. This bit is the x. Set the mask to e.g. 002 to just clear the write bit for others, and leave the r and x bits intact.

share|improve this answer

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