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

Re: user can't mount loop device...



* Matt Zimmerman 

| On Sat, Jan 20, 2001 at 08:23:27PM +0100, Tollef Fog Heen wrote:
| 
| > noexec is very weak on linux anyhow:
| > 
| > $ ~/bin/hello 
| > bash: /home/tfheen/bin/hello: Permission denied
| > $/lib/ld-linux.so.2 ~/bin/hello 
| > Hello, world!
| > $mount | grep home
| > /dev/ide/host0/bus0/target0/lun0/part3 on /home type ext2 (rw,noexec)
| > $
| 
| This is not a weakness in Linux (the kernel), but a filesystem permissions
| problem.  There is no need for ld-linux.so.2 to be executable, at least for
| executables to run.  It can be used for diagnostic purposes, though.

It isn't?

#chmod -x /lib/ld-linux.so.2 
#

(other window):

$ls
bash: /bin/ls: Permission denied
$

(Thankfully, I didn't believe you, so I had a sash shell up and
running already.  No harm done :)

-- 

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



Reply to: