Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How do you grant a new user sudo access

Posted on 2015-01-08
4
Medium Priority
?
205 Views
Last Modified: 2015-01-12
How do grant a new user sudo privileges?
0
Comment
Question by:sajmf0408
  • 2
4 Comments
 
LVL 85

Expert Comment

by:ozo
ID: 40538362
see `man sudoers`
0
 
LVL 22

Accepted Solution

by:
Brian Utterback earned 2000 total points
ID: 40538783
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
 

Author Comment

by:sajmf0408
ID: 40540029
I will try that.  Thanks.
0
 

Author Closing Comment

by:sajmf0408
ID: 40545255
Thanks. It worked.  I will continue reading the man pages.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month8 days, 19 hours left to enroll

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question