You are not logged in.

#1 2011-07-19 10:35:40

gymka
Member
From: Lithuania
Registered: 2011-04-29
Posts: 40
Website

[SOLVED] Can't execute file on usb flash drive

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

#2 2011-07-19 10:41:14

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [SOLVED] Can't execute file on usb flash drive

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

#3 2011-07-19 11:07:48

gymka
Member
From: Lithuania
Registered: 2011-04-29
Posts: 40
Website

Re: [SOLVED] Can't execute file on usb flash drive

thank you, solved. solution: add line to /etc/fstab with parameter exec

Last edited by gymka (2011-07-19 11:08:20)

Offline

Board footer

Powered by FluxBB