Questions tagged [etc]

/etc is the directory that holds the essential system and software configuration. Use this tag for questions on the organization of /etc or the syntax of configuration files within /etc. Don't use this tag for questions on the configuration of particular software.

The configuration of the system and most software is kept in various files under /etc or in subdirectories. These files are supposed to be static; runtime configuration is kept under /var/run or /var/lib. An exception to this is the file /etc/mtab. Moreover, the configuration under /etc is often system specific and cannot be shared.

/etc once used to contain some system binaries, but they were moved long ago to /sbin. /etc/rmt of the GNU tar package is a rare remnant. In some sense the same holds for the init scripts under /etc/init.d, although several packages install or expect scripts under specific subdirectories of /etc.

Software packages installed under /usr/local or /opt sometimes use /usr/local/etc resp. /opt/etc to store their configuration.

See also

177 questions
128
votes
3 answers

What do the scripts in /etc/profile.d do?

I am reading about basic shell scripting from Linux Command Line and Shell Scripting Bible. It says that the /etc/profile file sets the environment variables at startup of the Bash shell. The /etc/profile.d directory contains other scripts that…
asheeshr
  • 1,897
  • 2
  • 18
  • 23
60
votes
1 answer

Where to find the Crontab logs in CentOS

First of all I'm using CentOS [root@a etc]# cat system-release CentOS release 6.5 (Final) [root@a cron.daily]# ps -ef | grep cron root 982 1 0 Jun14 ? 00:01:15 crond root 5692 5441 0 00:49 pts/0 00:00:00 grep…
Prime
  • 727
  • 1
  • 6
  • 10
49
votes
5 answers

/etc/hosts file refer to another configuration file

How can I get the /etc/hosts file to refer to another configuration file for it's list of hosts? Example /etc/hosts: ## My Hosts 127.0.0.1 localhost 255.255.255.255 broadcasthost #Other Configurations
DogEatDog
  • 665
  • 1
  • 9
  • 10
43
votes
4 answers

How to check if a shared library is installed?

My question originates from my problem in getting ffmpeg started. I have installed ffmpeg and it is displayed as installed: whereis ffmpeg ffmpeg: /usr/bin/ffmpeg /usr/bin/X11/ffmpeg /usr/share/ffmpeg /usr/share/man/man1/ffmpeg.1.gz Later, I…
Abdul Al Hazred
  • 25,760
  • 23
  • 64
  • 88
42
votes
3 answers

What is the purpose of /etc/hosts?

As I understand it, the hosts file is one of several system facilities that assists in addressing network nodes in a computer network. But what should be inside it? When I install Ubuntu by default 127.0.0.1 localhost will be there. Why? How…
MikiBelavista
  • 1,473
  • 8
  • 28
  • 38
36
votes
4 answers

Global bash_profile

I realize there are /etc/profile and /etc/bashrc files for setting global environment variables and maybe I'm just misunderstanding their purposes, but... Is there a global bash_profile file? I'm using Mac OS X
user23312
34
votes
1 answer

Who creates /etc/{group,gshadow,passwd,shadow}-?

In any linux system I have access to (a couple of Archlinuxes, an Ubuntu, a Debian Sid and a Gentoo) there are the following 4 files in /etc/, all ending with a dash: /etc/group- /etc/gshadow- /etc/passwd- /etc/shadow- On the internet they say that…
peoro
  • 3,658
  • 3
  • 32
  • 32
33
votes
9 answers

How to keep track of changes in /etc/

I would like to keep track of changes in /etc/ Basically I'd like to know if a file was changed, by yum update or by a user and roll it back if I don't like the chage. I thought of using a VCS like git, LVM or btrfs snapshots or a backup program for…
taffer
  • 1,553
  • 11
  • 19
32
votes
1 answer

/etc/udev/rules.d/ vs /lib/udev/rules.d/ - which to use and why?

The Arch wiki recommended creating a file in /etc/udev/rules.d/ to fix my Steam controller issues. This worked! However, I noticed that there are no other rules in this folder except for the one I just created. Additionally, all other sources I've…
Aaron Franke
  • 905
  • 3
  • 13
  • 24
31
votes
3 answers

Error message id: cannot find name for group ID after logging in

BACKGROUND Trevor logs into his account on ssh://foobar.university.edu as one of the developers on the box, and he gets the message: id: cannot find name for group ID 131 Trevor then checks this out using vim /etc/group PROBLEM Trevor discovers…
dreftymac
  • 717
  • 2
  • 7
  • 10
24
votes
2 answers

What is the purpose of `/etc/group-`

On a standard Linux distribution (e.g. Ubuntu) there is usually /etc/group and /etc/group-, where the second one is only readable by root. man group only describes /etc/group. Thus my question: What is the purpose of /etc/group-?
maxschlepzig
  • 56,316
  • 50
  • 205
  • 279
20
votes
1 answer

No domain defined in /etc/resolv.conf

I see more and more servers that have no domain defined in the /etc/resolv.conf file. Only a search entry. In what cases is this setup used ? Are there any cases where it must not be used ? nameserver xxx.xxx.xxx.xxx nameserver…
Emmanuel
  • 4,167
  • 2
  • 23
  • 30
18
votes
1 answer

Excluding files in etckeeper with .gitignore doesn't work

I use etckeeper for changes in my configfiles (on Debian squeeze) Since I also have an ircdeamon running, there are some files, that change every minute in the folder /etc/hybserv/ I don't want to version control them anymore, so I added…
rubo77
  • 27,777
  • 43
  • 130
  • 199
18
votes
2 answers

Why is /etc/passwd open to public for reading?

Is there any reason that /etc/passwd should be world-wide readable ? It's not like password hashes that shouldn't be exposed, I just want to know why.
daisy
  • 53,527
  • 78
  • 236
  • 383
17
votes
5 answers

What command should I run after making changes to /etc/passwd file

I have made some changes to /etc/passwd file ,now I wanted to see if the effect of changes taken place or not .What command should I run for that. For example after making change to /etc/ssh/ssh_config file ,I run /etc/init.d/sshd command.
Ram
  • 655
  • 4
  • 9
  • 19
1
2 3
11 12