I just tried to run a bash script (called "whose") from my USB drive and I get this:
bash: /mt/bin/whose: /bin/bash: bad interpreter: Permission denied
I did some googling and found that this is because my USB drive is mounted with noexec permission. When I was running FC8, this was not the case.
How can I control this (i.e., allow 'exec' on my USB drive(s))?
Thanks
mhr
How can I control this (i.e., allow 'exec' on my USB drive(s))?
either:
mount /media/usb -o remount,exec
or more preferable, add exec into the /etc/fstab entry for your usb drive (you might have to create one). It'll look something like:
/media/usb /dev/sdb1 vfat exec,user 0 0
/media/usb is the point you will mount to, and /dev/sdb1 is the actual usb device. vfat is the filesystem type, and may be something else if you've formatted the stick; but if it's an actual hard drive, it could be something like ntfs. "man fstab" has a list of all the filesystems.
"user" will let non-root mount it.
MHR, this has been asked already yesterday. *Please* do read other posts!
Kai
On Fri, Jul 4, 2008 at 1:31 AM, Kai Schaetzl maillists@conactive.com wrote:
MHR, this has been asked already yesterday. *Please* do read other posts!
Strange - I read everything posted in this list. I don't always understand everything, but I read them all.
I ran a search for "usb script" in the archives and did not find anything - pray tell, where was I so blind?
Thanks.
mhr
Mhr wrote on Fri, 4 Jul 2008 10:47:39 -0700:
I ran a search for "usb script" in the archives and did not find anything - pray tell, where was I so blind?
It's 59522.216.185.71.22.1215094606.squirrel@webmail.harte-lyne.ca "Running shell scripts from external media". Maybe it got lost in your spam filter?
Kai
On Fri, Jul 4, 2008 at 12:31 PM, Kai Schaetzl maillists@conactive.com wrote:
It's 59522.216.185.71.22.1215094606.squirrel@webmail.harte-lyne.ca "Running shell scripts from external media". Maybe it got lost in your spam filter?
Nope I found the thread in my deleted (read) mail. It only partially answered the question. Spiro's post (this thread) was more complete (for me).
Sometimes it's good to have an issue raised more than once, if it helps. This one helped me.
Thanks.
mhr
On Fri, 2008-07-04 at 10:47 -0700, MHR wrote:
On Fri, Jul 4, 2008 at 1:31 AM, Kai Schaetzl maillists@conactive.com wrote:
MHR, this has been asked already yesterday. *Please* do read other posts!
Strange - I read everything posted in this list. I don't always understand everything, but I read them all.
I ran a search for "usb script" in the archives and did not find anything - pray tell, where was I so blind?
Your blindness is caused by a broken (IMO) search. I also had recently searched for this and another thread. AFAICT, the "search" button on the mailing lists intro page only checks archived stuff.
I had also tried this going directly from Google using site:centos.org. Again no joy.
For a sample, search for your name & 2008 and July. NADA!
Thanks.
mhr
<snip sig stuff>
On Fri, Jul 4, 2008 at 12:54 PM, William L. Maltby CentOS4Bill@triad.rr.com wrote:
For a sample, search for your name & 2008 and July. NADA!
Well, at least THAT part works properly....
:-)
mhr
On Fri, 2008-07-04 at 13:15 -0700, MHR wrote:
On Fri, Jul 4, 2008 at 12:54 PM, William L. Maltby CentOS4Bill@triad.rr.com wrote:
For a sample, search for your name & 2008 and July. NADA!
Well, at least THAT part works properly....
How so? Did you not post earlier? ... OH!
s/your name/your initials/
:-)
mhr
<snip sig stuff>
On Fri, Jul 4, 2008 at 1:28 PM, William L. Maltby CentOS4Bill@triad.rr.com wrote:
On Fri, 2008-07-04 at 13:15 -0700, MHR wrote:
On Fri, Jul 4, 2008 at 12:54 PM, William L. Maltby CentOS4Bill@triad.rr.com wrote:
For a sample, search for your name & 2008 and July. NADA!
Well, at least THAT part works properly....
How so? Did you not post earlier? ... OH!
s/your name/your initials/
:-)
I meant it as a joke. (sigh)
mhr
William L. Maltby wrote:
Your blindness is caused by a broken (IMO) search. I also had recently searched for this and another thread. AFAICT, the "search" button on the mailing lists intro page only checks archived stuff.
I've seen mails archived there before they hit my INBOX. But yes, google has to go over it for you to see it >:)
Cheers,
Ralph