User:Ssoe

From ICO wiki
Jump to navigationJump to search
#!/bin/bash
#author Siim
if [ $UID -ne 0 ]
then
	echo "You must be a root user"
	exit 1
fi

#filename
$FILE=$1
find / -perm -4000 > $FILE
exit 0