You are not logged in.
I have usb drive, i want to execute eg. simple shell script, which named "test.sh" but i can't set it to executable i run chmod 777 /media/my_usb/test.sh i don't get any error but if i run ls -l i still see -rw-r--r-- 1 gymka gymka 0 2011-07-19 13:26 test.sh same result if i do it under root user. i think problem is that usb is formated as fat(same with ntfs) but i need either fat or ntfs fs because i'll use that drive with windows and linux. question: how to run file which is in usb drive if i can't set "executable" attribute to true?
Last edited by gymka (2011-07-19 11:08:08)
Offline
How exactly did you mount it? If you used the user(s) mount option, it implies 'noexec' (like the man page states.)
Also, you can't use chmod if it is vfat or ntfs. You have to set the permission at mount time instead.
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
thank you, solved. solution: add line to /etc/fstab with parameter exec
Last edited by gymka (2011-07-19 11:08:20)
Offline