xfs
[Top] [All Lists]

Re: Mount option 'noexec' seems not working (Maybe 'nodev' also)

To: Steve Lord <lord@xxxxxxx>
Subject: Re: Mount option 'noexec' seems not working (Maybe 'nodev' also)
From: Blizbor <tb670725@xxxxxx>
Date: Tue, 22 May 2001 13:22:26 +0200
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <200105220028.f4M0Sld06710@xxxxxxxxxxxxxxxxxxxx>
References: <Message from "Blizbor (i)" <tb670725@xxxxxx> <005b01c0e252$af837ec0$020010ac@xxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
At 5/22/01 02:28 AM, Steve Lord wrote:
>> Hi,
>
>Try the CVS tree, it appears to work there:

Thanks all guys, I have found whats going on. It's bash

[root@mail /tmp]#
[root@mail /tmp]# uname -a
Linux mail.ima.pl 2.4.2-SGI_XFS_1.0smp #1 SMP Fri Apr 27 19:07:34 CDT 2001 i686 
unknown
[root@mail /tmp]# mount | grep tmp
/dev/ida/disc0/part2 on /tmp type xfs (rw,noexec,nodev,noatime,nodiratime)

[root@mail /tmp]# echo "/bin/ls" > ./ls ; chmod +x ./ls

[root@mail /tmp]# ./ls
bash: ./ls: Permission denied

[root@mail /tmp]# . ./ls
auto    ls           mcextvKCUve  procmlog                               
sess_d200e8cdb441eaa4884a74c5c3527fe9  wypakowane
backup  mcextOWz6Ui  plik         sess_03cd830e3b3d96a20b9bb80d1a43cda9  
STARE_STRONY

[root@mail /tmp]# cp /bin/ls .
cp: overwrite `./ls'? y
[root@mail /tmp]# ./ls
bash: ./ls: Permission denied

[root@mail /tmp]# . ./ls
bash: .: ./ls: cannot execute binary file
[root@mail /tmp]#

Cheers,
Blizbor


<Prev in Thread] Current Thread [Next in Thread>