How do you grant a new user sudo access

How do grant a new user sudo privileges?
sajmf0408Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Brian UtterbackConnect With a Mentor Principle Software EngineerCommented:
The first question is, so you have sudo installed? The sudo feature does not come bundled with Solaris 10. However, it is available on the Solaris 10 companion disk. So, if sudo is not installed, you will need to install it from the companion disk.

Once it is installed, then you can do "man sudoers" as suggested above.

The quick and dirty way to add a user is to add a line like this to the sudoers file (/etc/sudoers):

username ALL=(ALL) ALL

This gives total access to the user though. This is probably okay for a lab environment, but you might want to be
more restrictive in a production setting. Relly, you need to read the man page to understand what you really need.
0
 
ozoCommented:
see `man sudoers`
0
 
sajmf0408Author Commented:
I will try that.  Thanks.
0
 
sajmf0408Author Commented:
Thanks. It worked.  I will continue reading the man pages.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.