You are not logged in.

#1 2011-03-12 17:19:48

dunkles
Member
From: Chile
Registered: 2010-04-26
Posts: 67

I can't exec a bash script in a pendrive

i use gnome, the pendrive automount ok, but i can't exec bash scripts inside the pendrive

but if i mount the pendrive in the old way (in cli) with

mount -t vfat -o umask=000 /dev/sdb1 /media/pendrive/

works perfect


how to make gnome automatically mount with the option umask=000 ??


thanks

Offline

#2 2011-03-12 17:34:58

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: I can't exec a bash script in a pendrive

good question, i'm interested


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#3 2011-03-12 18:10:20

skodabenz
Banned
From: Tamilnadu, India
Registered: 2010-04-11
Posts: 382

Re: I can't exec a bash script in a pendrive


My new forum user/nick name is "the.ridikulus.rat" .

Offline

#4 2011-03-12 18:30:16

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

Re: I can't exec a bash script in a pendrive

Some not quite related info, bus somewhat related anyway. http://www.h-online.com/security/news/i … 03617.html


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#5 2011-03-12 19:25:56

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,768

Re: I can't exec a bash script in a pendrive

The problem might not be the umask.
When you mount under gnome, is the drive being mounted with the noexec flag?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#6 2011-03-12 19:43:23

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: I can't exec a bash script in a pendrive

ewaller wrote:

The problem might not be the umask.
When you mount under gnome, is the drive being mounted with the noexec flag?

If GVFS is used, then the flag is "showexec":

showexec
              If  set, the execute permission bits of the file will be allowed
              only if the extension part of the name is .EXE, .COM,  or  .BAT.
              Not set by default.

@dunkles: If you mount your usb as /media/xxx, then instead of doing /media/xxx/script.sh, do

bash /media/xxx/script.sh

Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

#7 2011-03-12 21:02:30

dunkles
Member
From: Chile
Registered: 2010-04-26
Posts: 67

Re: I can't exec a bash script in a pendrive

Leonid.I wrote:

@dunkles: If you mount your usb as /media/xxx, then instead of doing /media/xxx/script.sh, do

bash /media/xxx/script.sh

works, but if the script have a reference to another script or executable say "permision denied" sad

and edit a lot of scripts adding the "bash" before it's not the best

Offline

Board footer

Powered by FluxBB