practice more Flashcards

1
Q

What file do you view in order too see the default encryption method?

A

/etc/login.defs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What file contains all the default settings for the network services?

A

/etc/xinetd.conf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do I check a specific network services setting?

A

/etc/xinetd.d/telnet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do I check all the rpc ports?

A

/etc/rpc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do I check all the services that the ports are mapped too?

A

/etc/services

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the steps too send another file on the network using nfs?

A

ensure nfs is running on both machines
create the /etc/exports file and then add the file you wanna share
/myfile 192.168.9.80(rw)

exportfs -a to share it
on the client showmount -e 192.168.0.82 to check if it’s linked
create the directory to store the share file in
mount 192.168.0.80:/myfile /home

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do I view log messages? What are the fields of it?

A

/etc/rsyslog.conf

Selctor action

facility.level who it going too

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the fields of the local name resolution file?

A

/etc/hosts

IFA
IP FQDN Aliaas

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

_______ is the most widely used DNS software on the internet for domain resolution. It implements the __________ service, a DNS server to provide name resolution services or act as a n authority for a domain or a sub domain

A

BIND

named

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What file provides a map of IP addresses to hostnames and aliases? What are its fields

A

/etc/hosts
IFA

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What file specifies machines for name resolution?
and what are its fields?

A

/etc/resolv.conf

Keyword > Value > description KVD

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What file controls how hostnames are resolved system wide?

A

/etc/nsswitch.conf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

what is the main configuration file for BIND?

A

/etc/named.conf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the main configuration file for SSH? How do I prevent root login on ssh?

A

etc/ssh/sshd_config

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

how do I ssh to 192.168.0.80 and execute ls?
How do I ssh to the same address and securely copy a directory?

A

ssh stduent@192.168.0.80 ls -l

scp -r student@192.168.0.80 /mydir

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What command is simliar to scp but must be acknowledged every step of the way?

How do cd in this mode?

Hoiw do I provide an ls of the local directory?

How dio I provide a remote directory listing?

A

sftp

cd

lls

ls

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

_______ is a suite of software developed to provide file and print sharing between different OSs

A

Samba

18
Q

What does smbd provide for samba?

What does nmbd provide for samba?

A

file sharing
network printing
authentication and authorization

name resolution
service announcement

19
Q

What are the three-security modes of samba?

______, it is the most common setting for a standalone file server or a domain controller. A client must logon with a valid username/password

________, Samba tries to validate the username/password by passing it to a windows domain controller

________ Samba acts as a domain member in an ADS realm. In this mode, the machine running Samba must have Kerberos installed and configured, and Samba must be joined to the ADS realm as an AD member

A

User

Domain

Active DIrectory

20
Q

What command changes the security context of a file?

A

chcon -R

21
Q

Where is the configuration file for Apache located?

A

/etc/hhtpd/conf/httpd.conf

22
Q

What are the three directive groups of apache?

_____________________ conatins directives that control tyhe global operation of the Apache server process

_______________ contains directives that define the parameters of the main server, which responds to requests not handled by a virtual host

________________ contain settings for virtual host, if one exists.

A

Global enviroment

Main Server

Virtual Hosts

23
Q

Where is the location for the apache configuration file?

How do I check it to ensure its working correctly? What command is it?

A

/etc/httpd/conf/httpd.conf

apachectl -l

24
Q

what directive __________ works with the ServerSignature directive. By default the server sends an HTTP response header with server information to the requesting source

What does this tell you? What are the three settings you can change it too if server signature is turned on?

How do I turn off server signature to prevent apache displaying any information?

A

ServerTokens

How much information the server banner gives someone accessing apache

to reveal the full OS/version information (Full/OS)
to reveal only that it’s an apache service Prod(Product only)
to revael nothing

ServerTokens Full/OS
ServerTokens Prod

vi /etc/httpd/conf/httpd.conf
/ ServerSignature

ServerSignature = “off”

25
Q

what directive defines the top of the directory tree where the server’s configuration, error , and log files are stored.

A

ServerRoot

26
Q

What directive instructs the server to accept incoming requests on the specified port or IP-addresses-and-port combination

What does this directive tell you?

A

Listen

This tells me what port Apache is listening on

27
Q

What directive sets the User and Group under which the server answers requests.

A

User/Group

28
Q

What directive identified the email account of where to send server problems?

A

ServerAdmin

29
Q

What directive provides the name and port the server usess to identify itself?

A

ServerName

30
Q

What directive is the default directory that contains all web page documents?

A

DocumentRoot

31
Q

How do I make it so apache denys access from 192.168.0.81

A

vi /etc/httpd/conf/httpd.conf
/ Order
deny from 192.168.0.81
wq!

32
Q

How do I find the server apache is listening in on?

A

vi /etc/httpd/conf/httpd.conf

/ Listen

33
Q

What Apache log displays a line of text for every access attempt?

What apache log displays errors?

How do I access them?

A

/etc/httpd/logs/access_log

/etc/httpd/logs/error_log

34
Q

How do i see the kernel parameters?

How do I see the user process limitations file?

How do I see the encyption method used for encrypting passwords?

A

more /etc/sysctl.conf

more /etc/security/limits.conf

more /etc/login.defs

35
Q

Where are all the security packages stored in Linuix?

A

/opt/Packages

36
Q

How can I verfiy if a security package is good?

How can I see a list of all installed packages>

How can I see a list of available and installed packages?

How can I see more info on a specific package?

A

rpm -Kv –nosignature /opt/Package/”package name”

rpm -qa

yum list

yum info “package name”

37
Q

What file restricts the users ability too logon as root on any terminal other then console?

A

/etc/sercuretty

38
Q

What command and option lets me trace a specifc system call like access of a command like ls?

How do I see an overview of all system calls used during a command like ls

A

strace -e access /bin/ls

strace -c /bin/ls

39
Q

What’s the acronym for straces’s options?

A

CEO

40
Q

How do I see all kernel parameters using a command?

A

sysctl -a

41
Q

How do I write too the kernel parameters?

How do I save those changes?

A

sysctl -w

sysctl -p /etc/sysctl.conf

42
Q
A