All Questions
Tagged with configuration etc
22
questions
0
votes
1
answer
165
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/...
3
votes
1
answer
2k
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
2k
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 ...
1
vote
4
answers
2k
views
Is /etc/services actively used when an application binds to a port?
When an application is looking for a port to bind to,
is /etc/services actively searched to ensure there are no clashes?
I.e., if a port is registered in /etc/services,
is it reserved whether it’s ...
1
vote
2
answers
3k
views
How can I `usermod` old users with new `/etc/skel` files?
I want to "update" old users with new /etc/skel content on Debian and Ubuntu installations. Scripting this is possible...
find /home -maxdepth 1 -mindepth 1 -type d | while read homedir; do
user="...
2
votes
2
answers
809
views
Persisting sshd_config settings
When modifying Linux configuration files, it is often recommended to place local changes under a .d directory, e.g., /etc/sudoers.d/ or /etc/apt/sources.list.d. In my understanding this is to avoid ...
0
votes
1
answer
6k
views
vsftpd service does not start saying vsftpd.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
I am configuring with Ansible a VM running Ubuntu to run this FTP server: vsftpd, however after the installation when I inspect the logs with journalctl -u vsftpd.service I see:
Nov 20 17:49:58 my-vm ...
2
votes
1
answer
800
views
OpenBSD: Check what files under /etc has changed in comparison to pristine base system
I'm planning on setting up a new personal OpenBSD-current system by means of installing the latest OpenBSD snapshot, and I would want it to look more or less similar to my existing OpenBSD-current ...
0
votes
0
answers
245
views
Shall I run a sudo-required script in some shell configuration file?
Is it a good idea to put a sudo command in a shell configuration file?
I have a bash script /home/t/bin/changeCpuFreq.sh which can change my cpu frequency. The line 40 in my script is
echo $1 > /...
3
votes
0
answers
547
views
Where do CLI tools conventionally store config files?
I'm working on CLI tool written in python.
There should be default config directory. Very similar to nginx approach:
conf_root
|__main.conf
|__projects
|__project1.conf
|...
1
vote
1
answer
253
views
How to populate many config files with same value(s) [closed]
I have many programs and all of them have some identical values in their config files (most, if not all, of which are in /etc).
Let's say it is hostname, which is stored in the config files of Apache,...
8
votes
2
answers
1k
views
How to get copies of default Linux etc files
Only sometimes, I forget to make a backup of a given linux file such as /etc/rc.local, /etc/rsyslog.conf, /etc/dhcpcd.conf, etc, and later wish I did. Distribution agnostic, is there a good approach ...
5
votes
2
answers
307
views
How to switch between different Linux configurations?
I have several different use cases for my Raspberry Pi 3. Currently I have a configuration for it as a media centre, for streaming audio, for hacking purposes, office workplace, etc. All ...
1
vote
1
answer
60
views
What to backup before messing with X
I haven't had need to mess with X for a long time (I'd guess it was still when Xfree86 ruled).
A few weeks ago, however, I was trying to get a laptop to use an external display and I managed to ...
2
votes
1
answer
435
views
What directory does etckeeper store its permissions / metadata in?
In what directory does etckeeper store its metadata and permissions in?
I want to know for purposes of testing the restoration of a configuration.