Skip to main content

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.

0 votes
2 answers
55 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 ...
user1068636's user avatar
0 votes
2 answers
75 views

Setting Application Defaults in Linux /etc/default

I posted this question over in ServerFault, but it isn't getting any answers. What does the group assembled here think? I've looked in the local Confluence docs and it's been this way for like ten ...
Chris K's user avatar
  • 60
0 votes
0 answers
47 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
1 vote
1 answer
170 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 ...
mYnDstrEAm's user avatar
  • 4,398
0 votes
1 answer
150 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 ...
MrSnrub's user avatar
  • 135
0 votes
1 answer
3k 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 ...
A. Que's user avatar
  • 643
7 votes
5 answers
2k 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 ...
php_nub_qq's user avatar
4 votes
2 answers
1k 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 ...
Glendalough's user avatar
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/...
StoneThrow's user avatar
  • 1,797
3 votes
2 answers
266 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 ...
mgutt's user avatar
  • 487
0 votes
1 answer
70 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 ...
bit's user avatar
  • 1,116
0 votes
0 answers
64 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 ...
user2153235's user avatar
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 ...
mYnDstrEAm's user avatar
  • 4,398
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 ...
Alexey's user avatar
  • 2,090
0 votes
1 answer
372 views

make /etc/profile take effect permanently

https://help.ubuntu.com/community/EnvironmentVariables#Persistent_environment_variables https://unix.stackexchange.com/search?page=1&tab=Relevance&q=automatically%20source%20%2fetc%2fprofile ...
jian's user avatar
  • 577

15 30 50 per page
1
2 3 4 5
12