READ Free Dumps For RedHat- RH302
Question ID 17480 | Eric user should able to write on Document root directory. |
Option A | Answer : Document directive is used in apache configuration file to specify the directory where all web site related documents are. According to question eric user should able to write into the Document root directory. Better set the permission using ACL (Access Control List), to apply the permission using acl needs to mount the filesystem with acl options. Example in above answer documentroot is in /var and /var is mounting separate file system so needs to mount the /var file system with acl option. vi /etc/fstab LABEL=/var/varext3defaults 1 1 mount o remount /var rwx /var/www/example getfacl /var/www/example getfacl and setfacl two commands used to maintain the permission through acl. setfacl is used to set the permission on file/directory, getfacl is used to display the permission of file/directory. |
Correct Answer | A |
Question ID 17481 | Your Local Domain is example.com. Configure the send mail server for you local |
Option A | Answer : 1.vi /etc/mail/local-host-names example.com 2.vi /etc/mail/sendmail.mc dnl # DEAMON_OPTIONS(`Port=smtp,Addr=127.0.0.1,Name=MTA`)dnl 3.m4 /etc/mail/sendmail.mc >/etc/mail/sendmail.cf 4.vi /etc/mail/access example.comRELAY RELAY 5.service sendmail start | restart 6.chkconfig sendmail on /etc/mail/local-host-names file contains the aliases to hostname. Mail server program reads the /etc/mail/sendmail.cf. To change the configuration on mail server, we should edit the /etc/mail/sendmail.mc file and should generate the sendmail.cf using m4 command. By default sendmail server allows to connect to local host only. So we should edit the /etc/mail/sendmail.mc file to allow connect to other hosts. By default sendmail server will not forward mail. we should specify on /etc/mail/access to relay or to block mail coming from domain or network or individual email address. |
Correct Answer | A |