Difference between revisions of "/etc/"

From GhostBSD Wiki
Jump to: navigation, search
(Files)
(Files)
Line 170: Line 170:
 
|/etc/localtime||The [https://www.freebsd.org/cgi/man.cgi?query=tzsetup&sektion=8 tzsetup] utility reads a database of timezone information and presents a menu allowing the user to select a specific zone without knowing the      details of the database layout.  The selected zone is installed as the system default zone.  The tzsetup utility also determines whether any adjustment is necessary for systems where the hardware clock does not keep UTC. /etc/localtime is the current time zone file.
 
|/etc/localtime||The [https://www.freebsd.org/cgi/man.cgi?query=tzsetup&sektion=8 tzsetup] utility reads a database of timezone information and presents a menu allowing the user to select a specific zone without knowing the      details of the database layout.  The selected zone is installed as the system default zone.  The tzsetup utility also determines whether any adjustment is necessary for systems where the hardware clock does not keep UTC. /etc/localtime is the current time zone file.
 
|-
 
|-
|/etc/locate.rc||locate(1) finds all files of a given name. For example, to find locate.rc , enter the following:  
+
|/etc/locate.rc||Command script for [https://www.freebsd.org/cgi/man.cgi?query=updatedb&apropos=0&sektion=8&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html updatedb(8)]; locate(1) finds all files of a given name. For example, to find locate.rc , enter the following:  
 
  <nowiki>#</nowiki> locate locate.rc  
 
  <nowiki>#</nowiki> locate locate.rc  
 
you get:
 
you get:

Revision as of 10:06, 2 February 2020

Welcome to Icon Disti GhostBSD.png /etc/.

Introduction

Here we find system configuration files and scripts.

Content

Directories

Directory Description
/etc/autofs
/etc/bluetooth/ bluetooth configuration files
/etc/conf.d
/etc/cron.d
/etc/defaults/ Default system configuration files. Refer to rc(8) for details.
/etc/devd
/etc/devd-openrc
/etc/dma
/etc/gss
/etc/init.d
/etc/libmap.d
/etc/local.d
/etc/mail/ Configuration files for mail transport agents such as sendmail(8).
/etc/man.d
/etc/mtree/ mtree configuration files; see mtree(8)
/etc/newsyslog.conf.d
/etc/ntp
/etc/pam.d/ configuration files for the Pluggable Authentication Modules (PAM) library
/etc/periodic/ scripts that are run daily, weekly, and monthly, via cron(8); see periodic(8)
/etc/pkg
/etc/ppp/ ppp configuration files; see ppp(8)
/etc/rc.conf.d
/etc/rc.d/ system and daemon startup/control scripts; see rc(8)
/etc/runlevels
/etc/security/ OpenBSM audit configuration files; see audit(8)
/etc/ssh/ OpenSSH configuration files; see ssh(1)
/etc/ssl/ OpenSSL configuration files
/etc/sysctl.d file: /etc/sysctl.d/README: Kernel system variables configuration files
/etc/syslog.d content 3 files:
  • /etc/syslog.d/ftp.conf; contains: ftp.info /var/log/xferlog
  • /etc/syslog.d/lpr.conf; contains: lpr.info /var/log/lpd-errs
  • /etc/syslog.d/ppp.conf; contains: !ppp*.* /var/log/ppp.log
/etc/unbound link to /var/unbound
/etc/X11 no content
/etc/zfs no content
Back to Icon Disti GhostBSD.pngDirectory Structure

Files

Files Description
/etc/aliases link to mail/aliasses
/etc/amd.map FreeBSD has the ability to automatically mount and unmount NFS filesystems upon demand through the automounter daemon, amd(8). See its man page for details.
/etc/auto_master The automounter configuration consists of the auto_master configuration file, which assigns filesystem paths to map names, and maps, which contain actual mount information and any direct maps that it references, and mounts or unmounts autofs(5) filesystems to match. The auto_master configuration file is used by the automount(8) command. Map files are read by the automountd(8) daemon.
/etc/blacklistd.conf The blacklistd.conf files contains configuration lines for blacklistd(8). It contains one entry per line, and is similar to inetd.conf(5). There must be an entry for each field of the configuration file, with entries for each field separated by a tab or a space.
/etc/crontab A crontab file contains instructions to the cron(8) daemon of the general form: ``run this command at this time on this date. Each user has their own crontab, and commands in any given crontab will be executed as the user who owns the crontab. Uucp and News will usually have their own crontabs, eliminating the need for explicitly running su(1) as part of a cron command.
/etc/csh.cshrc C shell with file name completion and command line editing. A login shell begins by executing commands from the system files /etc/csh.cshrc and /etc/csh.login
/etc/csh.login C shell with file name completion and command line editing
/etc/csh.logout C shell with file name completion and command line editing. When a login shell terminates it sets the logout shell variable to normal' or `automatic' as appropriate, then executes commands from the files /etc/csh.logout and ~/.logout.
/etc/ddb.conf The ddb reads the ddb.conf for instuructions. The ddb utility configures certain aspects of the ddb(4) kernel debugger from user space that are not configured at compile-time or easily via sysctl(8) MIB entries.
/etc/devd.conf Configuration file for devd(8). A devd(8) (device state change daemon) configuration consists of two general features, statements and comments. All statements end with a semicolon. Many statements can contain substatements, which are also terminated with a semicolon.
/etc/devd-openrc.conf OpenRC is a dependency-based init system that works with the system-provided init program, normally /sbin/init. Currently, it does not have an init program of its own. devd.conf is modified from FreeBSD to call /etc/rc.devd which is a generic hook into OpenRC.
/etc/devfs.conf The devfs.conf file provides an easy way to set ownership and permissions, or create links for devices available at boot. It does not work for devices plugged in and out after the system is up and running, e.g. USB devices. See devfs.rules(5) for setting ownership and permissions for all device nodes, and devd.conf(5) for actions to be taken when devices are attached or detached.
/etc/ devfs.rules The devfs.rules file provides an easy way to create and apply devfs(8) rules, even for devices that are not available at boot. For devices available at boot, see [devfs.conf(5).
/etc/dhclient.conf The dhclient.conf file contains configuration information for dhclient(8), the Internet Software Consortium DHCP Client.
/etc/dhcpcd.conf The dhcpcd.conf is a dhcpcd configuration fileAlthough dhcpcd can do everything from the command line, there are cases where it's just easier to do it once in a configuration file. Most of the options found in dhcpcd(8) can be used here. The first word on the line is the option and the rest of the line is the value. Leading and trailing whitespace for the option and value are trimmed. You can escape characters in the value using the \ character. Comments can be prefixed with the #character. String values should be quoted with the " character.
/etc/disktab Disktab is a simple database which describes disk geometries and disk partition characteristics. It is used to initialize the disk label on the disk. The format is patterned after the termcap(5) terminal data base. Entries in disktab consist of a number of `:'-separated fields. The first field for each entry gives the names by which a disk's entry may be selected, separated by `|' characters. The last name given should be a long name fully identifying the disk.
/etc/dumpdates The /etc/dumpdates file enables you to keep track of backups.
/etc/fbtab The fbtab file contains a number of lines specifying a device together with a list of devices with associated protections. Comments start with a `#' and extend to the end of the line.
/etc/freebsd-update.conf The freebsd-update.conf file controls the behaviour of the freebsd-update(8) utility. The file contains lines consisting of a casesensitive option name and zero or more parameters. Empty lines and any part of a line following a `#' character are ignored. Unless stated otherwise, specifying an option multiple times is an error.
/etc/fstab The file fstab contains descriptive information about the various file systems. fstab is only read by programs, and not written; it is the duty of the system administrator to properly create and maintain this file. Each file system is described on a separate line; fields on each line are separated by tabs or spaces. The order of records in fstab is important because fsck(8), mount(8), and umount(8) sequentially iterate through fstab doing their thing.
/etc/ftpusers The ftpusers file provides user access control for tnftpd(8) by defining which users may login.
/etc/gettytab gettytab is a terminal configuration data base. The gettytab file is a simplified version of the termcap(5) data base used to describe terminal lines.
/etc/group A group is a list of users. A group is identified by its group name and GID. In FreeBSD, the kernel uses the UID of a process, and the list of groups it belongs to, to determine what the process is allowed to do. Most of the time, the GID of a user or process usually means the first group in the list.

The group name to GID mapping is listed in /etc/group. This is a plain text file with four colon-delimited fields. The first field is the group name, the second is the encrypted password, the third the GID, and the fourth the comma-delimited list of members. For a more complete description of the syntax, refer to group(5).

The superuser can modify /etc/group using a text editor. Alternatively, pw(8) can be used to add and edit groups. See: 3.3.3. Managing Groups

/etc/hostid Print the numeric identifier for the current host[1]
/etc/hosts The hosts file contains information regarding the known hosts on the network. It can be used in conjunction with DNS, and the NIS maps `hosts.byaddr' and `hosts.byname', as controlled by nsswitch.conf(5). For each host a single line should be present with the following information:
  • Internet address
  • official host name
  • aliases
/etc/hosts.allow This document describes optional extensions to the language described in the hosts_access(5) document. The extensions are enabled at program build time. For example, by editing the Makefile and turning on the PROCESS_OPTIONS compile-time option.
/etc/hosts.equiv The hosts.equiv and .rhosts files contain information regarding trusted hosts and users on the network.
/etc/hosts.lpd The hosts.lpd file contains a list of hostnames or IP addresses that are allowed to use your local print services. List every hostname or IP address on a line itself.
/etc/hosts-e see skript in IP-Adressen umleiten
/etc/inetd.conf The /etc/inetd.conf file is the default configuration file for the inetd (super-server) daemon. As shipped, this file describes all currently supported QNX Neutrino TCP/IP daemons and some nonstandard pidin services. Unless you want to add or remove daemon definitions, you don't need to modify this file.
/etc/libalias.conf The libalias library is a collection of functions for aliasing and dealiasing of IP packets, intended for masquerading and network address translation (NAT).
/etc/libmap.conf The libmapfunctionality of ld-elf.so.1(1) allows dynamic object dependencies to be mapped to arbitrary names.
/etc/localtime The tzsetup utility reads a database of timezone information and presents a menu allowing the user to select a specific zone without knowing the details of the database layout. The selected zone is installed as the system default zone. The tzsetup utility also determines whether any adjustment is necessary for systems where the hardware clock does not keep UTC. /etc/localtime is the current time zone file.
/etc/locate.rc Command script for updatedb(8); locate(1) finds all files of a given name. For example, to find locate.rc , enter the following:
# locate locate.rc 

you get:

/etc/locate.rc 
/usr/share/examples/etc/locate.rc 
/usr/src/usr.bin/locate/locate/locate.rc

You'll see that a file called locate.rc can be found in three places: in the main /etc directory, in the system examples directory, and in the system source code.

/etc/login.access
/etc/login.conf
/etc/login.conf.db
/etc/mac.conf
/etc/mail.rc
/etc/master.passwd
/etc/motd
/etc/netconfig
/etc/netstart
/etc/network.subr
/etc/networks
/etc/newsyslog.conf
/etc/nscd.conf
/etc/nsmb.conf
/etc/nsswitch.conf
/etc/ntp.conf
/etc/openrc
/etc/openrc.shutdown
/etc/opieaccess
/etc/opiekeys
/etc/passwd
/etc/pccard_ether
/etc/pf.os
/etc/phones
/etc/pkgbase.setup
/etc/portsnap.conf
/etc/printcap
/etc/profile
/etc/protocols
/etc/pwd.db
/etc/rc
/etc/rc.bsdextended
/etc/rc.conf
/etc/rc.conf.ghostbsd
/etc/rc.devd
/etc/rc.dynamicdiskless
/etc/rc.firewall
/etc/rc.initdiskless
/etc/rc.resume
/etc/rc.sendmail
/etc/rc.shutdown
/etc/rc.subr
/etc/rc.suspend
/etc/regdomain.xml
/etc/remote
/etc/resolv.conf
/etc/rmt Link to /usr/sbin/rmt
/etc/rpc
/etc/services
/etc/shells
/etc/snmpd.config
/etc/spwd.db
/etc/sysctl.conf
/etc/syslog.conf
/etc/termcap Link to /usr/misc/termcap
/etc/termcap.small
/etc/ttys
Back to Icon Disti GhostBSD.pngDirectory Structure