READ Free Dumps For RedHat- RH302
Question ID 17498 | There are mixed lots of System running on Linux and Windows OS. Some users are |
Option A | Answer : 1.vi /etc/samba/smb.conf [global] netbios name=station? workgroup = mygroup server string=Share from Linux Server security=user smb passwd file=/etc/samba/smbpasswd encrypt passwords=yes [data] path=/data writable=no public=no browsable=yes write list= user1 user2 2.smbpasswd a user1 3.smbpasswd a user2 .. 4.service smb start | restart 5.chkconfig smb on Samba servers helps to share the data between linux and windows. Configuration file is /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 |
Question ID 17499 | Configure the web server for www.abc.com associated IP address is 192.100.0.1 by |
Option A | Answer : 1.vi /etc/httpd/conf/httpd.conf <VirtualHost 192.100.0.1> ServerName www.abc.com DocumentRoot /var/www/abc/ <Directory /var/www/abc> Order Allow, Deny Allow from .example.com </Directory> DirectoryIndexindex.html ServerAdminwebmaster@abc.com ErrorLog logs/error_abc.logs CustomLog logs/custom_abc.logs common </VirtualHost> 2.Create the directory and index page on specified path. (Index page can download from //server1.example.com at exam time) httpd_sys_content_t /var/www/html/index.html If SELinux Context is mismatched, use the restorecon R /var command 3.service httpd start|restart 4.chkconfig httpd on Order allow, deny Allows explicitly allowed clients, denies everyone else; clients matched by both allow and deny are denied. Order deny, allow denies explicitly denied clients, allows everyone else, clients matched by both allow and deny are allowed. |
Correct Answer | A |