"Peter Steiner" <pxstei...@yahoo.ca> wrote: >In the past I thought that su and sudo are equivalent regarding the executed >command. This seems to be not the case.
I don't know what you were using in the past, but sudo and su are normally different commands. su is an old standard, dating back to at least V6. It sets the uid and runs any command you give it as that user, if you know that users password (and are in the wheel group if trying to do something as root). A common hack is to make it work with the invoking users password to get to root, and then not have a root password. sudo is a relatively new tool. It adds real access control facilities, letting you specify a number of conditions on whether or not a user can run a command, but only accepts the invoking users password. Some unix clones have done away with su completely in favor of sudo, and may alias su to sudo. Solaris - already having good access control facilities (look up roles in the OpenSolaris docs) isn't one of them. >I experienced the following weired situation: > >I logged in as a "normal" user. >I typed: sudo bootadm ........ >now I was prompted for a password. I entered the root password which was >somehow rejected ("Sorry, try again"). As I explained, sudo only works with your password. >On the other side if I type: >sudo ><password> >bootadm.... > >then everything works fine. Without knowing what "the other side" is, I can't explain its behaviour. >So why is there a difference between "su" and "sudo"? Because they are different commands, written by different people with different goals. OpenSolaris has them both because its a real unix, not a clone. -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. _______________________________________________ opensolaris-help mailing list opensolaris-help@opensolaris.org