/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.

learn more… | top users | synonyms

1
vote
1answer
28 views

is there a tool/daemon that automatically fills /etc/ethers in the background to have a proper wake on lan hostname:mac database when needed?

is there a tool/daemon available that automatically fills /etc/ethers in the background with the proper hostname:mac pairs to have a up to date database when needed with for example wake on lan (wol) ...
4
votes
1answer
67 views

Is there a way to tell which files in /etc were modified?

I want to create a mirror of my existing Debian server. I modified many files in /etc, and I don't want to redo everything by hand or download huge mirrors. What I thought of doing is Download a ...
1
vote
1answer
15 views

Is it always necessary to run etckeeper git commands using the vcs command?

I've seen some tutorials on the internet in which people are using etckeeper to keep a log of their server configuration, and yet they use the git command directly instead of running it through the ...
1
vote
1answer
21 views

What directory does etckeeper store its permissions / metadata in?

In what directory does etckeeper store its metadata and permissions in? I want to know for purposes of testing the restoration of a configuration.
2
votes
1answer
22 views

Make webserver reload the system wide environment variables

I made changes on the /etc/environment file and want the webserver user www-data to benefit from them without rebooting the server. It seems that, in order to reload the /etc/environment file, I only ...
0
votes
1answer
22 views

display message of the day in time interval, let's say maybe every one hour

I am trying to execute the message in a specific time interval for every user that logs in to their root
1
vote
1answer
179 views

sources.list file empty in debian [duplicate]

On running nano /etc/apt/sources.list , the text editor opens the sources.list file but it is completely empty! How to get the default sources.list file as I am unable to update debian (apt-get ...
1
vote
1answer
41 views

I moved /etc into /home in Linux Mint, how do I make the system usable again?

I was making a spare Mint live USB via Unetbootin and when I was looking for my iso file, I misclicked and moved /etc into my /home directory, which pretty much immediately rendered my system useless. ...
1
vote
1answer
47 views

Cannot close the file /etc/mtab when restoring /etc with rar

Prior to reinstalling VPS and upgrading from Debian 6 to Debian 8, I have archived /etc/ folder. Now, I am trying to extract and overwrite everything, but somewhere in the process I get this message ...
1
vote
2answers
937 views

What is the file permission of /etc/shadow in CentOS?

What is the default file permission of /etc/shadow in CentOS? Is there any difference in the default file permission of /etc/shadow in previous versions of CentOS?
-2
votes
1answer
133 views

How to know under what filesystem /etc comes?

I have accidentally deleted some important files of ldap server. Now I am trying to recover all these files. I tried this post and ran these commands: # mount /dev/mapper/VolGroup00-LogVol00 on / ...
2
votes
0answers
61 views

Absolute domain names in /etc/hosts?

I have a RHEL7.0 host which has this standard entry in /etc/hosts/: 127.0.0.1 localhost.localdomain localhost So resolving localhost.localdomain works: $ ping localhost.localdomain PING ...
1
vote
0answers
92 views

overlayfs root filesystem, cannot read /etc/mtab

I'm doing the following: mkdir /tmp/upper /tmp/work mount -t overlay overlay -o lowerdir=/,upperdir=/tmp/upper,workdir=/tmp/work / ls -l /etc/mtab > lrwxrwxrwx 1 root root 19 27. Feb 09:16 ...
0
votes
2answers
381 views

DHCP and read-only root filesystem

When doing ifup wlan0 on a system with / mounted as read-only (embedded computer), I get this error: Failed to connect to non-global ctrl_ifname: wlan0 error: Read-only file system Internet Systems ...
0
votes
0answers
29 views

recovering from loss of /etc folder

I'm running slackware 12. I accidentally deleted my entire /etc folder and I'm trying to figure out how to rebuild it. I went and reinstalled slackware 12 off the original CD's using full installation ...
-2
votes
3answers
121 views

Command to print users that don't have /sbin/nologin as a shell

Given the /etc/passwd file, what is the command to print only the login names of users that do not have /sbin/nologin as a shell? Also, in my /etc directory, what can I use as a command to count the ...
0
votes
0answers
299 views

CentOS 7 /var/log/messages

We have a CentOS 7 (3.10.0-229.1.2.el7.x86_64) server running as our main file share server. We randomly see the following error messages showing up in our /var/log/messages and have been trying to ...
1
vote
2answers
2k views

How to check if a shared library is installed?

My question origins from my problem 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 ...
3
votes
1answer
100 views

Question on environmental variable

I have Oracle jdk7 installed on my centos6. I noticed that the /etc/profile has the lines below: #below lines are added for Java export JAVA_HOME="/usr/java/latest" ## export JAVA_HOME JDK ## export ...
1
vote
1answer
91 views

Why do my run level directories contain only start scripts and no single kill script?

I learned here that for each runlevel exist a directory with start and kill scripts. The start scripts are activated on entering , the kill scripts on leaving the runlevel. Start scripts and kill ...
1
vote
1answer
599 views

What's the difference of `/etc/modules-load.d` and `/etc/modules`?

I red the introduction of them and found that, they both deal with module loading during boot time. So, what's the difference of these two different configuation ways?
2
votes
0answers
92 views

How to change the motd on a Linux distribution that has no /etc/motd ?

I have seen a simple tutorial on how to put ascii art in the /etc/motd in order to show it each time the PC starts as the message of the day. Unfortunately Linux Mint Rebecca does not have a ...
1
vote
1answer
558 views

Error while booting Ubuntu 14.04 - setterm: $TERM is not defined

Yesterday I restarted my Notebook with Ubuntu 14.04 and got the following error message in between the login-screen and the loaded user interface. Error found when loading /etc/profile setterm: ...
0
votes
0answers
26 views

Sync LiveCD etc directory after fstab mounts

I'm working on a RHEL 6.3 LiveCD which will eventually become a read only OS. During the development phase I have need to sync content for etc from a local data partition. The Live CD is created from ...
0
votes
0answers
26 views

Pressed the big red cross in Winscp by accident

Iv'e just pressed the big red cross in winscp by accident. I ment to close the session, but pressed the wrong button. I was in the /etc folder, but didn't see what i deleted. 1) Is there a way to ...
2
votes
1answer
134 views

