can't execute shell scripts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Terminal App |
Incomplete
|
High
|
Unassigned |
Bug Description
I can't execute any shell scripts (bash/sh) in the terminal app, but it works using adb shell.
My device is the Nexus 4.
The version of Ubuntu is 14.10 (r50).
When I try to run a shell script in the app I get the following error:
bash: ./testscript: /bin/sh: bad interpreter: Permission denied
When I run the script as root I get the following error:
sudo: unable to execute ./testscript: Permission denied
Permissions of the script: (ls -l ./testscript)
-rwxrwxr-x 1 phablet phablet 21 Jun 2 14:11 ./testscript
Permissions of /bin/sh and /bin/bash:
lrwxrwxrwx 1 root root 4 May 13 13:59 /bin/sh -> dash
-rwxr-xr-x 1 root root 666864 May 8 12:26 /bin/bash
When I run the script using adb shell as 'phablet' it works as expected.
My script contains the following two lines:
#!/bin/sh
echo test
EDIT: When I use "#!/bin/bash" in my script I get the same error message (just with "/bin/bash" instead of "/bin/sh")
EDIT: It seems that I can execute Scripts when I copy them to /bin.
However, I did never change the permissions of my home direcotry and as far as I can remember I could run scripts as expected in r44.
EDIT: It seems to work when I use "bash ./testscript".
EDIT: The command I used to invoke the script is "./testscript"
EDIT:
When running "mount" I get (among others) the following line that mentions /home:
/dev/mmcblk0p23 on /home type ext4 (rw,relatime,
In /etc/fstab the only line containing /home is
/userdata/user-data /home none bind 0 0
However, I am not sure where /userdata/user-data comes from (I'll add a .txt file that contains the whole content of /etc/fstab)
EDIT: It seems that the contents of the home directory can also be accessed in /userdata/
description: | updated |
description: | updated |
gajus (gajus) wrote : | #1 |
Kajetan (kajetan-krischan) wrote : | #2 |
I remounted / so that it becomes writeable ('sudo mount -o remount,rw /') and then copied my programs/scripts to e.g. /opt and ran them there. Note: / does not have much free space left on my device (~350MB). I'm not sure why it works and if this is the proper way of doing this (I don't think so: There has to be a reason why 'phablet-config writable-image' disables over-the-
The permissions of /opt are drwxr-xr-x
description: | updated |
DECwriterIII (very.very.old.school) wrote : | #3 |
Bash Reference Manual
_______
Reference Documentation for Bash
Edition 4.2, for Bash Version 4.2. December 2010
Chet Ramey, Case Western Reserve University
Brian Fox, Free Software Foundation
.
.
.
4 Shell Builtin Commands
.
.
.
4.1 Bourne Shell Builtins
The following shell builtin commands are inherited from the
Bourne Shell. These commands are implemented as specified
by the posix standard.
: ( a colon)
Do nothing beyond expanding arguments and
The return status is zero.
. ( a period)
Read and _execute_ commands from the filename
If filename doesnot contain a slash, the PATH variable
is used to find filename.
When Bash is not in posix mode, the current directory
is searched filename is not found in $PATH.
If any arguments are supplied, they become the
The return status is the exit status of the last command
If file name is not found, or cannot be read, the return
This built in is equivalent to source.
***** *****
***** SINCE YOU DIDN'T TELL us readers what you *****
***** actually entered at the command line, we *****
***** can only presume. *****
***** *****
***** *****
***** Based on that bit of BASH that I gave, *****
***** *****
***** you should have typed in this: *****
***** *****
***** *****
***** *****
***** *****
***** . ./myscript *****
***** *****
***** *****
***** *****
***** *****
***** The __ .__ is a command ! *****
***** That's right, just a period ! ...
DECwriterIII (very.very.old.school) wrote : | #4 |
Well that didn't show up well on this system.
I'll try again, but system will strip all extra(<humph>) spaces again.
$ . ./myscript
DECwriterIII (very.very.old.school) wrote : | #5 |
Be sure to "Read more" or "Download full txt" of my first comment.
The dratted PDF gives a closer resemblance to my desired format, but still is not perfect.
Kajetan (kajetan-krischan) wrote : | #6 |
Thanks, the command you suggested worked! Thanks a lot for further explaining why things are as they are.
What surprises me is that I always ran "./myscript" on my computer and it was executed as I expected it. Furthermore, it seems that a lot of beginner tutorials suggest to just run "./myscript". Do you know why this is the case?
I read through my ~.bashrc file but could not find anything that seems to be related to this...
description: | updated |
DECwriterIII (very.very.old.school) wrote : | #7 |
I've only just joined the Ubuntu One world for the
purpose of helping YOU slap your palm against your
forehead.
So I know nothing of your software or operating
systems or Projects. Please forgive me for not yet snooping
around this "place" enough yet.
_______
You should obtain a copy of
"The UNIX Programming Environment"
by Brian W. Kernighan and Rob Pike.
Study of this should fulfill several credits of both History and
Computer Science coursework. <grin>
_______
Existing in your $HOME directory should be the
HIDDEN FILES: .bashrc, .inputrc, and .init
( ls -a should reveal them)
In the file .init you should find a line similar to this:
export PATH=$HOME/
$HOME/android-
$HOME/system/
At some point I transferred something probably called
android-
into my Unix-like world and used tar -z to untar it.
The tar command created the android-gcc-4.4.0 directory
and numerous subdirectories and filled them with all the
files required for proper enjoyment of android-gcc.
I chdir'ed ( cd ) to the android-gcc-4.4.0 directory and used the
"make" command. This command added the words
$HOME/android-
in the file .init ( as well as performed other tasks involved
in the complete installation of this software ) .
At some point I added my own directory "bbdir" to my world and
since I wanted all of my "commands" in it to be executable from
anywhere I added :$HOME/
statement in the .init file.
Now, whatever tutorial that you use MAY assume that
the directory that they THINK you will be working in
has already been added to the $PATH.
( Caveat: I seem to almost remember another step to take
required to ensure executability. < sigh > But try this! )
Kajetan (kajetan-krischan) wrote : | #8 |
I see, I'll simply add "$HOME/
Thanks again for and your patience and for taking your time to explain this very clearly to me. I'm rather new to this topic and thought that it would be a bug since it didn't work like in the computer edition of Ubuntu...
I'm a bit curious - how did you find this bugreport?
DECwriterIII (very.very.old.school) wrote : | #9 |
>>>
I'm a bit curious - how did you find this bugreport?
I have pored endlessly over my Google History and I can't
find whatever combination of simple words brought your
bug to my screen.
Probably the words "execute" "shell" "scripts" were what
I searched.
"Ubuntu" __was__ really a rather rare topic for me.
_______
I've also given my two cents worth in Bug #1365602
Kajetan (kajetan-krischan) wrote : | #10 |
Ah, I see.
Thanks a lot!
Kajetan (kajetan-krischan) wrote : | #11 |
Now this is strange: to find out if it works I simply ran "PATH=$
Maybe it has something to do with the mount options? I'll add some information about this to my report.
Kajetan (kajetan-krischan) wrote : | #12 |
description: | updated |
DECwriterIII (very.very.old.school) wrote : | #13 |
You should have typed in:
export PATH=$HOME/
ALL of these "paths" must be found in the PATH
statement, or the system won't work correctly.
( Note:
Leftmost path is searched first. : : : Rightmost
path is searched last.)
The error
"bash: /home/phablet/
shows that the system was not directed by
$PATH to search "/bin" ( in root ) for "/bin/sh".
( "/sh" is the default "shell".
Calls to /sh should be redirected
to "~/bash" by the line
"export SHELL= . . . /bash"
in .bashrc ( or in .bash_profile ).)
(( Our friend, the "." calls /sh to execute our
scripts. But /sh in turn calls our actual
_choice_ of shells--bash ))
((( The file .bashrc is executed by
interactive shells.
The file .bash_profile is executed by
login shells.
I don't have super user access to root,
nor do I "login", so my hands-on-knowledge
of .bash_profile is nil. )))
The typing these lengthy PATH statements on
the command line is prone to error, so we have
all these "initial" files.
( Although a _modern_ system does allow us to
paste pre-edited lines to the prompt with ease. )
I recommend that you save an original copy
of .init under a name such as .init0 ,
and then alter the .init file.
Now,
KEEP YOUR FINGERS OUT
OF THE .init0 FILE ! ! ! <grin>
"Simply" running a new PATH at the command
line is rarely actually simple.
(Note: __I__ very rarely "mount" anything. )
_______
On MY android system, my choice of
TerminalIDE ( by Spartacusrex ) is stored in the
/data/data/
directory.
So Spartacusrex has included these items in the
.bashrc file:
export IDESYSTEM=
export SHELL=$
Thus "/sh" points to
/data/data/
through the use of "export SHELL= . . ." .
Kajetan (kajetan-krischan) wrote : | #14 |
I reinstalled Ubuntu on my device to make sure that this bug does not occur on my specific installation only. After the installation it seems that there is no ~/.init file by default in my home directory. Also, the PATH variable is neither specified in ~/.bashrc nor in ~/.profile (a comment in this file states that this file will be executed by a login shell if ~/.bash_profile and ~/.bash_login do not exist (which is the case)).
However, the default content of my PATH variable should be "/usr/local/
When I ran "PATH=$
I got "/usr/share/
I think the beginning of PATH is specified by the terminal-app; it includes my path at the end ("/home/
I know that you know a lot more than I do in this topic, but are you sure that I should type "export PATH=$HOME/
Anyway, if I run this command I get a "command not found"-message by many commands (such as ls: "-bash: ls: command not found") afterwards. (I guess that is because of different paths on my system...)
Since I do not have bash in my '/' directory I assumed that I should change the variable to ". . . /bin/bash" by running 'export SHELL=". . . /bin/bash" ' (note: when I ran 'export SHELL= . . . /bin/bash' I got an error for every string seperated by a space, e.g. "bash: export: `.': not a valid identifier").
However, this did not change anything - I still get the same error message...
DECwriterIII (very.very.old.school) wrote : | #15 |
The following
"export PATH=$HOME/
is based on the example of MY system since I didn't have you actual PATH statement
before me.
-
The Instruction "PATH=$
place. I am still hurriedly dusting-off many things in the back closet of my mind.
DECwriterIII (very.very.old.school) wrote : | #16 |
Oops, I used bad tactics.
-
In my phrase "export SHELL= . . . /bash",
the " . . . " was meant to be percieved as an
elipse representing an undetermined path.
( I very often use elipses in my non-technical
keyboard ramblings.)
-
Let me try this again:
export SHELL=/
-
<bent at the waist, head near knees,
arms held horizontally> He says,
"Oh, many apologies ( future (?) ) Great One !"
_______
Elipses--from mathematical background ?
Deep nesting of parentheses--from study of LISP !
The use of "<" and ">" to enclose proposed
physical actions--from theater class.
Kajetan (kajetan-krischan) wrote : | #17 |
Ok, thanks, now I understand what you wanted me to try.
With $PATH and $SHELL set as you told me it still does not seem to work for me...
(you are being very sarcastic or at least metaphoric in your second-to-last paragraph, right? (I am not good at detecting sarcasm even in my native language, sorry... (by the way, I _love_ parantheses! I should eventually have a look at LISP)))
DECwriterIII (very.very.old.school) wrote : | #18 |
That was an overly FLAMBOYANT display of my grief
at having wronged you.
I was saying that you may ( hopefully ) one day attain
the title "Great One" or you may ( unknownst to me)
already hold it.
No sarcasm intended.
No _obvious_ metaphor.
syntax error - poorly constructed if-then-else statement
-- "Virklich, das tut mir leid!" --
_______
Oh, great, _now_ my memory disgorges this !
***** In recent years , Ubuntu _boots_ *****
***** using "Dash" rather than "Bash". *****
This suggests a different directory path name, and likely
not .bashrc as an initial file ( at system boot ).
-
Many Android apps come with "BusyBox" incorporated into
the package just to make life easier for us "command line"
junkies, and I _don't_ doubt that Ubuntu has BusyBox ( and
therefore Bash ) onboard for possible invocation by users.
-
( Dash, _if_ it is virtually the same as NetBSD ASH, comes
equipped only with the "dd" built-in-command and not the
more familiar "cp" built-in-command. This is a strong
selling point for Bash. <grin> )
-
_______
dash(1) - Linux man page
_______
-
. . . A login shell first reads commands from the files
.profile if they exist.
If the environment variable ENV
is set on entry to an interactive shell, or
is set in the .profile of a login shell,
the shell next reads commands
from the file named in ENV.
-
Therefore, a user should place commands that are to be
executed only at login time in the .profile file, and commands
that are executed for every interactive shell inside the ENV file.
-
To set the ENV variable to some file,
place the following line in your .profile of your home directory
ENV=$HOME/.shinit; export ENV
substituting for ''.shinit'' any filename you wish.
-
If command line arguments besides the options have been
specified, then the shell treats the first argument as the
name of a file from which to read commands (a shell script),
and the remaining arguments are set as the
positional parameters of the shell ($1, $2, etc). Otherwise,
the shell reads commands from its standard input.
Kajetan (kajetan-krischan) wrote : | #19 |
Ok, thanks for clarification. Don't worry, nothing broke and I learned more about my system. (I like learning things about my system, especially when nothing breaks - I think the way how the parts work (together) is very interesting)
I have been called something similar to "Great One" by some of my friends for doing things like installing drivers on a windows system (those installations where one has to download the driver and then press install (not really a glorious thing...)).
Maybe, if I'll learn a lot and gain more experience I might be called like this for something that is really great :-)
Wow, you know german! (I've heard that it is not easy to learn german when your native language isn't german)
_______
As I understood BusyBox by reading the article in the english Wikipedia it seems to me that BusyBox is one package that has a lot of commands integrated in it. However, I think that Ubuntu doesn't have this included but has all programs in directories like /bin, /usr/bin and so on - I mean, there is a single executable for every single program, e.g. in /bin there are executables like bash, cat, date, gzip and so on. All programs that are run in userspace are in those directories.
_______
So according to your last paragrapgh I should be able to run a shell script by just entering the path to the file in dash, right?
(If so, it seems that it does not work when I run dash interactively, I get "dash: 1: Scripts/testscript: Permission denied")
DECwriterIII (very.very.old.school) wrote : | #20 |
Remember that a script written using the protcols of Bash
may call for the shell to do things that Dash can't interpret
properly.
The message:
"dash: 1: Scripts/testscript: Permission denied"
suggests to me that your script may have bombed because
of something in line no. 1 that Dash couldn't do.
_______
You should probably research the command "chsh".
This will do automatically what we've just
be trying to do by hand--alter initial files.
Bash has it.
But you should seek to use the Dash version
( if indeed that is the shell you boot in ).
The Dash version ( as configured for you system )
theoretically would know the the names of the
files that need changes.
Kajetan (kajetan-krischan) wrote : | #21 |
I found out a few things:
It seems that I called dash in a wrong way:
whenever I enter a nonexisting command I get "dash: <n>: not found" where <n> is the number of how many commands I have already entered in this session. So in my case "dash: 1: Scripts/testscript: Permission denied" just means that it can't be executed and that it is the first command I ran...
Before trying to use chsh I'd like to mention that I found out another thing:
my actual home directory (which lies in "/userdata/
So it has to have something to do with the mount options of my home directory.
("/userdata/
It also seems that my /etc/fstab file is mounted as tmpfs and it always changes back to its original state on a reboot.
DECwriterIII (very.very.old.school) wrote : | #22 |
- Changing_your_login_shell.pdf Edit (66.4 KiB, application/pdf)
From "Changing your Login Shell"
_______
The correct way for a user to change his or her shell
is via the chsh command.
chsh stands for change shell,
and does exactly what the name suggests.
Invoke it with no arguments and you will be prompted
for your password, then you will be prompted for your shell.
The file /etc/shells is consulted, and your chosen shell must
be included in there for your change to be accepted. If you
enter the name of a binary which is not contained in
/etc/shells you'll receive and error similar to this:
DECwriterIII (very.very.old.school) wrote : | #23 |
- Why doesn’t my _bin_sh script run under Ubuntu_ _ UNIX Administratosphere.pdf Edit (66.2 KiB, application/pdf)
From: "Why doesn’t my /bin/sh script run under Ubuntu?"
_______
In Ubuntu 6.10 (known as Edgy Eft) the decision was made
to replace the Bourne Again Shell (bash) with the Debian
Almquist Shell (or dash) as /bin/sh in Ubuntu.
-
To undo this change by the Ubuntu team, one can do this:
-
sudo dpkg-reconfigure dash
-
When this command executes, specify that you do not
want dash to act as /bin/sh. This will make every script
that runs /bin/sh run bash as has traditionally been the
case.
-
You can also make your scripts run /bin/bash instead of
/bin/sh; this provides all of the bash capabilities without
any concern as to whether /bin/sh will change again.
DECwriterIII (very.very.old.school) wrote : | #24 |
So you are interested in Lisp ?
-
Lisp has in its programming commands something
called a "lamda" ( a nameless _function_).
-
So the _greek_letter_ lambda is often the featured
graphic on a number of software packages.
-
Early on, Lisp forked into two principal divisions:
Common Lisp and Scheme
-
Scheme has then forked into such names as:
Gambit, Guile, and Clojure
-
And so my story brings me to . . .
-
_______
guile(1) - Linux man page
_______
-
Name
guile - a Scheme interpreter
-
Synopsis
-
guile [-q] [-ds] [--help] [--version] [--emacs] [--debug]
[-l FILE] [-e FUNCTION] [] [-c EXPR] [-s SCRIPT] [--]
Description
-
GNU Guile is an interpreter for the Scheme programming
language. It implements R5RS, providing additional features
necessary for real-world use. It is extremely simple to embed
guile into a C program, calling C from Scheme and Scheme
from C. Guile's design makes it very suitable for use as an
"extension" or "glue" language, but it also works well as a
stand-alone scheme development environment.
-
The guile executable itself provides a stand-alone interpreter
for scheme programs, for either interactive use or executing
scripts.
-
This manpage provides only brief instruction in invoking guile
from the command line. Please consult the guile info
documentation (type info guile at a command prompt) for
more information. There is also a tutorial (info guile-tut)
available.
-
-
-
The story gets more interesting when we see where
guile is available . . .
-
_______
Ubuntu Manpage: guile - a Scheme interpreter
manpages.
_______
-
So in addition to writing scripts in ash, bash, awk, and sed,
your system may already be ready for you to write scripts
in guile <-- scheme <-- lisp .
-
Now, are you really, really _certain_ that you want to learn lisp ? ? ? ! ! ! ! !
Kajetan (kajetan-krischan) wrote : | #25 |
So I changed /bin/sh to /bin/bash and I still get the same error.
Changing my login shell should not affect anything else but my terminal, right? So programs that are executed as my user won't be effected? If so I'll try to change my shell.
Ok, Lisp sounds interesting to me but I think I should get more experienced in C before.
(Thanks for the pointer to guile; it is not installed by default but it could be installed easily).
description: | updated |
DECwriterIII (very.very.old.school) wrote : | #26 |
Once you are logged in ? Nope.
_______
More experienced in "C" ? Well, perhaps after creating
your own Unix clone, you would feel that you could claim
to be experienced . . . .
Learn Lisp first, it's infinitely easier.
You CAN teach yourself Lisp ! ( I did. )
"C" is not for the faint of heart. You can expect to take
several university courses just so you can call yourself
a beginner.
-
All I've ever taken in "C" programming is a single
three month university course ( one complete
school term ).
-
I think I could still succeed at following through
the with the logic of someone else's programming.
But I now cringe to think of writing a worthwile
program of my own from scratch.
( Does this exhibit the "Use it or Lose it" principle ? )
-
Allow me to make this comparison: My German
instructor promised the class, "Some day I'll learn
Spanish--when I have a weekend free." The relative
difficulty of German compared to Spanish is the
same as that of "C" compared to Lisp.
-
Use Lisp to relax as you sweat out the "C" .
( You'll need something to do while you
COMPILE your "C" programs. )
-
Clojure is a Scheme that can convert its code to Java.
Gambit-C is a Scheme that can convert its code to "C".
( So you can avail yourself of coding examples
"written by the experts". )
-
_______
-
Launchpad has Gambit-C as one of the
projects it's working On ?
-
Dude, I'm so sorry.
You just became a Guinea Pig.
DECwriterIII (very.very.old.school) wrote : | #27 |
I previously said:
"Clojure is a Scheme that can convert its code to Java."
Please allow me to recant.
-
Clojure is a Scheme that is _implemented_ in Java.
"Clojure is a dynamic programming language that
targets the Java Virtual Machine (and the CLR, and
JavaScript). It is designed to be a general-purpose
language, combining the approachability and
interactive development of a scripting language
with an efficient and robust infrastructure for
multithreaded programming. Clojure is a compiled
language - it compiles directly to JVM bytecode,
yet remains completely dynamic. Every feature
supported by Clojure is supported at runtime.
Clojure provides easy access to the Java
frameworks, with optional type hints and type
inference, to ensure that calls to Java can
avoid reflection."
( Hey, let's see YOU sum that up in
eleven words ! )
_______
-
Launchpad has Gambit-C as one of the
projects it's working On ?
-
Dude ! ! !
-
I am __so__ sorry !
-
You just became a Guinea Pig.
Kajetan (kajetan-krischan) wrote : | #28 |
Ok, I'll try to change my shell then
_______
Ah, I see, I should have said "get a very little bit known to C (not a beginner yet, but knowing the very basics such as e.g. a bit of the syntax)".
But what about learning C by myself? I mean, would I be a beginner if I understood everything from the book "Programming in C" (the one written by Brian Kernighan and Dennis Ritchie; this is a theoretical question)?
[side note: I've got this book at home; I am _very_ far away from understanding everything. However, I liked the first chapter a lot and it seems that I understand most of this chapter...]
Will Breaden Madden (zicodian) wrote : | #29 |
I confirm that this issue affects me too on the Aquaris E4.5 Ubuntu Edition.
Mad-Halfling (mad-halfling) wrote : | #30 |
Also affects Mako, even with a simple script like
#!/bin/bash
if [ -d "$HOME/bin" ] ; then
echo found
fi
This works in an adb shell, but not in the terminal on the phone. In the phone terminal
. ./test.sh
as mentioned here:-
http://
executes it ok
Marcel Hörz (marzel) wrote : | #31 |
Here some short facts:
1st: bash/shell scripts from home-directory give this error:
bash: ./script: /bin/bash: bad interpreter: Permission denied
2nd: exactly same scripts in /usr/bin are working fine
3rd: If you are loged in via ssh, then it doesn't matter, where the scripts are.
4th: One short look in /etc/passwd will show you, that the user "phablet" does not really exist anymore. (In 14.10 you could find user phablet in that file.)
So all in one: I think, that it is possible, that point 4 is the reason, that you can't execute bash-scripts. (In 14.10 there I had no problems with.)
AlainKnaff (kubuntu-misc) wrote : | #32 |
> If you are loged in via ssh, then it doesn't matter, where the scripts are.
Good! So this gives us a workaround:
ssh localhost
And indeed, after this, shell scripts work :-)
> 4th: One short look in /etc/passwd will show you, that the user "phablet" does not really exist anymore.
... is now in /var/lib/
> So all in one: I think, that it is possible, that point 4 is the reason, that you can't execute bash-scripts.
Nope, if you log in using ssh, you are the same user, and there it works. I think, it's rather a matter of apparmor "permissions" on the terminal app, or something like this...
description: | updated |
AlainKnaff (kubuntu-misc) wrote : | #33 |
> EDIT: It seems that the contents of the home directory can also be accessed in /userdata/
Great! Actually, you can just put the following at the end of your .bashrc file:
PATH=/userdata/
This just puts bin from under that userdata directory into your PATH, so you can call yours scripts without needind to cd back and forth
Kajetan (kajetan-krischan) wrote : | #34 |
Good Idea!
To be honest though, I have my scripts lying around in a few places, but I could put all of them in my PATH so that shouldn't be a problem.
Alternatively I could just add the line "cd /userdata/
Still, I wonder why I can't execute executable files in one of the directories but not in the other...
David Planella (dpm) wrote : | #35 |
What does the script do? Could you attach it so someone else can try to reproduce the bug?
Changed in ubuntu-terminal-app: | |
status: | New → Incomplete |
AlainKnaff (kubuntu-misc) wrote : | #36 |
> What does the script do?
*any* script shows the problem, no matter what its contents, as long as it is called from the terminal app, under the directory /home/phablet:
It works correctly from an ssh session.
It works correctly from the terminal app when called as /userdata/
> Could you attach it so someone else can try to reproduce the bug?
#!/bin/sh
echo "Hello world"
Really, all of this is in the description, just forward it to a developer already :-)
Stefano Verzegnassi (verzegnassi-stefano) wrote : | #37 |
I confirm it does not work.
I tried the "hello world" script in comment #36, made it executable, and got the error:
bash: ./script.sh: /bin/sh: bad interpreter: Permission denied
Then I had a look at the AppArmor output, and I found this:
phablet@
[30173.807064] type=1400 audit(145407717
[30395.224341] type=1400 audit(145407739
phablet@
Which confirms what I've already seen when I was working on some of my projects: unconfined apps are not really unconfined.
Changed in ubuntu-terminal-app: | |
importance: | Undecided → High |
have exactly the same problem.
bash: ./configure: /bin/sh: bad interpreter: Permission denied
ubuntu 14.10 (r133)