There are more then 400 Computers in your Office. You are appointed as a System Administrator. But you don’t have Router. So, you are going to use your One Linux Server as a Router. How will you enable IP packets forward?
Answer and Explanation:
1. /proc is the virtual filesystem, we use /proc to modify the kernel parameters at running time.
# echo “1” >/proc/sys/net/ipv4/ip_forward
2. /etc/sysctl.conf when System Reboot on next time, /etc/rc.d/rc.sysinit scripts reads the file /etc/sysctl.conf. To enable the IP forwarding on next reboot also you need to set the parameter.
net.ipv4.ip_forward=1
Here 0 means disable, 1 means enable.
There is one partition /dev/hda14 mounted on /data. The owner of /data is root user and root group. And Permission is full to owner user, read and execute to group member and no permission to others. Now you should give the full permission to user user1 without changing pervious permission.
Answer and Explanation:
We know that every files/directories are owned by certain user and group. And Permissions are defines to owner user, owner group and other.
-rwxr-x--- Full permission to owner user, read and write to owner group and no permission to others.
According to question: We should give the full permission to user user1 without changing the previous permission.
ACL (Access Control List), in ext3 file system we can give permission to certain user and certain group without changing previous permission. But that partition should mount using acl option. Follow the steps
/dev/hda14/dataext3defaults,acl0 1
Make Successfully Resolve to server1.example.com where DNS Server is 192.168.0.254.
Answer and Explanation: 1. vi /etc/resolv.conf
Write : nameserver 192.168.0.254
Successfully resolv to server1.example.com where your DNS server is 172.24.254.254
Answer and Explanation:
nameserver 172.24.254.254
On every clients, DNS server is specified in /etc/resolv.conf. When you request by name it tries to resolv from DNS server .