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

Re: mounting /tmp noexec



* Preben Randhol 

| Alexey Vyskubov <alexey.vyskubov@nokia.com> wrote on 03/01/2002 (09:23) :
| > 
| > [terrapin] 08:46:52 ~$ sudo mount -o remount,noexec /tmp 
| > Password:
| > [terrapin] 08:47:11 ~$ touch /tmp/a
| > [terrapin] 08:47:14 ~$ chmod +x /tmp/a
| > [terrapin] 08:47:17 ~$ ls -l /tmp/a
| > -rwxr-xr-x    1 alexey   alexey          0 ñÎ×  3 08:47 /tmp/a
| > [terrapin] 08:47:21 ~$ /tmp/a
| > bash: /tmp/a: Permission denied
| > [terrapin] 08:47:25 ~$ 
| 
| what happens if you do:
| 
| sh -x /tmp/a

It works just fine.  That is part of why noexec is pointless.

-- 
Tollef Fog Heen
Unix _IS_ user friendly... It's just selective about who its friends are.



Reply to: