05 Flashcards
The ____ command displays the file name of the terminal connected to standard output
tty
A ____________ (___) is emualted by other programs
A ___ is the slave part of a ___ that proviodes an interface that behaves exactly like like a classic terminal
psuedo terminal pty
pts pty
The ____/___________ file restricts the users ability to login as root on any other terminal besides the console.
There are two exceptions to this rule ____________ must be enabled, and the __________ _______ of tools must not be active
etc/securetty
securetty
OpenSSH suite
_________ is an open-source utility for forwarding messages
What file do you modify in order to edit/see log messages?
rsyslog
/etc/rsyslog.conf
What are the two separate fields in /etc/rsyslog?
selector and action
Where is the selector field in rsyslog.conf located? And what does it consist of?
On the left side, facility. Level
facility: categories of system processes that can generate messages
level: represents a p[riority relating to the severity of the or importance of the level
Where is the action field in rsyslog.conf located and what does it consist of?
What does it mean if a line has a comment in front?
where the data resulting from facility.level will be sent
its commented out
How do I determine if a shell is a login or non-login shell? What command gives you this information?
if there is a ~ in front its a login shell, you use echo $0
what key log file displays login/logou information?
Which one lists user’s name, tty (pts/5), login time and related information for the current user
/usr/bin/last
/usr/bin/last
How do i see the settings/parameters of xinetd services?
What do each of these optional attributes mean?
access_times
only_from
How can I see what system telnet is only allowed to communicate with?
/etc/xinetd.d/(network service)
The network service can only be used during these certain times
The network service can only be used from x ip address
more /etc/xinetd.d/telnet
How do I see the ports that all the network services are mapped too?
How do I see all the ports mapped to rpc services?
more /etc/services
more /etc/rpc
How do I add an ip address too an NIC?
How do i delete an ip address from a NIC?
How do I bring a network device up/online?
How do I bring a network device offline/down?
ipaddr add 192.168.0.43/24 dev eth0
ipaddr del 192.168.0.43/24 dev eth0
ip link set eth0 up
ip link set eth0 down
What is a key networking file that maps ip addresses to hostnames, one line per ip IP address
/etc/hosts