Powered By Blogger

Thursday, April 21, 2011

Restricted access on Solaris Server

1) Create a group with the users who need access

sshuser::140:testuser,tomcat,apache

2) Modify /etc/ssh/sshd_config, add following line

AllowGroups sshuser

3) Restart the ssh service

#svcadm restart network/ssh:default

Tuesday, April 12, 2011

Removing bonding in LINUX

ifconfig bond0 down
echo "-eth0" > /sys/class/net/bond0/bonding/slaves
echo "-eth1" > /sys/class/net/bond0/bonding/slaves
echo "-bond0" > /sys/class/net/bonding_masters
rmmod bonding

Removing Link Aggregate on Solaris

To remove an interface from an link aggregate:
Test-Server # dladm remove-aggr -d e1000g2 1
Test-Server #
To delete an aggregate:
Test-Server # dladm delete-aggr 1
Test-Server #

Monday, April 4, 2011

Checking apache httpd.conf location

execute following command from bin directory
# ./httpd -V and look for
-D SERVER_CONFIG_FILE="/etc/apache2/httpd.conf"
Welcome to the UNIX world