Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [etc]

etc is config path under Unix-like operating systems.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

pam_limits(systemd-user:session): invalid line '*hard nofile 999999999999' - skipped

I am getting these errors from journalctl: pam_limits(systemd-user:session): invalid line '*hard nofile 999999999999' - skipped pam_limits(systemd-user:session): invalid line '*soft nofile ...
user avatar
  • 1
0 votes
0 answers
127 views

getting error while trying ro rsync contents that live inside /etc directory

I am making a cron job on my server node that uses haproxy base concated cert file from letsencrypt. however when I am at home I have same dns pointing to the home server which is actually hosting the ...
user avatar
0 votes
2 answers
1k views

Ansible: How to Remove /etc/hosts entries on the remote server using Ansible playbook. I need only the default entries to be present [closed]

How to Remove /etc/hosts entries on the remote server using Ansible playbook. I need only the default entries to be present. I need only below entries to be present: 127.0.0.1 localhost localhost....
user avatar
1 vote
1 answer
4k views

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/*....
user avatar
  • 2,237
1 vote
3 answers
341 views

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 ...
user avatar
  • 437
0 votes
1 answer
131 views

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:{...
user avatar
0 votes
1 answer
3k views

Folder /etc/rc.d was removed from Synology NAS [closed]

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 ...
user avatar
  • 3
0 votes
1 answer
820 views

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 ...
user avatar
5 votes
1 answer
382 views

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 ...
user avatar
  • 165
0 votes
1 answer
529 views

Can I publish to multiple distinct etcd clusters from a single host?

I have a number of distinct etcd clusters, I would like to be centrally controlled: I have multiple distinct etcd clusters. Hosts in one cluster should not have any access to config in another ...
user avatar
  • 3,000
-3 votes
1 answer
399 views

Why this change to /etc/limits does not work

I have made below changes to /etc/limits file for limiting the number of logins for a particular user from ssh. rajan L2 rajan is username here. After making these changes I logged out from session ...
user avatar
0 votes
1 answer
647 views

Does exportfs disrupt users already utilizing those filesystems?

I need to modify a servers /etc/exports file to export to an additional host. After modifying this file, for it to take effect (i.e. for the additional host to have access to the designated ...
user avatar
2 votes
2 answers
772 views

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 ...
user avatar
3 votes
2 answers
891 views

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 ...
user avatar
  • 2,294
2 votes
2 answers
108 views

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?
user avatar
  • 2,294
4 votes
1 answer
8k views

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 ...
user avatar
  • 1,201
6 votes
2 answers
197 views

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 ...
user avatar
-3 votes
2 answers
95 views

Access to another user files [closed]

I have logged in as "userc". I need access to all the files that "usera" has. I have edited the following file, vi /etc/group usera:x:1000:userb,userc But this does not seem to work. I am still ...
user avatar
  • 3,427
0 votes
2 answers
2k views

Temporarily change etc/hosts file on a windows workstation

Is there a tool, that allows an individual to temporarily switch between different etc/hosts configurations, without setting up a dns? Example: I would like to quickly change the etc/hosts config ...
user avatar
  • 201
14 votes
6 answers
6k views

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 <root@machinename> This is not very ...
user avatar
  • 781
0 votes
2 answers
3k views

drivers/etc/hosts doesn't work in Windows Server 2008

the following line in hosts file in windows/system32/drivers/etc/hosts doesnt work 127.0.0.1 gotomylocal.com I'm using Windows Server 2008, I'm new and configured Windows Server 2008 unconsciously ...
user avatar
  • 101
14 votes
3 answers
649 views

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 ...
user avatar
3 votes
6 answers
3k views

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

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 /...
user avatar
  • 22.1k