Zamir's Board Just record myself

Home Search

Solaris notes

1. Enable rsh
svcadm enable svc:/network/login:rlogin or inetadm -e rlogin
svcadm enable shell:default

2. Configure rsh/rlogin with no password
vim ~/.rhosts , add like this
hostname username

3. Enable root login via rlogin

vi /etc/default/login
then comment the following line
this line is to restrict root to use /dev/console only. So if this is set, root can not login from telnet/rlogin

4. Enable root login via SSH
Firstly, we need to fix the ssh config (/etc/ssh/sshd_conf) to PermitRootLogin yes.
In Solaris 11, root is defined as a role in /etc/user_attr, so if we need to ssh as root, we need to modify this file and then change root::::type=role to root::::type=normal (if this line exists). See the following links.

5.The package ‘entire’
The summary of the package ‘entire’: incorporation to lock all system packages to the same build
It do not consist of any file, just the meta data of all package of the current build

6. Show total memory
prtconf | grep “Memory”

7. Show CPU information
psrinfo -pv(physical and virtual)
psrinfo -p (the total number of physical core)

8. Quit a zone

9. Quit a ILOM
Esc (

10. Configure Solaris to use DNS instead of NIS/ldap
#svccfg -s name-service/switch setprop config/host = astring: ‘(“files dns”)’

11. Enable ASLR on Solaris
sxadm exec -s aslr=enable /some/program

12. See whick package depends on library/python-2/pygobject-26
pkg search -l -H -o ‘depend:require:library/python-2/pygobject-26′

Thoughts on “Solaris notes

© 2017 Zamir's Board.

Search for: