After fresh installation of Solaris 10, root login via SSH is disabled by default. It can be enabled as follows:
1. Modify /etc/ssh/sshd_config, set "PermitRootLogin" to "yes".
2. Restart the SSH service:
# svcadm restart svc:/network/ssh:default
Changing Root's Default Shell to Bash
Modify /etc/passwd, change root user's default shell to /usr/bin/bash.
Installing Sudo
There is no sudo in Solaris 10 by default, so you need to build and install it from its source code by yourself. First, you need to install following dependent packages first (download them from http://sunfreeware.com):
gcc-3.4.6-sol10-x86-local.gz
libiconv-1.14-sol10-x86-local.gz
They can be installed by using "pkgadd" command.
Second, download sudo's source distribution from http://www.sudo.ws, "configure", "make" and "make install" it.
No comments:
Post a Comment