Solved

How do you grant a new user sudo access

Posted on 2015-01-08
4
203 Views
Last Modified: 2015-01-12
How do grant a new user sudo privileges?
0
Comment
Question by:sajmf0408
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 84

Expert Comment

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

Accepted Solution

by:
blu earned 500 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

623 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