#!/usr/bin/ruby def valida_root(usuario) if usuario == 'root' print "eres root\n" else print "no eres root\n" end end valida_root(`whoami`.chomp)