January 2017
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Categories

January 2017
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

How to Change Linux User’s Password in One Command Line

I frequently create new user accounts and change or set password for these accounts on a batch of Linux boxes. The create new user can be done by one command line. The problem is to change the password. In Linux, we use passwd to change password, but passwd requires input from stdin to get the […]

Install Postfix on Solaris 11

Install Postfix on Solaris 11

 

# Prepare compile environment root@xxx:~/# cat /etc/release Oracle Solaris 11.1 X86 root@xxx:~/# pkg install developer/gcc-45 root@xxx:~/# pkg install library/gnutls

# Disable sendmail root@xxx:~/# svcadm disable svc:/network/smtp:sendmail

# get postfix from postfix sites http://www.postfix.org/download.html

# Install postfix root@xxx:~/# tar xf postfix-2.x.x.tar.gz root@xxx:~/postfix-2.10.1# cd postfix-2.x.x root@xxx:~/postfix-2.10.1# gmake clean root@xxx:~/postfix-2.10.1# gmake makefiles […]

solaris: how to recover solaris 11 root password

solaris: how to recover solaris 11 root password

 

boot net -s boot cdrom -s, if it ask username: root/solaris or root/password.

on x86, you need edit grub and append -s on kernel line.

after login. mount /dev/dsk/cxtxdxsx /a

if you use zfs for /, then zfs import zfs list zfs set mountpoint=/a rpool/ROOT/solaris zfs […]

GRUB password solaris 11

GRUB password Nowadays I’d say it’s hard to believe that anything is really secure. Nevertheless one can keep going adding more and more barriers. The idea is not to be selected as an easier path to attack. But again, if someone is determined who can tell…

Despite this gave introduction, my goal is to repeat […]

Solaris 11 Network add

Solaris 11 coming with new feature and enhancement, one of it is NWAM (Network automagic) with NWAM you can create and save the network profile. In this post, I’ll blogging about how to configure your Solaris 11 Systems to used static IP Address.

Ok let’s start : 1. Switch From Automatic Network Configuration Mode to […]

CentOS 6.8 ftp service installation and configuration based on local users and virtual users

CentOS 6.8 ftp service installation and configuration based on local users and virtual users

First, install ftp services

1, check whether the installation

# rpm -qa | grep ftp

ftp-0.17-54.el6.x86_64

vsftpd-2.2.2-21.el6.x86_64

2, if not installed to install

# yum -y install vsftp

# yum -y install ftp

/ / If the offline environment on the […]

CentOS6.8 compiler installation Apache2.4.25, MySQL5.7.16, PHP5.6.29 initialization

CentOS6.8 compiler installation Apache2.4.25, MySQL5.7.16, PHP5.6.29 initialization

# Fixed IP address vi /etc/sysconfig/network-scripts/ifcfg-eth0 ONBOOT=yes BOOTPROTO=none DNS1=202.96.209.133 IPADDR=192.168.159.68 PREFIX=24 GATEWAY=192.168.159.2

# The base library yum groupinstall base yum grouplist yum groupinstall ‘Development tools’ yum groupinstall ‘Debugging Tools’ yum groupinstall ‘Compatibility libraries’

Apache

mkdir /app/src -p cd /app/src/ wget -c http://mirrors.aliyun.com/apache/apr/apr-1.5.2.tar.gz wget -c http://mirrors.aliyun.com/apache/apr/apr-util-1.5.4.tar.gz wget -c http://mirrors.aliyun.com/apache/httpd/httpd-2.4.25.tar.gz […]