/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

0
votes
0answers
55 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
53 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
35 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
34 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
51 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
52 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
198 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
16 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
22 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
56 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
30 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
264 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.)?
1
vote
1answer
1k 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
27 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
130 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 ...
1
vote
2answers
397 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
72 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
42 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
114 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
83 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
236 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
238 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 ...
1
vote
1answer
3k 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
591 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
167 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
4k 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 ...
2
votes
1answer
119 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
4k 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
104 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
4k 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 ...
1
vote
0answers
79 views

the difference between /var/adm/btmp, /etc/btmp and var/log/btmp [closed]

I need to know that users are correctly managing their bad login attempts. But I don't know which of these files is keeping track of this information.
3
votes
2answers
306 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
278 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?
2
votes
2answers
3k 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
605 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 ...
1
vote
1answer
319 views

etckeeper for opensuse - bash script install and configure

I want to automate the installation of etckeeper on OpenSuse 12.3. My first issue is that etckeeper doesn't seem to be available in the standard OpenSuse repos. zypper search etckeeper Loading ...
4
votes
3answers
1k views

How does /etc/hosts match work?

I'm curious about how /etc/hosts entries match works in Linux vs others *nix platform (if there is any difference). In particular I would be interested to understand if "match time" is proportional ...
2
votes
5answers
1k views

Moving /etc to separate partition

How to put /etc on separate partition? Obviously i can't do that by editing /etc/fstab like i did with /home, because... it's in /etc. I want /etc and /home on one partition (sda7), and the rest on ...
1
vote
2answers
205 views

The HOST variable in /etc/sudoers

suppose mymachine:/etc/sudoers includes the line joe someremotehost = (ALL) NOPASSWD: ALL but someremotehost:/etc/sudoers does not say anything special about joe, then what effect does the above ...
19
votes
2answers
18k views

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 ...
7
votes
1answer
716 views

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 ...
5
votes
3answers
827 views

Is making /etc directory read only a bad idea?

I have an embedded system setup built using buildroot and using initramfs. It runs on compact flash device where I have created separate ext3 partitions to mount /etc/ and /var directories as well as ...
9
votes
2answers
7k views

/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 ...
2
votes
1answer
11k views

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 ...
7
votes
3answers
5k views

How do I “merge” two text files?

I recently upgraded from Ubuntu 12.04 to 12.10 and at one point, it encountered an Apache config file conflict in apache2.conf. I didn't give me a merge option at that point, so I just rejected the ...
5
votes
2answers
8k views

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 ...
7
votes
1answer
189 views

Is it normal to have a file called “shadow-” in the /etc directory?

I am noticing a lot of weird files appearing in my router and on my various filesystems. Files in weird places or files that have to do with security with a - sign after them. If I do ls -l ...
11
votes
2answers
2k views

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.
4
votes
1answer
323 views

configuration ethics (esthetics): /etc vs $HOME

Ok this may not be a very concrete question, and is perhaps subject to taste, yet I'm struggling to get this right so here it goes. I have a computer. This computer has linux on it (thank god). Arch ...
1
vote
0answers
88 views

What is the meaning of /etc (as acronym) [duplicate]

Possible Duplicate: What does etc stand for? What does it mean? All I can think is etcetera. By my teacher told me that there is a more appropriate meaning.