November 2014
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930

Categories

November 2014
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930

MBR vs GPT

MBR is the standard partitioning scheme that’s been used on hard disks since the PC first came out. It supports 4 primary partitions per hard drive, and a maximum partition size of 2TB.

GPT disks are new, and are readable only by Windows Server 2003 SP1, Windows Vista (all versions), and Windows XP x64 Edition. […]

Removing Linux BASH SHELLSHOCKER MALWARE

unknow processes dsfref, gfhddsfew, dsfref etc are starting automatically in centos 6.5

Virus mainly present in /etc/init.d/. Virus will run automatic on the time system start, so remove entry from /etc/init.d. These are virus and its locations

/etc/dsfref,

/etc/gfhddsfew

/etc/dsfref

To Remove Virus from linux

Note: I used chattr -i to change permissions and deleted […]

Centos 7 SYSTEMCTL && Run level && hostname

Centos 7 SYSTEMCTL && Run level && hostname

Centos 7 SYSTEMCTL && Run level && hostname

systemctl start httpd.service (service httpd start)

systemctl stop httpd.service ( service httpd stop)

systemctl restart httpd.service ( service httpd stop)

systemctl status httpd.service ( service httpd status)

systemctl enable httpd.service (chkconfig httpd on)

systemctl disable httpd.service (chkconfig httpd […]

Centos 7 Samba

Centos 7 Samba

FILEDOC /samba/docs LEARDOCS /samba/tech

rpm -qi samba

mkdir -p /samba/docs mkdir -p /samba/tech

ulimit -n 16384

vi /etc/security/limits.conf * – nofile 16384

cd /etc/samba/

cp smb.conf smb.conf.origin

[global] workgroup=FILESERVER netbios name=SERVER1 server string=Samba Server #security=share security=user map to guest = Bad User [SHAREDOCS] path=/samba/tech readonly=yes browseable=yes guest ok=yes [TECHDOCS] path =/samba/tech public […]

Centos7 Apache HTTP SERVER

Centos7 Apache HTTP SERVER

yum -y install httpd

rpm -qi httpd

systemctl enable httpd.service

ln -s ‘/usr/lib/systemd/system/httpd.service’ ‘/etc/systemd/system/multi-user.target.wants/httpd.service’

chkconfig httpd on

systemctl enable httpd

mkdir /wwwroot/www echo “www.rmohan.com” > /wwwroot/www/index.html

mkdir /wwwroot/crm echo “rmohan.com” > /wwwroot/crm/index.html

cd /etc/httpd/ mkdir vhost-conf.d echo “Include vhost-conf.d/*.conf” >> conf/httpd.conf

ServerName www.rmohan.com DocumentRoot /wwwroot/www/ Requireall granted

[…]

LDAP repository in Websphere Application Server 7

his is to record the steps i used to switch LDAP repository in Websphere Application Server 7 and enabled LDAP over SSL.

Lets Start

Point your browser to the WAS console and login using admin account.

Add in the new LDAP server configurations

As i use a few repositories in my environment, i would be […]

Allowing longer web session going through Apache to Websphere Application Server

Had a tough one last month when migrating the system to WAS. I’m still new to WAS, hit a few problems and take this chance to document down so that this form my reference and hopefully it help you too.

Users has been complaining that the web service keep getting time out, returning a 500 […]

Resolving ADMR0104E for Application Server

This write up serve to record the resolution for the ADMR0104E error encountered by Websphere Application server during start up. The Application Server eventually is unable to start up.

From “SystemOut.log”, we see that the system is unable to read some properties file.

[6/27/12 12:08:35:103 SGT] 00000000 FileDocument E ADMR0104E: The system is unable to […]

Recover websphere password

Google online and found this interesting step to recover websphere 7.1 password.

For encrypting the password we have,

//java/bin/java -Djava.ext.dirs=//deploytool/itp/plugins/com.ibm.websphere.v7_7.0.1.v20100710_0411/wasJars/ -cp securityimpl.jar:iwsorb.jar com.ibm.ws.security.util.PasswordEncoder secret

The output is

decoded password == “secret”, encoded password == “{xor}LDo8LTor”

Hence, you can use the same method to decrypt the encrypted password.

//java/bin/java -Djava.ext.dirs=//deploytool/itp/plugins/com.ibm.websphere.v7_7.0.1.v20100710_0411/wasJars/ -cp securityimpl.jar:iwsorb.jar com.ibm.ws.security.util.PasswordDecoder {xor}LDo8LTor

The output […]

Encrypting the ID and Password for Websphere Application Server

By default, you need to supply the ID and password when starting up/shutting down the deployment manager, node or application server. Example of the command as below

Deployment Manager //bin/startManager.sh -username XXX -password XXX

Node //bin/startNode.sh -username XXX -password XXX

Application Server //bin/startServer.sh -username XXX -password XXX

The steps to encrypt the password and ID […]