READ Free Dumps For RedHat- RH302
Question ID 17476 | 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 192.168.0RELAY @cracker.orgREJECT 5.service sendmail start | restart 6.chkconfig dovecot on 7.vi /etc/dovecot.conf protocols = pop3 pop3s imap imaps 8.service dovecot start | restart 9.chkconfig dovecot on 10.vi /etc/aliases user2 11.newaliases /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. By default dovecot service start only the imap protocol. To start pop protocol with dovecot, we should write in /etc/dovecot.conf file. Using /etc/aliases file we can map the user name to send mail of one user to another user. To rebuild database we use the newaliases command. |
Correct Answer | A |
Question ID 17477 | /data directory on linux server should make available on windows to only john with |
Option A | Answer : 1.vi /etc/samba/smb.conf [global] netbios name=station? workgroup=station? security=user smb passwd file=/etc/samba/smbpasswd encrypt passwords=yes hosts allow= .example.com [data] path=/data public=no writable=no write list=john browsable=yes 2.smbpasswd -a john 3.service smb start 4.chkconfig smb on /etc/samba/smb.conf. There are some pre-defined section, i. global use to define the global options, ii. Printers use to share the printers, iii. homes use the share the users home directory. Security=user validation by samba username and password. May be there are other users also. To allow certain share to certain user we should use valid users option. smbpasswd Helps to change users smb password. a option specifies that the username following should be added to the local smbpasswd file. If any valid users option is not specified, then all samba users can access the shared data. By Default shared permission is on writable=no means read only sharing. Write list option is used to allow write access on shared directory to certain users or group members. |
Correct Answer | A |