|< 1 2 >| | 20 Einträge, 2 Seiten |
-rws--x--x
/dev/fd/4
Quote> what's /dev/fd/4??
That's a temporary name for the interpreter of a script.
$ perl <script>
$ <script>
QuoteThat's a temporary name for the interpreter of a script. If you use
"#!/bin/foobar", and the hurd can't find foobar anywhere, it will map this
to a temporary whatever (pipe I think) /dev/fd/4.
QuoteSollte das Skript nicht eher rwsr-xr-x haben?
QuoteDie Shell ruft doch das Skript über den Shebang auf.
Damit sollte doch dort sowas wie /usr/bin/perl o. ä. stehen.
Und mit which perl sollte doch angezeigt werden, wo dein Perl residert.
...
Ist vielleicht der Shebang NICHT derselbe wie bei which perl ausgegeben wird?
QuoteWird perl als Wrapper(skript) aufgerufen?
$ <script>
$ perl <script>
QuoteHowever, if the kernel set-id script feature isn't
isabled, Perl will complain loudly that your set-id
script is insecure. You'll need to either disable the
kernel set-id script feature, or put a C wrapper around
the script. A C wrapper is just a compiled program that
does nothing except call your Perl program. Compiled
programs are not subject to the kernel bug that plagues
set-id scripts.
...
In recent years, vendors have begun to supply systems free
of this inherent security bug. On such systems, when the
kernel passes the name of the set-id script to open to the
interpreter, rather than using a pathname subject to
meddling, it instead passes /dev/fd/3. This is a special
file already opened on the script, so that there can be no
race condition for evil scripts to exploit.
|< 1 2 >| | 20 Einträge, 2 Seiten |