©2015 -
HOW TO CONFIGURE SUDO IN SOLARIS
DOWNLOAD THE REQUIRED PACKAGES
Go to the Sun Freeware website to download the following packages for your platform. In my case, the packages are for the Solaris 10 x86.
NOTE: You may download my local copies of the packages below. For browsers other than Internet Explorer or Safari, do right-
libgcc-
libiconv-
libintl-
sudo-
INSTALL THE LIBRARIES AND SUDO PACKAGES
NOTE: Respond with "y" to all pkgadd prompts
# gunzip libiconv-
# pkgadd -
# pkginfo SMCliconv
application SMCliconv libiconv
#
# gunzip libgcc-
# pkgadd -
# pkginfo SMClgcc346
application SMClgcc346 libgcc
#
# gunzip libintl-
# pkgadd -
# pkginfo SMClintl
application SMClintl libintl
# gunzip sudo-
# pkgadd -
# pkginfo SMCsudo
application SMCsudo sudo
CREATE SYMBOLIC LINKS
# ln -
# ln -
# ln -
MAKE sudoers FILE WRITABLE TO ROOT BEFORE EDIT
# ls -
-
#
# chmod u+w /usr/local/etc/sudoers
# ls -
-
#
EDIT SUDOERS FILE TO PROCEED WITH ADDING PRIVILEGES TO USERS
A good reference for sample parameters of sudoer file can be found here.
The example below is to allow the users -
vi /usr/local/etc/sudoers
# Add entries below
User_Alias DBAUSERS = jkirk, jbourne
DBAUSERS ALL=NOPASSWD: /usr/bin/su -
MAKE SUDOERS FILE BACK TO READ 0440 PERMISSIONS
#chmod 0440 /usr/local/etc/sudoers
# ls -
-
#
If don't do the above 0440 change, sudo will not work and give error as:
-
sudo: /usr/local/etc/sudoers is mode 0660, should be 0440
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
-
TO CHECK CURRENT SUDO PRIVILEGES
-