[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Debian]: Re: [Debian]: Shell-Script ausführbar???



Marko Schulz wrote:
> 
> On Mon, Nov 16, 1998 at 02:05:28PM +0000, Arne P. Boettger wrote:
> > Hallo!
> >
> > Schon mehrfach habe ich das Phänomen beobachtet, daß ein Shellscript mir
> > antwortet mit:
> >
> > apb@hercules:/home/apb > ./.xsession
> > bash: ./.xsession: Permission denied
> >
> > Dabei stimmen doch die Permissions, oder?
> >
> > apb@hercules:/home/apb > ls -la .xsession
> > -rwx------   1 apb      users          22 Nov 16 15:00 .xsession
> >
> > Hilfe, wo ist das Problem?
> 
> Die Permissions des Interpreters der .xsession ausführen soll sind falsch:
> marko@rincewind[/tmp]$ cat .xsession
> #!/tmp/foo
> 
> marko@rincewind[/tmp]$ ls -l .xsession
> -rwxrwxr-x   1 marko    marko          11 Nov 17 05:30 test-script
> 
> marko@rincewind[/tmp]$ ./.xsession
> bash: ./test-script: Permission denied
> 
> marko@rincewind[/tmp]$ ls -l /tmp/foo
> -rw-rw-r--   1 marko    marko           0 Nov 17 05:31 /tmp/foo

Nein.

apb@hercules:/home/apb > cat .xsession
#!/bin/sh

apb@hercules:/home/apb > ls -l .xsession
-rwxr-xr-x   1 apb      users          10 Nov 17 16:51 .xsession

apb@hercules:/home/apb > ./.xsession 
bash: ./.xsession: Permission denied

apb@hercules:/home/apb > ls -l /bin/sh
lrwxrwxrwx   1 root     root            4 Sep  3 20:33 /bin/sh -> bash

apb@hercules:/home/apb > ls -l /bin/bash
-rwxr-xr-x   1 root     root       426984 Jul 15 22:14 /bin/bash

> 
> --
> marko  -  Nordisch by Nature
> 


-- 
Ciao, Arne P. Boettger (arne.boettger@gmx.de)
------------------------------------------------
Um sich aus der Liste auszutragen schicken Sie
bitte eine E-Mail an majordomo@jfl.de die im Body
"unsubscribe debian-user-de <your_email_address>"
enthaelt.
Bei Problemen bitte eine Mail an: Jan.Otto@jfl.de
------------------------------------------------
Anzahl der eingetragenen Mitglieder:     641


Reply to: