Execute Permissions and an Odd Experience
Kent Borg
kentborg at borg.org
Tue Apr 12 15:26:21 UTC 2011
Martin McCormick wrote:
> I have been working in Unix for 19 or 20 years and sometimes, I
> still run in to something that I don't quite understand.
>
> Last night, I mounted a USB stick formatted with FAT32
> and discovered that I could not execute executable files on the
> thumb drive which was mounted on /mnt. As soon as I copied the
> files to /root/, they all ran as expected.
>
> The executable files were a pair of bash shell scripts
> and the error for each one was
>
> /bin/bash: bad interpreter
>
> followed by "permission denied" since /bin/bash didn't run.
>
I would guess they were DOS line endings and your copy (drag icons?) Got
Clever and converted them to Unix line endings.
-kb, the Kent who writes this at 400 miles an hour 36,000 feet over
Colorado, listening to WHRB.
More information about the ubuntu-users
mailing list