Difference between revisions of "/etc/"

From GhostBSD Wiki
Jump to: navigation, search
(Files)
(Files)
Line 140: Line 140:
  
 
|-
 
|-
|/etc/group||
+
|/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 [https://www.unix.com/man-page/freebsd/5/group/ group(5)].
 +
 
 +
The superuser can modify /etc/group using a text editor. Alternatively, [https://www.freebsd.org/cgi/man.cgi?query=pw&apropos=0&sektion=8&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html pw(8)] can be used to add and edit groups. See: [https://www.freebsd.org/doc/handbook/users-synopsis.html 3.3.3. Managing Groups]
 
|-
 
|-
 
|/etc/hostid||
 
|/etc/hostid||

Revision as of 11:43, 1 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), [ https://www.freebsd.org/cgi/man.cgi?query=mount&sektion=8&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports 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
/etc/hosts
/etc/hosts.allow
/etc/hosts.equiv
/etc/hosts.lpd
/etc/hosts-e
/etc/inetd.conf
/etc/libalias.conf
/etc/libmap.conf
/etc/localtime
/etc/locate.rc
/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