/etc/fstab 5th column

Whatever I have understood so far about the 5th column of /etc/fstab that it is for dump command to run on that file system. if entry is 0 dump command will not run and if the entry is 1 then dump ...
1
vote
1answer
52 views

How to disable script in “dot-d” (with suffix “.d”) directory in /etc without deleting it?

There is a lot of stuff that is configured using directories in /etc with .d suffix, which stands for "directory" and even though Unix doesn't require such suffix, it is used to avoid name clashing. ...
1
vote
1answer
306 views

Why has '-' been chosen as the backup file suffix for certain Unix system files?

Example: /etc/group-, /etc/passwd- Is there any motivation behind choice of the - sign (e.g. easier to recognize, process, etc.)?
3
votes
1answer
23k views

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 ...
0
votes
2answers
33 views

How do I change a section of a host name permanently on multiple host names as a root user?

I am doing a project for uni and an unsure how to proceed i have been given the task of changing hosts name from one thing to another on a unix box I am logged in to the box as root the host name is ...
4
votes
3answers
665 views

How to merge config files interactively after “yum update”

After system packages are updated with "yum update", config files which could not be overwritten are not replaced, but we can find *.rpmnew files near by. By design system administrator must merge ...
2
votes
2answers
791 views

How does the script /etc/init.d/sudo work?

I was reading the script /etc/init.d/sudo. It has been written as a comment in the script that it provides limited super user privileges to specific users. Though, I could not understand the script ...
2
votes
1answer
137 views

Which config files in /etc folder must be unique for each computer?

