READ Free Dumps For RedHat- RH302
Question ID 17492 | /storage directory on linux server should make available on windows to only Harold |
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=/storage public=no writable=no write list=harold browsable=yes 2.smbpasswd -a harold 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 |
Question ID 17493 | ssh service is enabled in your Server. Configure to |
Option A | Answer : 1.vi /etc/hosts.deny ALL EXCEPT .example.com or 1.vi /etc/hosts.deny ALL 2.vi /etc/hosts.allow .example.com We can secure the services using tcp_wrappers. There are main two files, /etc/hosts.allow and /etc/hosts.deny. There will be three stage access checking - Is access explicitly permitted? Means permitted from /etc/hosts.allow? - Otherwise, Is access explicitly denied? Means denied from /etc/hosts.deny? - Otherwise, by default permit access if neither condition matched. To deny the services we can configure /etc/hosts.deny file using ALL and EXCEPT options In Client list can be either domain name or IP address. |
Correct Answer | A |