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
381 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
LINUX ZIP - UNCOMPRESS WINDOWS PATH 3 88
Linux: disable vim auto-comment 7 98
Linux "time" command output redirection 16 121
Adding a continue option in a script 9 21
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
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 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.:
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.

867 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

16 Experts available now in Live!

Get 1:1 Help Now