Difference between revisions of "/etc/"
(→Files) |
(→Files) |
||
Line 178: | Line 178: | ||
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. | 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.access||The [https://www.freebsd.org/cgi/man.cgi?query=login.access&sektion=5&manpath=freebsd-release-ports login.access] file specifies (user, host) combinations and/or (user, tty) combinations for which a login will be either accepted or refused. |
+ | |||
|- | |- | ||
− | |/etc/login.conf|| | + | |/etc/login.conf||[https://www.freebsd.org/cgi/man.cgi?query=login.conf&apropos=0&sektion=5&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html login.conf] contains various attributes and capabilities of login classes. A login class (an optional annotation against each record in the user account database, /etc/master.passwd) determines session accounting, re source limits and user environment settings. It is used by various programs in the system to set up a user's login environment and to enforce policy, accounting and administrative restrictions. It also provides the means by which users are able to be authenticated to the system and the types of authentication available. Attributes in addition to the ones described here are available with third-party packages. |
|- | |- | ||
− | |/etc/login.conf.db|| | + | |/etc/login.conf.db||The system does not normally read the configuration in /etc/login.conf directly, but reads the database file /etc/login.conf.db which provides faster lookups. To generate /etc/login.conf.db from /etc/login.conf, execute the following command:<code># cap_mkdb /etc/login.conf</code>[http://oldes.tstu.ru/freebsd/pl/books/handbook/users-limiting.html] |
+ | |||
|- | |- | ||
− | |/etc/mac.conf|| | + | |/etc/mac.conf||The [https://www.freebsd.org/cgi/man.cgi?query=mac.conf&apropos=0&sektion=0&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html mac.conf file] configures the default label elements to be used by policy-agnostic applications that operate on MAC labels. A file contains a series of default label sets specified by object class, in addition to blank lines and comments preceded by a `#' symbol. |
+ | |||
+ | Currently, the implementation supports two syntax styles for label element declaration. The old (deprecated) syntax consists of a single line with two fields separated by white space: the object class name, and a list of label elements as used by the [https://www.freebsd.org/cgi/man.cgi?query=mac_prepare&sektion=3&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports mac_prepare(3)] library calls prior to an application invocation of a function from [https://www.freebsd.org/cgi/man.cgi?query=mac_get&sektion=3&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports mac_get(3)]. | ||
|- | |- | ||
− | |/etc/mail.rc|| | + | |/etc/mail.rc||Simply sending e-mails with mailx.md Set an External SMTP Server to Relay E-Mails[https://gist.github.com/ilkereroglu/aa6c868153d1c5d57cd8] |
|- | |- | ||
− | |/etc/master.passwd|| | + | |/etc/master.passwd||The passwd files are the local source of password information. The [https://www.freebsd.org/cgi/man.cgi?query=master.passwd&apropos=0&sektion=0&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html master.passwd] file is readable only by root, and consists of newline separated records, one per user, containing ten colon (`:') separated fields. |
|- | |- | ||
− | |/etc/motd|| | + | |/etc/motd||The file [https://www.freebsd.org/cgi/man.cgi?query=motd&apropos=0&sektion=0&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html /etc/motd]is normally displayed by login(1) after a user has logged in but before the shell is run. It is generally used for important system-wide announcements. During system startup, a line containing the kernel version string is prepended to this file. |
|- | |- | ||
− | |/etc/netconfig|| | + | |/etc/netconfig||The [https://www.freebsd.org/cgi/man.cgi?query=netconfig&apropos=0&sektion=0&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html netconfig] file defines a list of "transport names", describing their semantics and protocol. In FreeBSD, this file is only used by the RPC library code. |
|- | |- | ||
− | |/etc/netstart|| | + | |/etc/netstart||[https://man.openbsd.org/netstart.8 netstart] is the command script that is invoked by [https://www.unix.com/man-page/freebsd/8/rc/ rc(8)] during an automatic reboot and after single-user mode is exited; it performs network initialization. |
|- | |- | ||
|/etc/network.subr|| | |/etc/network.subr|| |
Revision as of 14:10, 2 February 2020
Welcome to /etc/. |
Contents
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/unbound | link to /var/unbound |
/etc/X11 | no content |
/etc/zfs | no content |
Back to Directory 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:
|
/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 | The login.access file specifies (user, host) combinations and/or (user, tty) combinations for which a login will be either accepted or refused. |
/etc/login.conf | login.conf contains various attributes and capabilities of login classes. A login class (an optional annotation against each record in the user account database, /etc/master.passwd) determines session accounting, re source limits and user environment settings. It is used by various programs in the system to set up a user's login environment and to enforce policy, accounting and administrative restrictions. It also provides the means by which users are able to be authenticated to the system and the types of authentication available. Attributes in addition to the ones described here are available with third-party packages. |
/etc/login.conf.db | The system does not normally read the configuration in /etc/login.conf directly, but reads the database file /etc/login.conf.db which provides faster lookups. To generate /etc/login.conf.db from /etc/login.conf, execute the following command:# cap_mkdb /etc/login.conf [2]
|
/etc/mac.conf | The mac.conf file configures the default label elements to be used by policy-agnostic applications that operate on MAC labels. A file contains a series of default label sets specified by object class, in addition to blank lines and comments preceded by a `#' symbol.
Currently, the implementation supports two syntax styles for label element declaration. The old (deprecated) syntax consists of a single line with two fields separated by white space: the object class name, and a list of label elements as used by the mac_prepare(3) library calls prior to an application invocation of a function from mac_get(3). |
/etc/mail.rc | Simply sending e-mails with mailx.md Set an External SMTP Server to Relay E-Mails[3] |
/etc/master.passwd | The passwd files are the local source of password information. The master.passwd file is readable only by root, and consists of newline separated records, one per user, containing ten colon (`:') separated fields. |
/etc/motd | The file /etc/motdis normally displayed by login(1) after a user has logged in but before the shell is run. It is generally used for important system-wide announcements. During system startup, a line containing the kernel version string is prepended to this file. |
/etc/netconfig | The netconfig file defines a list of "transport names", describing their semantics and protocol. In FreeBSD, this file is only used by the RPC library code. |
/etc/netstart | netstart is the command script that is invoked by rc(8) during an automatic reboot and after single-user mode is exited; it performs network initialization. |
/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 Directory Structure |