1

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

Kevin Bowen
  • 19,615
  • 55
  • 79
  • 83
Vivek Sharma
  • 1,170

1 Answers1

0

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.

zwets
  • 12,354