Gentoo Archives: gentoo-user

From: Alan McKinnon <alan@××××××××××××××××.za>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] script problem
Date: Fri, 01 Dec 2006 16:31:12
Message-Id: 200612011821.10535.alan@linuxholdings.co.za
In Reply to: [gentoo-user] script problem by Roberto Zandonati
1 On Friday 01 December 2006 17:39, Roberto Zandonati wrote:
2 > hi at all.
3 >
4 > when i try to launch a bash script like ./config i'll receive the
5 > error:
6 >
7 > bash: ./config: /bin/bash: bad interpreter: Permission denied (i'm
8 > root)
9
10 This is a classic error, with a very misleading error message - it has
11 nothing to do with file permissions, and nothing to do with whether the
12 script really is a script or not (those settings will all be ok by the
13 way).
14
15 The partition on which ./ is located is mounted with option noexec
16
17 You need to remount it with exec options. So if the partition in
18 question is /mnt. you would do this:
19
20 mount /mnt -o remount,exec
21
22 alan
23 --
24 gentoo-user@g.o mailing list