DIFFERENT TYPES OF APACHE VIRTUAL-HOST IMPLEMENTATION

 Different types of Apache virtual-host implementation Running several name-based web sites on a single IP address. [root@www ~]# hostname  http://www.linuxmadeeasy.in [root@www ~]# ifconfig  eth0      Link encap:Ethernet  HWaddr 00:0C:29:FD:20:1A inet addr:172.16.28.175  Bcast:172.16.28.255  Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fefd:201a/64 Scope:Link UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1 RX packets:61 errors:0 dropped:0 overruns:0 frame:0 TX packets:54 errors:0 dropped:0 overruns:0 … Continue reading DIFFERENT TYPES OF APACHE VIRTUAL-HOST IMPLEMENTATION

RESTRICT USER FROM EXECUTING rm COMMAND

Restrict user from executing rm command [root@nginx ~]# ls -lh /bin/rm -rwxr-xr-x. 1 root root 57K Oct 14  2014 /bin/rm [root@nginx ~]# getfacl /bin/rm getfacl: Removing leading '/' from absolute path names # file: bin/rm # owner: root # group: root user::rwx group::r-x other::r-x [root@nginx ~]# setfacl -m u:yesdani:rw /bin/rm [root@nginx ~]# getfacl /bin/rm getfacl: … Continue reading RESTRICT USER FROM EXECUTING rm COMMAND