I am doing a restoration test of backup files on a computer. Without putting much thought into it, I did an rsync to replace all files in /etc folder with the ones in the backup. Then, I realize I ...
3
votes
2answers
52 views

Get package version of file

I've deleted a file in /etc provided by package packageA. Is there a way that I can reinstall only that file, provided I know where it is and which package provides it? I'm running Ubuntu 12.04 and ...
1
vote
1answer
210 views

Restore default /etc directory

I just ran a script I'm working on, and due to a mistake in directories, overwrote most of the default /etc directory files. I can re-add my user account easily, but most other things are gone such ...
3
votes
1answer
112 views

Configuration management, shared files, etc with a Laptop

I have a couple computers sitting around in my home network. They all run the same version of Ubuntu, and I would like to unify their configuration to some extent. At my university, you can log in to ...
1
vote
1answer
379 views

Permissions changing on few files under /etc/

It appears that new permissions on /etc/issue and /etc/motd are reverting back to the original even if we change them. This is on systems running RHEL 5 and RHEL 6. Is there any rc script which ...
1
vote
1answer
596 views

Mysqld_multi doesn't recognize groups

I am trying to configure a MySQL server to run multiple instances of the daemon (I wish to duplicate it onto different drives). I've been trying to use the mysqld_multi script. However the script is ...
4
votes
1answer
10k views

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 ? ...
3
votes
1answer
2k views

Increasing nproc limit for a non-root user . Only effective by restart

I am increasing nproc limit for one of a development user account in my rhel6 system . After searching some rubust solution , I zerod at editing /etc/security/limits.conf with these two lines : ...
1
vote
1answer
223 views

shadow files getting created automatically in /etc in solaris server.(SunOS 5.10)

In my Solaris server (SunOS 5.10) shadow files are getting created automatically every 10 minutes for two particular users in /etc. The content of the files is the same as /etc/shadow. Say john and ...
2
votes
4answers
7k views

Ownership of etc folder is changed how to restore it using commandline?

I have a computer with Ubuntu 13.10 installed. The user (say Walesa) has changed the ownership of etc folder and all its subfolders from root to Welesa using a privileged file manager. As sudo was ...
4
votes
1answer
266 views

/etc/paths in OS X and other Unices

Is /etc/paths read by every shell that I run in OS X? For example, if I use zsh, will it parse /etc/path to populate $PATH? What exactly is the sequence that OS X follows to populate $PATH? Does it ...
3
votes
4answers
9k views

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 ...
1
vote
0answers
216 views

Value of /proc/sys/kernel/hostname

I've set computer hostname in /etc/hostname a while ago (also there are record in /etc/hosts). Everything worked fine, but recently I've noticed that value of hostname (and /proc/sys/kernel/hostname) ...
0
votes
1answer
5k views

When issuing ls in the /etc/ directory, I get “ls: reading directory .: Input/output error”

I have a Windows running a CentOS6 (32-bit) on a VMWare virtual machine. I am attemping to install a single-node Cloudera Hadoop according to these instructions. At one point I was asked to issue ...
3
votes
2answers
447 views

Which Debian package does /etc/environment come from?

I know that /etc/profile is installed by base-files, but it doesn't look like this package installs /etc/environment: $ dpkg -S /etc/environment dpkg-query: no path found matching pattern ...
3
votes
1answer
396 views

Is the last new line on fstab important?

What happens if the last line of fstab is not terminated by a newline? Why do people get a warning when that last line is not terminated by a newline?
3
votes
2answers
5k views

Is “/etc/issue” common for all Linux distributions?

I'm trying to Create OS detect portable function in bash script, So I just want to know, the file "/etc/issue" is common for all Linux Flavors ?
1
vote
2answers
926 views

What kind of file does /etc/inputrc belong to?

Seems like that the /etc/inputrc file conforms to the shell script syntax. But the file name does not end with a .sh. The first line in the file does not have a #!, either. Is it another kind of ...