User:Ssoe: Difference between revisions

From ICO wiki
Jump to navigationJump to search
(Created page with "<source lang="bash"> #!/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 </source>")
 
(No difference)

Latest revision as of 12:33, 17 March 2015

#!/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