Questions tagged [etc]

etc is config path under Unix-like operating systems.

etc refers to one of the predefined paths under Unix-like operating systems which usually holds the system and applications configuration files and folders. The absolute path is /etc.

23 questions
14
votes
6 answers

Correct user names when tracking /etc/ in git repository and committing as root

We use git to track changes in /etc/ on our servers. Administrators work as root when changing files in /etc/, and thus their commits have author root This is not very satisfying since you cannot see which admin actually did the…
cweiske
  • 781
  • 1
  • 13
  • 36
14
votes
3 answers

Putting /etc under source control

I would like to put my /etc directory iunder source control using bazaar. Are there any gotchas in doing this. It seems safer to do it user an ordinary user rather than root - might there a be a problem with .bzr belonging to such a user.
justintime
  • 337
  • 3
  • 9
10
votes
5 answers

Is it possible to use etckeeper with a single shared git repository?

I noticed that several people have recommended using etckeeper to apply version control to my /etc directory. It appears to me that the default install puts a repository on the same machine as the /etc you are trying to manage. This works fine for…
Brent
  • 22,219
  • 19
  • 68
  • 102
6
votes
2 answers

Is there any any merit to routinely restore a linux system, even if unnecessary?

I do fieldwork with a number of computers running ubuntu performing critical tasks doing fieldwork. The computers are similarly configured with slight variations. Since we've had some configuration issues in the past, my boss is pressing for us to…
field_guy
  • 61
  • 1
5
votes
1 answer

EtcKeeper: Switching from bzr to git

I've been using etckeeper on my Digital Ocean droplet for sometime and have made numerous changes to the /etc since that time. I now realize that i've been using bzr all this time and would like to switch to git; but fear that i shall loose all the…
Quasaur
  • 165
  • 6
4
votes
1 answer

useradd with -d option do not create skeleton files

When I create a user with useradd command in centos 5, the home directory is created and its /etc/skel files are copied to that directory but when i give useradd with -doption to some different path to home directory it does not create the skeloton…
Toqeer
  • 1,201
  • 3
  • 13
  • 20
3
votes
1 answer

Where to place modules settings, /etc/modprobe.d or /lib/modprobe.d?

My man modprobe.d says the following: NAME modprobe.d - Configuration directory for modprobe SYNOPSIS /lib/modprobe.d/*.conf /etc/modprobe.d/*.conf /run/modprobe.d/*.conf My question is: anybody knows what is the…
whoan
  • 2,427
  • 1
  • 13
  • 13
3
votes
2 answers

Why is there no git repository after installing etckeeper?

I installed etckeeper on my ubuntu 11.10 server, and after creating the etckeeper repository with: etckeeper init etckeeper commit "Initial version" I got the error: bzr: ERROR: No changes to commit. Please 'bzr add' the files you want to commit,…
rubo77
  • 2,282
  • 3
  • 32
  • 63
3
votes
6 answers

What's the most widely used pronunciation of the Unix /etc directory?

What is the correct pronunciation of the directory /etc? Or, if there isn't a definitively "correct" way to say it, what is the most widely used pronunciation? I usually say the letter names spelled out: "ee-tee-see", but am acutely aware that a lot…
Dan Moulding
  • 337
  • 2
  • 6
  • 11
2
votes
2 answers

Restore old /etc onto newer system (CentOS)

In order to save space, I don't backup /usr (except /usr/local), /bin, /sbin and /lib. Instead I do a rpm -qa --qf '%{NAME}\n' to get a list of packages I need to install to restore the content of these directories. When doing a bare-metal…
Troels Folke
  • 353
  • 2
  • 5
2
votes
2 answers

How to keep track of the serverconfiguration: keep entire "/etc" in git

I want to keep my whole /etc folder in a git repository to track unauthorised changes by intruders and find out mistakes I could have done myself. What would be the right way to achieve this?
rubo77
  • 2,282
  • 3
  • 32
  • 63
1
vote
3 answers

Do I have to specify new added domain in /etc/host?

I purchased a new domain, then set correctly the DNS records (A ...). The domain points to my server, then Apache VirtualHost intercepts the HTTP queries. The question, is simple : do I have to add an entry in my /etc/host file for that new added…
AFA Med
  • 447
  • 1
  • 5
  • 15
0
votes
1 answer

Adding /etc/environment makes bash fail

On RHEL 6.7, I've added the file /etc/environment: JAVA_HOME="/opt/jdk1.8.0_91" JRE_HOME="{JAVA_HOME}/jre" M2_HOME="/usr/local/apache-maven" M2="{M2_HOME}/bin" PATH="{JAVA_HOME}/bin:{JRE_HOME}/bin:{M2}:{PATH}" Now on login, bash gives the following…
Paul Croarkin
  • 173
  • 1
  • 1
  • 6
0
votes
1 answer

Folder /etc/rc.d was removed from Synology NAS

I was installing the Syncrify package when I created a file to place it in the /etc/rc.d directory, guiding by the following tutorial: http://web.synametrics.com/syncrifyfreenas.htm But, when I tried to copy the file... I overwrited the directory…
Loreno
  • 3
  • 1
  • 3
0
votes
1 answer

first program to run after ssh connection

I have a user 'test' and I had modified /etc/passwd file to run a certain script of my own (lets call it somescript.sh) whenever 'test' logs-in or does ssh. I later changed the '/etc/passwd' file to run '/bin/bash' (the default program to run)…
1
2