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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

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…
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 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.

830 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