Solved

How do you grant a new user sudo access

Posted on 2015-01-08
4
197 Views
Last Modified: 2015-01-12
How do grant a new user sudo privileges?
0
Comment
Question by:sajmf0408
  • 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now