ADV *NIX DAY 6 Flashcards
Check smb.conf for internal correctness after making changes.
testparm
Manage Samba user accounts located in the private password database passdb.tdb.
pdbedit
View file’s SELinux security context.
ls -Z
Change the security context type of a file or process.
chcon
Check httpd.conffor syntax errors after making changes.
apachectl -t
Install, remove, upgrade, query, and verify patches and packages.
rpm
Afront-end toolfor distributions that use the RPM format.
yum
Invoke the Advanced Package Tool (APT) that Debian Linux variants use.
apt-get
Used by GNU C Library functions to determine which name service should be used to gather information from various categories and in what order.
/etc/nsswitch.conf
Local name resolution, maps IP address to hostnames, one line per IP address. Acts as a resolver for a local network, bypassing Domain Name System(DNS) resolution.
/etc/hosts
BIND’s main configuration file, specifies the names and locations of root servers and zone files.
/etc/named.conf
Contains information read by the resolver routines, used to determine the location of a DNS server and the domain to which they belong.
/etc/resolv.conf
Samba’s configuration file, read by the SMB service. File specifies all shared directories and printers along with access rights and general parameters.
/etc/samba/smb.conf
Configuration file for Apache web server. File contains configuration information for access capabilities, file restrictions and logging.
/etc/httpd/conf/httpd.conf
Displays a line of text for every error identified by the LogLevel directive in httpd.conf.
/etc/httpd/logs/error_log