Wednesday, May 10, 2017

Solaris 11: Inconsistent password files

# useradd -u 166 -g 0 -m -d /export/home/user01 user01
/usr/lib/passmgmt: Inconsistent password files
UX: useradd: ERROR: Inconsistent password files.  See pwconv(1M).

Run pwconv command, you will be able to locate the problem


# pwconv
pwconv: ERROR: bad entry or blank line at line 1394 in /etc/passwd
pwconv: Unexpected failure. Conversion not done.

Friday, April 28, 2017

Fedora 25: Keep using DHCP after installation

Fedora 25 keeps using DHCP after installation even Static IP has been configured during installation.

1. Stop and disable gnome NetworkManager
# systemctl stop NetworkManager.service
# systemctl disable NetworkManager.service
2. Start and enable network service
# systemctl restart network.service
# systemctl enable network.service 
3.make changes in 
TYPE=Ethernet
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
NAME=eth0
UUID=15da7b6d-8cde-3858-883b-2901ba6168b6
ONBOOT=yes

Wednesday, April 26, 2017

Upgrade Mongodb Driver for PHP

pecl config-show
pecl version

Download the binary from
https://pecl.php.net/package-changelog.php?package=mongo&release=1.2.5


wget http://pecl.php.net/get/mongo
pecl install mongodb-*.tgz
or
pecl upgrade mongodb-*.tgz