Quote:
Originally Posted by
jim mcnamara
I know UNIX, but every time I give a detailed answer to an AIX question I get something not quite right because AIX is, um, different.
You are doing alright. In fact sudo is one of the few things where AIX is different from "normal AIX", because it is absolutely the same as other systems.
Quote:
Originally Posted by
acoomer
Is there no way where we can pass the password as a parameter as how we are passing the user name?
Yes, this is possible. Admins doing this should be tarred and feathered, though. Honestly: you don't want to do this. It is a security hole you can drive a truck through and begs the question: if one user is allowed to know the password of the other user than why can't they share a user-ID anyway?
Keep in mind that shell scripts are plain text - what you write into them can be read with a simple editor. Would you want to put a password simply into a file? You could as well use no password at all instead, no?
Install
sudo, which you can download from the
IBM AIX Toolbox for Linux Applications as an rpm-package.
Basically you define three things in a sudoers file: a "command alias", which is a list of commands (it can even be one command). Then a "user alias", which is the same for a list of users - it can also be one user. The last thing is a list of things to be allowed: a certain user-alias (the list of users defined there) should be allowed to execute the command-alias (the list of commands) not as themselves but as a certain other user (usually, but not necessarily root).
I hope this helps.
bakunin