Solved

Is there a way of making the user sudo by default? So the sudo command can be suppressed?

Posted on 2014-01-15
2
380 Views
Last Modified: 2014-01-15
I have an AIX 5.3 and sudo in place. It works fine but every time to use kill command I need to type sudo in front of it. Is there a way of making the user sudo user by default? So I can run the command kill -9 without sudo prefix?
0
Comment
Question by:RafalKa
2 Comments
 
LVL 31

Accepted Solution

by:
farzanj earned 500 total points
ID: 39782241
Yes, make it alias in your shell

alias kill='sudo kill'

Open in new window


And also put it in your shell's profile file
0
 

Author Closing Comment

by:RafalKa
ID: 39782275
Thank you. It works fine.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

762 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

18 Experts available now in Live!

Get 1:1 Help Now