更多“问答题请简述/etc/hosts配置文件的作用?”相关问题
  • 第1题:

    在FTP软件的主配置文件中,若要在/etc/hosts.allow和/etc/hosts.deny中定义可联机或是拒绝的来源地址,则需要修改tcp_wrappers=NO。

    此题为判断题(对,错)。


    正确答案:×

  • 第2题:

    Linux系统可以通过手工编辑配置文件达到对系统进行配置的目的,例如将/etc/inted.conf文件中“#FTP Stream TCP nowait root/usr/sbin/tcpd in.ftpd -1 -a”前的“#”去掉就可以开启FTP服务。修改(56)文件可对允许访问FTP服务的主机范围进行限制。

    A./etc/access.conf

    B./etc/host.conf

    C./etc/inted.conf

    D./etc/hosts.allow


    正确答案:D
    解析:Linux操作系统下存在/etc/inted.conf和/etc/hosts.allow等网络服务守候进程的配置文件。通过修改/etc/inted.conf文件可以达到关闭或开放某种对应服务的目的,例如将/etc/inted.conf文件中“#FTPStreamTCPnowaltroot/usr/sbin/tcpdin.ftpd-1-a”前的“#”去掉就可以开启FTP服务。修改/etc/hosts.allow文件可对允许访问FTP服务的主机范围进行限制,例如在该文件中加入“in.ftpd:202.112.207.0/255.255.255.0”就可以允许202.112.207.0子网的用户主机访问本机提供的FTP服务。

  • 第3题:

    Whichfilescanbeusedtogethertoallowremotecommandexecutiononaserver?()

    A./etc/.rhostsand$HOME/hosts.equiv

    B./etc/hosts.equivand$HOME/.rhosts

    C./etc/rhosts.equivand$HOST/.rhosts

    D./etc/hosts.equivand$HOME/.hosts.equiv


    参考答案:B

  • 第4题:

    若Linux用户需要将FTP默认的21号端口修改为8800,可以修改 ( ) 配置文件。

    A./etc/vsftpd/userconf
    B./etc/vsftpd/vsftpd.conf
    C./etc/resolv.conf
    D./etc/hosts

    答案:B
    解析:
    /etc/vsftpd/vsftpd.conf的主配置文件。

  • 第5题:

    Tcp-wrappers工具包提供了Unix/Linux平台上的网络系统安全性,许多系统服务都支持tcp-wrappers。管理员在配置tcp-wrappers的安全规则时,一般需要修改配置文件()。

    • A、/etc/hosts
    • B、/etc/hosts.allow
    • C、/etc/hosts.conf
    • D、/etc/hosts.deny

    正确答案:B,D

  • 第6题:

    请简述/etc/hosts配置文件的作用?


    正确答案:当网络应用程序要查询某台主机的IP地址时,默认会先查询/etc/hosts配置文件。如果该文件没有此主机对应的IP地址,才会向域名服务器查询。 因此可以将常用主机的网名与IP地址的对应关系加入此配置文件中,这样可以加快连接到此主机的速度。

  • 第7题:

    Linux2.6内核将系统用户的加密口令存储在()文件中。

    • A、/etc/passwd
    • B、/etc/shadow
    • C、/etc/group
    • D、/etc/hosts

    正确答案:B

  • 第8题:

    Given the following on a system that is not a name server, which will be the first area searched to resolve a host name to an IP address?()  #cat /etc/resolv.conf   domain abc.century.com   nameserver 192.9.201.1   nameserver 192.9.201.2  #cat /etc/netsvc.conf   hosts = bind,nis,local   #echo $NSORDER   local,bind 

    • A、 /etc/hosts on server 192.9.201.2
    • B、 /etc/hosts on the local system
    • C、 /etc/named.rev on 192.9.201.1
    • D、 /etc/netsvc.conf on the NIS server

    正确答案:B

  • 第9题:

    哪个文件中保存着系统用户帐户信息?()

    • A、/etc/shadow
    • B、/etc/issue
    • C、/etc/passwd
    • D、/etc/hosts.allow

    正确答案:A,C

  • 第10题:

    所有用户登录的缺省配置文件是()

    • A、/etc/profile
    • B、/etc/login.defs
    • C、/etc/.login
    • D、/etc/.logout

    正确答案:C

  • 第11题:

    问答题
    请简述/etc/hosts配置文件的作用?

    正确答案: 当网络应用程序要查询某台主机的IP地址时,默认会先查询/etc/hosts配置文件。如果该文件没有此主机对应的IP地址,才会向域名服务器查询。 因此可以将常用主机的网名与IP地址的对应关系加入此配置文件中,这样可以加快连接到此主机的速度。
    解析: 暂无解析

  • 第12题:

    单选题
    Which files can be used together to allow remote command execution on a server?()
    A

    /etc/.rhosts and $HOME/hosts.equiv

    B

    /etc/hosts.equiv and $HOME/.rhosts

    C

    /etc/rhosts.equiv and $HOST/.rhosts

    D

    /etc/hosts.equiv and $HOME/.hosts.equiv


    正确答案: C
    解析: 暂无解析

  • 第13题:

    Samba使用/etc/samba/smb.conf作为它的配置文件。在smb.conf配置文件中,“hosts allow=172.16.100.0 172.16.200.3172.16.1.1”语句用于设置(4)。


    正确答案:允许网段172.16.100.0/16和主机(IP地址为172.16.200.3/32)访问Samba服务器 (IP地址为172.16.1.1)的共享资源
    允许网段172.16.100.0/16和主机(IP地址为172.16.200.3/32)访问Samba服务器 (IP地址为172.16.1.1)的共享资源 解析:这是一道要求读者掌握Samba配置文件中命令语句功能解释的分析题。本题所涉及的知识点如下。
    在smb.conf配置文件中,hosts allow语句用于设置允许访问共享网络的网段地址和主机IP地址,即“hosts allow=172.16.100.0 172.16.200.3 172.16.1.1”语句用于设置允许网段172.16.100.0/16和IP地址为
    172.16.200.3/32的主机访问Samba服务器(IP地址为172.16.1.1)的共享资源。
    进行hosts allow语句配置时需要注意3点:网段地址用“.”号来表达子网掩码中“0”的部分;各个 IP地址或网段地址间用空格隔开;记得将Samba服务器本机的IP地址添加进来。

  • 第14题:

    Whichofthefollowingfilesshouldbeeditedtodisableremotemachinesfromperforminga"finger"onasystem?()

    A./etc/security/user

    B./etc/services

    C./etc/inetd.conf

    D./etc/hosts.equiv


    参考答案:C

  • 第15题:

    TCPWrappers是保护网络服务的应用使用两个文件:/etc/hosts.allow和/etc/hosts.deny()。


    答案:正确

  • 第16题:

    若Linux用户需要将FTP默认的21号端口修改为8800,可以修改( )配置文件。

    A./etc/vsftpd/userconf
    B./etc/vsftpd/vsftpd.conf
    C./etc/resolv.conf
    D./etc/hosts

    答案:B
    解析:
    /etc/vsftpd/vsftpd.conf的主配置文件。

  • 第17题:

    若Linux用户需要将FTP默认的21号端口修改为8800,可以修改()配置文件。

    • A、/etc/vsftpd/userconf
    • B、/etc/vsftpd/vsftpd.conf
    • C、/etc/resolv.conf
    • D、/etc/hosts

    正确答案:B

  • 第18题:

    下列那一个是tcp_wrappers用来设定允许开放连接的设定档?()

    • A、/etc/tcp.conf
    • B、/etc/hosts
    • C、/etc/hosts.deny
    • D、/etc/hosts.allow

    正确答案:D

  • 第19题:

    Linux系统中修改主机访问控制(IP限制)的目录()

    • A、/etc/hosts.allow
    • B、/etc/hosts.deny
    • C、/etc/sysctl.conf
    • D、/etc/shadow

    正确答案:B

  • 第20题:

    cron有哪两种配置文件()。

    • A、/etc/crontab,全局配置文件
    • B、crontab命令生成的配置文件,属于用户级
    • C、/etc/cron:全局配置文件
    • D、/etc/crontab,用户级配置文件

    正确答案:A,B

  • 第21题:

    Which files can be used together to allow remote command execution on a server?()  

    • A、/etc/.rhosts and $HOME/hosts.equiv
    • B、/etc/hosts.equiv and $HOME/.rhosts
    • C、/etc/rhosts.equiv and $HOST/.rhosts
    • D、/etc/hosts.equiv and $HOME/.hosts.equiv

    正确答案:B

  • 第22题:

    多选题
    cron有哪两种配置文件()。
    A

    /etc/crontab,全局配置文件

    B

    crontab命令生成的配置文件,属于用户级

    C

    /etc/cron:全局配置文件

    D

    /etc/crontab,用户级配置文件


    正确答案: C,B
    解析: 暂无解析

  • 第23题:

    多选题
    Tcp-wrappers工具包提供了Unix/Linux平台上的网络系统安全性,许多系统服务都支持tcp-wrappers。管理员在配置tcp-wrappers的安全规则时,一般需要修改配置文件()。
    A

    /etc/hosts

    B

    /etc/hosts.allow

    C

    /etc/hosts.conf

    D

    /etc/hosts.deny


    正确答案: D,C
    解析: 暂无解析

  • 第24题:

    单选题
    下列那一个是tcp_wrappers用来设定允许开放连接的设定档?()
    A

    /etc/tcp.conf

    B

    /etc/hosts

    C

    /etc/hosts.deny

    D

    /etc/hosts.allow


    正确答案: D
    解析: 暂无解析