จะแสดงตามตัวอย่างนี้
ubuntuder:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 17.10
Release: 17.10
Codename: artful
mkdir ~/glibc_install; cd ~/glibc_install
wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz
tar zxvf glibc-2.14.tar.gz
cd glibc-2.14
mkdir build
cd build
../configure --prefix=/opt/glibc-2.14
make -j4
sudo make install
export LD_LIBRARY_PATH=/opt/glibc-2.14/lib
[root@cent6 ~]# ftp 127.0.0.1 Connected to 127.0.0.1 (127.0.0.1). 220 (vsFTPd 2.2.2) Name (127.0.0.1:root): user1 331 Please specify the password. Password: 500 OOPS: cannot change directory:/home/user1 Login failed. ftp>
[root@cent6 ~]# tail -f /var/log/audit/audit.log type=AVC msg=audit(1342860489.387:8445): avc: denied { search } for pid=1806 comm="vsftpd" name="home" dev=sda3 ino=393217 scontext=unconfined_u:system_r:ftpd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:home_root_t:s0 tclass=dir
[root@cent6 ~]# getsebool ftp_home_dir ftp_home_dir --> off
[root@cent6 ~]# setsebool ftp_home_dir on
[root@cent6 ~]# getsebool ftp_home_dir
ftp_home_dir --> on
[root@cent6 ~]# setsebool -P ftp_home_dir on
[root@cent6 ~]# ftp 127.0.0.1 Connected to 127.0.0.1 (127.0.0.1). 220 (vsFTPd 2.2.2) Name (127.0.0.1:root): user1 331 Please specify the password. Password: 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files. ftp>อ้างอิงจาก https://spalinux.com/2012/07/fix-selinux-on-vsftpd-ftp-server-to-user-can-ftp
#vi /etc/modprobe.conf
alias bond0
bonding
options bonding mode=1 miimon=100
alias bond1
bonding
alias bond2 bonding
#vi
/etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
TYPE=Ethernet
IPADDR=192.168.1.201
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
:wq
#vi
/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
HWADDR=00:60:df:31:13:3d
MASTER=bond0
SLAVE=yes
USERCTL=no
#vi
/etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
HWADDR=00:60:df:a0:14:c2
MASTER=bond0
SLAVE=yes
USERCTL=no
service
network restart
หรือ
/etc/init.d/network restart
ifconfig bond0
ping
192.168.1.201
cat
/proc/net/bonding/bond0
[root@ComZone ~]#
mii-tool
eth0: negotiated 100baseTx-FD, link ok
eth1: negotiated
100baseTx-FD, link ok
ifdown eth0
ifup
eth0
options bonding mode=2 miimon=100