Monday, March 11, 2013

Solaris sudo

If you can afford it security wise you should use sudo whenever possible and that includes Solaris. It is an enormous time saver not to have to be switching to root and back to original user, dealing in many cases with default csh etc.

The first step is to locate where the sudoers file is.

Assuming the /opt/csw/etc/sudoers is the location go ahead and make sure you add all privileges for the user account you want to have same powers as root:
$ su root -c 'vi /opt/csw/etc/sudoers'
...
#Add the necessary line for your user. In this case the typical Advent Geneva user (geneva)
root    ALL=(ALL) ALL
geneva  ALL=(ALL) ALL
...

No comments:

Followers