Questions tagged [etc]
/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.
180 questions
8
votes
2
answers
938
views
Does any organisation standardise system management fundamentals?
Context
Through a bug report and discussion about KDE Plasma's user management KConfig Module silently failing to support commas inside the full name field, I recently came to realise that parsing ...
0
votes
2
answers
137
views
How do you redirect your local machine to go to www.google.com when www.microsoft.com is entered in the browser's URL bar?
If I modify my /etc/hosts file from this:
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 ...
0
votes
2
answers
2k
views
Setting Application Defaults in Linux /etc/default
Am I being a curmudgeon, or should /etc/default be reserved to settings for the operating system?
I'm seeing systems show up with /etc/default/{company}-environment. The file is typically Tomcat data, ...
0
votes
0
answers
223
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 ...
1
vote
1
answer
817
views
Shouldn't files in /etc/xdg/autostart/ be removed when removing a package?
I came across the messages below with sudo journalctl --since today | tail -n 3000. Shouldn't autostart entries be removed from there when removing a package?
It seems like general good practice to ...
1
vote
1
answer
856
views
Fake /etc/os-release for an application to make it think it runs on Ubuntu instead of Debian
I have to use a third party software which officially supports RHEL, SuSE (SLE[DS]) and a certain Ubuntu LTS release.
Unfortunately, I use Debian on all my systems.
If I run the installer script of ...
1
vote
2
answers
7k
views
Read/write /etc with read-only filesystem
I have a setup for an embedded project where I'd like to keep the root filesystem read-only and system configuration on a read/write partition. Users cannot install programs, but they can modify ...
7
votes
5
answers
3k
views
Is it a good idea to replace files in etc with symlinks?
I don't switch machines that often, but I don't want to be bound to 1 machine. Often the reason I'm not upgrading my hardware is because I don't want to be setting up a new machine.
So far I've made ...
4
votes
2
answers
2k
views
Entries in /etc/passwd are all duplicated (and entries in /etc/shadow are also all duplicated)
Checking the two files /etc/passwd and /etc/shadow on a standard Linux distro, it appears all entries are duplicated in both files:
in /etc/passwd, all entries are duplicated (2 lines for each ...
1
vote
1
answer
277
views
Convention to install files to /etc/ as non-root?
This question possibly has relevance in both Unix & Linux and Stack Overflow; I'm posting at Unix & Linux first, because I think I'd like to understand the issue from the perspective of Unix/...
4
votes
3
answers
450
views
Why does the output of testparm differ from /etc/samba/smb.conf?
This is the output of the [global] section of the /etc/samba/smb.conf of a random Synology NAS:
~# cat /etc/samba/smb.conf
[global]
printcap name=cups
winbind enum groups=yes
...
0
votes
1
answer
110
views
user login not working after overwriting /etc
I used rsync -aiiP to copy the /etc from my old laptop to the /etc of my new laptop. After locking the screen and trying to log back in, my password no longer works. I rebooted but it gets stuck on ...
0
votes
0
answers
103
views
Damage control after erasing /etc in Cygwin?
I was doing housekeeping using the Windows adminstrator account, and I erased Cygwin's /etc folder tree.
I cannot reinstall Cygwin, as I was in the process of taking stock of what files I need to ...
6
votes
1
answer
3k
views
How to see all config files that differ from package maintainers' versions in Debian?
When installing an upgrade with sudo apt-get upgrade it displays:
Configuration file '/etc/grub.d/30_os-prober'
==> Modified (by you or by a script) since installation.
==> Package distributor ...
0
votes
1
answer
4k
views
How to reset the printing system (CUPS)?
I would like to know how to cleanly reset the printing system (CUPS) to its initial state.
Alternatively, it may suffice for me to know how to take a "snapshot" of CUPS configuration and to ...