I want to run the following as a user other than root:
pooladm -e;poolstat -r pset|grep -v "id"|wc -l|awk '{print $1}'
When I run it I get:
pooladm: insufficient privileges
1
How do I give the user privileges to run it without them having to type in sudo first?