Skip to main content

Questions tagged [etc]

etc is config path under Unix-like operating systems.

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

how to add multiple interfaces in `/etc/hosts.allow` file?

SSH is listening on all the available 10 Ethernet interfaces in my system. I have tested using nc 160.49.198.97 22 command in Linux. To allow only particular interface and block others, i have created ...
Karma Yogi's user avatar
0 votes
1 answer
45 views

User created in linux has mismatched uid and gid

On my amazon linux ec2 instance, I created the group fungames and the user testuser-1. I then looked at the /etc/passwd and /etc/group file. The values added to the file by the linux subsystem doesn't ...
Tim Nguyen's user avatar
0 votes
2 answers
136 views

Are there any potential pitfalls to changing the permissions of config files under /etc to a non-root user?

There are various services which are being run on our machines, e.g. cassandra, datadog, etc. Occasionally, we need to change the configuration, and we wish to automate the propagation of the config ...
ranban282's user avatar
0 votes
2 answers
2k 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....
celcoprab's user avatar
3 votes
1 answer
7k views

Where should I place modules settings, in /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/*....
whoan's user avatar
  • 2,887
1 vote
3 answers
555 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 ...
AFA Med's user avatar
  • 637
0 votes
1 answer
242 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:{...
Paul Croarkin's user avatar
0 votes
1 answer
4k 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 ...
Loreno's user avatar
  • 3
0 votes
1 answer
1k 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 ...
CodeWithPride's user avatar
5 votes
1 answer
415 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 ...
Quasaur's user avatar
  • 165
0 votes
1 answer
753 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 ...
mikemaccana's user avatar
  • 3,550
-3 votes
1 answer
763 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 ...
Rajan Pathak's user avatar
0 votes
1 answer
886 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 ...
CptSupermrkt's user avatar
2 votes
2 answers
888 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 ...
Troels Folke's user avatar
4 votes
2 answers
1k 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 ...
rubo77's user avatar
  • 2,527
2 votes
2 answers
156 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?
rubo77's user avatar
  • 2,527
4 votes
1 answer
10k 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 ...
Toqeer's user avatar
  • 1,241
6 votes
2 answers
203 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 ...
field_guy's user avatar
-3 votes
2 answers
100 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 ...
shantanuo's user avatar
  • 3,639
-1 votes
2 answers
3k 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 ...
Richard's user avatar
  • 199
15 votes
6 answers
7k 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 ...
cweiske's user avatar
  • 819
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 ...
Kubi's user avatar
  • 101
14 votes
3 answers
673 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 ...
justintime's 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 ...
11 votes
5 answers
6k 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 /...
Brent 's user avatar
  • 23.5k