I am not sure what point it is you are trying to make but:

$ LD_PRELOAD=./id0 sh
\u@\h:\w\n$ id -un
root
\u@\h:\w\n$ less /etc/master.passwd 
/etc/master.passwd: Permission denied
\u@\h:\w\n$ ls -l /etc/master.passwd 
-rw-------  1 root  wheel  3984 Feb  5 22:44 /etc/master.passwd
\u@\h:\w\n$

Reply via email to