Two /etc directories

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
User avatar
Van_Vinkle
Donor
Posts: 157
Joined: 25. Oct 2012, 17:39

Two /etc directories

Post by Van_Vinkle »

I've realized that in my system there are two /etc directories: first, the normal /etc and second (and weird in my opinion) there is also a directory /etc/etc.
I've listed both directories and I could see the files inside are not the same.
I've got some (minor) problems in my configuration and I wonder if this was caused by the duplicity.
Could the wise men of salix clarify if having two /etc directories is normal?
User avatar
laprjns
Salix Warrior
Posts: 1105
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: Two /etc directories

Post by laprjns »

My guess is that there is an error in the build script of one of the packages that you installed. If you post a list of files that are in /etc/etc it may help in identifying the issue.
“Don’t you see that the whole aim of Newspeak is to narrow the range of thought?"
User avatar
Van_Vinkle
Donor
Posts: 157
Joined: 25. Oct 2012, 17:39

Re: Two /etc directories

Post by Van_Vinkle »

This is ls -l of /etc/etc:

Code: Select all

total 2104
drwxr-xr-x  5 root root     4096 oct 23  2017 ConsoleKit
-rw-r--r--  1 root root     4593 abr 17  2016 DIR_COLORS
-rw-r--r--  1 root root       21 mar  8  2018 HOSTNAME
drwxr-xr-x  2 root root     4096 oct 23  2017 ImageMagick-6
drwxr-xr-x  5 root root     4096 oct 25  2017 NetworkManager
drwxr-xr-x  2 root root     4096 oct 23  2017 UPower
drwxr-xr-x  8 root root     4096 oct 23  2017 X11
-rw-r--r--  1 root root     2561 jul 28  2010 a2ps-site.cfg
-rw-r--r--  1 root root    15063 jul 28  2010 a2ps.cfg
drwxr-xr-x  3 root root     4096 oct 23  2017 acpi
-rw-r--r--  1 root root       46 feb  8  2019 adjtime
-rw-r--r--  1 root root      105 feb 22  2016 asound.conf
lrwxrwxrwx  1 root root       28 oct 23  2017 asound.state -> ../var/lib/alsa/asound.state
drwxr-xr-x  2 root root     4096 oct 23  2017 at-spi2
-rw-r-----  1 root daemon    144 jun 29  2016 at.deny
-rw-r--r--  1 root root      724 abr 18  2013 auto.master
drwxr-xr-x  2 root root     4096 abr 18  2013 auto.master.d
-rw-r--r--  1 root root      524 abr 18  2013 auto.misc
-rwxr-xr-x  1 root root     1260 abr 18  2013 auto.net
-rwxr-xr-x  1 root root      687 abr 18  2013 auto.smb
-rw-------  1 root root      232 abr 18  2013 autofs_ldap_auth.conf
drwxr-xr-x  3 root root     4096 mar  5  2018 avahi
drwxr-xr-x  2 root root     4096 ene 29  2019 bash_completion.d
drwxr-xr-x  2 root root     4096 sep  2 21:26 bluetooth
drwxr-xr-x  3 root root     4096 oct 23  2017 ca-certificates
-rw-r--r--  1 root root     7010 sep  2 21:26 ca-certificates.conf
-rw-r--r--  1 root root     7367 sep  2 21:26 ca-certificates.conf.orig
-rw-r--r--  1 root root      902 ene 13  2014 cgconfig.conf
drwxr-xr-x  2 root root     4096 jun 15  2018 cgconfig.d
-rw-r--r--  1 root root      940 ago 25  2014 cgred.conf
-rw-r--r--  1 root root      234 ene 13  2014 cgrules.conf
-rw-r--r--  1 root root      131 ene 13  2014 cgsnapshot_blacklist.conf
drwxr-xr-x  2 root root     4096 may 10  2016 cron.d
drwxr-xr-x  2 root root     4096 nov 23  2018 cron.daily
drwxr-xr-x  2 root root     4096 oct 23  2017 cron.hourly
drwxr-xr-x  2 root root     4096 may 10  2016 cron.monthly
drwxr-xr-x  2 root root     4096 may 10  2016 cron.weekly
-rw-r--r--  1 root root        0 oct 23  2017 crypttab
-rw-r--r--  1 root root     1614 ago  2  2013 csh.login
drwxr-xr-x  5 root lp       4096 oct 23  2017 cups
drwxr-xr-x  3 root root     4096 oct 25  2017 dbus-1
drwxr-xr-x  2 root root     4096 oct 25  2017 default
-rw-r--r--  1 root root     1467 nov 19  2015 dhcpcd.conf
-rw-r--r--  1 root root       42 oct 25  2017 dhcpcd.duid
-rw-r--r--  1 root root     2916 ago 13  2013 dialogrc
drwxr-xr-x  2 root root     4096 may  9  2016 dm
-rw-r--r--  1 root root     4346 may  9  2016 drirc
-rw-r--r--  1 root root     4760 mar  7  2016 enscript.cfg
-rw-r--r--  1 root root      368 mar 21  2013 esd.conf
-rw-r--r--  1 root root        0 sep 30 11:35 etc2.txt
-rw-r--r--  1 root root     1362 mar 28  2016 ethertypes
-rw-r--r--  1 root root      154 ago 21  1994 exports
-rw-r--r--  1 root root    22063 sep 22  2008 fb.modes
drwxr-xr-x  3 root root     4096 ago  1  2018 file
drwxr-xr-x  3 root root     4096 abr  2  2018 fish
drwxr-xr-x  4 root root     4096 oct 21  2018 fonts
-rw-r--r--  1 root root      822 ene 19  2018 fstab
drwxr-xr-x  2 root root     4096 oct 23  2017 gamin
drwxr-xr-x  6 root root     4096 oct 23  2017 gconf
drwxr-xr-x  7 root root     4096 oct 23  2017 gdm
-rw-r--r--  1 root root     4655 oct  3  2013 gettydefs
drwxr-xr-x  3 root root     4096 oct 23  2017 gimp
drwxr-xr-x  2 root root     4096 abr 24  2016 gnupg
-rw-r--r--  1 root root     1756 ago  4  2014 gpm-root.conf
-rw-r--r--  1 root root     1582 ago  4  2014 gpm-syn.conf
-rw-r--r--  1 root root     4763 ago  4  2014 gpm-twiddler.conf
-rw-r--r--  1 root root      860 oct  7  2018 group
-rw-------  1 root root      843 oct 28  2017 group-
-rw-r-----  1 root shadow     40 oct  7  2018 gshadow
-rw-------  1 root root       26 oct 28  2017 gshadow-
drwxr-xr-x  2 root root     4096 nov  2  2017 gtk-2.0
drwxr-xr-x  2 root root     4096 oct 23  2017 gtk-3.0
-rw-r--r--  1 root root      147 oct 23  2017 hardwareclock
-rw-r--r--  1 root root       27 jul  7  1994 host.conf
-rw-r--r--  1 root root      620 mar  8  2018 hosts
-rw-r--r--  1 root root      293 nov 26  1993 hosts.allow
-rw-r--r--  1 root root      296 nov 26  1993 hosts.deny
-rw-r--r--  1 root root      320 feb  9  1998 hosts.equiv
drwxr-xr-x  2 root root     4096 oct 23  2017 hp
-rw-r--r--  1 root root     1839 jul  5  2012 identd.conf
-rw-r--r--  1 root root     4599 jun 30  2007 inetd.conf
lrwxrwxrwx  1 root root       11 oct 23  2017 init.d -> rc.d/init.d
-rw-r--r--  1 root root     2162 jun 14  2016 inittab
-rw-r--r--  1 root root      690 may 31  2002 inputrc
-rw-r--r--  1 root root       24 sep 24  2000 issue
-rw-r--r--  1 root root        0 sep 17  1999 issue.net
drwxr-xr-x  2 root root     4096 oct 23  2017 java
-rw-r--r--  1 root root   254932 feb  4  2019 ld.so.cache
-rw-r--r--  1 root root       69 jun 22  2016 ld.so.conf
-rw-r--r--  1 root root     3256 may 20  2016 lftp.conf
drwxr-xr-x  2 root root     4096 oct 23  2017 libnl
drwxr-xr-x  4 root root     4096 mar  5  2018 libvirt
-rw-r--r--  1 root root     7788 ago  4  2016 lilo.conf_example
-rw-r--r--  1 root root     2619 oct 23  2017 localtime
lrwxrwxrwx  1 root root       33 oct 23  2017 localtime-copied-from -> /usr/share/zoneinfo/Europe/Madrid
-rw-r--r--  1 root root     2006 jul  2  2014 login.access
-rw-r--r--  1 root root    10846 jul  2  2014 login.defs
-rw-r--r--  1 root root     1248 abr 17  2015 logrotate.conf
drwxr-xr-x  2 root root     4096 nov  7  2018 logrotate.d
drwxr-xr-x  3 root root     4096 oct 23  2017 lvm
-rw-r--r--  1 root root   159864 may 29  2017 lynx.cfg
-rw-r--r--  1 root root     3581 may 29  2017 lynx.lss
-rw-r--r--  1 root root     4635 nov 10  2015 man.conf
drwxr-xr-x  3 root root     4096 oct 25  2017 mate-settings-daemon
drwxr-xr-x  2 root root     4096 oct 23  2017 mc
-rw-r--r--  1 root root     2687 mar  4  2016 mdadm.conf
-r--r--r--  1 root root    11298 ago  2  2013 mediaprm
lrwxrwxrwx  1 root root        4 ago  1  2018 misc -> file
-rw-r--r--  1 root root      965 jun  9  2016 mke2fs.conf
-rw-r--r--  1 root root      529 jun 29  2017 mkinitrd.conf.sample
drwxr-xr-x  2 root root     4096 oct 23  2017 modprobe.d
drwxr-xr-x  6 root root     4096 nov  2  2017 mono
-rw-r--r--  1 root root       15 feb  8  2019 motd
drwxr-xr-x  2 root root     4096 oct 27  2017 mplayer
-rw-r--r--  1 root root      347 feb  8  2019 mtab
-rw-------  1 root users       0 oct 25  2017 mtab.fuselock
-rw-r--r--  1 root root     1914 ago  2  2013 mtools.conf
-rw-r--r--  1 root root      202 ago  4  2017 my.cnf
drwxr-xr-x  2 root root     4096 nov  7  2018 my.cnf.d
-rw-r--r--  1 root root     1702 sep  2  2017 mysqlaccess.conf
-rw-r--r--  1 root root     8343 jun 22  2016 nanorc
-rw-r--r--  1 root root      767 dic 22  2015 netconfig
-rw-r--r--  1 root root      233 abr  7  1998 networks
-rw-r--r--  1 root root     3603 abr 14  2016 nfsmount.conf
-rw-r--r--  1 root root       24 feb  9  1998 nntpserver
-rw-r--r--  1 root root     2387 feb 20  2016 nscd.conf
-rw-r--r--  1 root root     1083 jun 22  2016 nsswitch.conf
drwxr-xr-x  2 root root     4096 feb  8  2019 ntp
-rw-r--r--  1 root root     2534 sep  2 21:26 ntp.conf
-rw-r--r--  1 root root     2530 sep  2 21:26 ntp.conf.orig
drwxr-xr-x  2 root root     4096 oct 23  2017 openldap
-rw-r--r--  1 root root      327 dic 28  2015 os-release
drwxr-xr-x  2 root root     4096 ene 29  2019 pam.d
drwxr-xr-x  2 root root     4096 oct 27  2017 pango
-rw-r--r--  1 root root     1378 may  4  2017 passwd
drwxr-xr-x  2 root root     4096 oct 23  2017 pcmcia
drwxr-xr-x  3 root root     4096 oct 23  2017 pkcs11
drwxr-xr-x  5 root root     4096 oct 23  2017 pm
drwxr-xr-x  3 root root     4096 oct 23  2017 polkit-1
drwxr-xr-x  3 root root     4096 oct 23  2017 ppp
-rw-r--r--  1 root root      395 ago 19  2003 printcap
-rw-r--r--  1 root root     2164 ago  2  2013 profile
drwxr-xr-x  2 root root     4096 sep 10  2016 profile.d
-rw-r--r--  1 root root     5748 feb 10  2002 protocols
drwxr-xr-x  2 root root     4096 oct 23  2017 pulse
drwxr-xr-x  2 root root     4096 oct 23  2017 radiusclient
-rw-------  1 root root      512 feb  8  2019 random-seed
drwxr-xr-x 11 root root     4096 sep  2 21:26 rc.d
lrwxrwxrwx  1 root root       10 oct 23  2017 rc0.d -> rc.d/rc0.d
lrwxrwxrwx  1 root root       10 oct 23  2017 rc1.d -> rc.d/rc1.d
lrwxrwxrwx  1 root root       10 oct 23  2017 rc2.d -> rc.d/rc2.d
lrwxrwxrwx  1 root root       10 oct 23  2017 rc3.d -> rc.d/rc3.d
lrwxrwxrwx  1 root root       10 oct 23  2017 rc4.d -> rc.d/rc4.d
lrwxrwxrwx  1 root root       10 oct 23  2017 rc5.d -> rc.d/rc5.d
lrwxrwxrwx  1 root root       10 oct 23  2017 rc6.d -> rc.d/rc6.d
drwxr-xr-x  2 root root     4096 oct 23  2017 rc_keymaps
-rw-r--r--  1 root root     6198 abr 18  2016 rc_maps.cfg
-rw-r--r--  1 root root       87 feb  8  2019 resolv.conf
lrwxrwxrwx  1 root root       16 oct 23  2017 rmt -> /usr/libexec/rmt
-rw-r--r--  1 root root     1634 ago 10  2017 rpc
-rw-r--r--  1 root root        5 oct 23  2017 salix-edition
-rw-r--r--  1 root root       12 ago  8  2016 salix-update-notifier.conf
drwxr-xr-x  2 root root     4096 dic 29  2017 salixtools
drwxr-xr-x  2 root root     4096 nov 30  2018 samba
drwxr-xr-x  3 root root     4096 oct 23  2017 sane.d
drwxr-xr-x  2 root root     4096 mar  5  2018 sasl2
drwxr-xr-x  4 root root     4096 dic  3  2017 sbopkg
drwxr-xr-x  9 root root     4096 ene 29  2019 schroot
-rw-r--r--  1 root root     3302 ago 23  2016 screenrc
-rw-r--r--  1 root root      365 jun 12  2000 securetty
drwxr-xr-x  2 root root     4096 nov 23  2015 sensors.d
-rw-r--r--  1 root root    10215 nov 23  2015 sensors3.conf
-rw-r--r--  1 root root     2948 dic 11  2015 serial.conf
-rw-r--r--  1 root root    83348 feb  6  2010 services
-rw-r-----  1 root root      680 may  4  2017 shadow
-rw-------  1 root root      580 mar 26  2016 shadow-
-rwxr-xr-x  1 root root     1686 jun 14  2016 shell-colors
-rw-r--r--  1 root root       37 oct 23  2017 shells
drwxr-xr-x  7 root root     4096 oct 23  2017 skel
-rw-r--r--  1 root root       15 dic 28  2015 slackware-version
drwxr-xr-x  2 root root     4096 sep  2 21:26 slapt-get
drwxr-xr-x  2 root root     4096 oct 23  2017 slkbuild
-rw-r--r--  1 root root     1437 mar 23  2015 slsh.rc
-rw-r--r--  1 root root     6699 jun  7  2016 smartd.conf
drwxr-xr-x  2 root root     4096 jun  7  2016 smartd_warning.d
-rwxr-xr-x  1 root root     5847 jun  7  2016 smartd_warning.sh
drwxr-xr-x  2 root root     4096 oct 23  2017 snmp
drwxr-xr-x  3 root root     4096 oct 25  2017 sound
-rw-r--r--  1 root root       68 ene 26  2019 sourcery.conf
drwxr-xr-x  2 root root     4096 sep  2 21:26 ssh
drwxr-xr-x  5 root root     4096 nov 23  2018 ssl
-r--r-----  1 root root     3174 mar 25  2016 sudoers
drwxr-x---  2 root root     4096 oct 23  2017 sudoers.d
-r--r-----  1 root root     3174 jun  1  2017 sudoers.dist
drwxr-xr-x  2 root root     4096 mar  5  2018 sysctl.d
-rw-r--r--  1 root root     1573 jun 29  2016 syslog.conf
drwxr-xr-x  2 root root     4096 oct 23  2017 sysstat
-rw-r--r--  1 root root     8969 feb 16  2004 termcap
-rw-r--r--  1 root root   706385 mar  3  2000 termcap-BSD
-rw-r--r--  1 root root     8969 feb 16  2004 termcap-Linux
drwxr-xr-x  5 root root     4096 feb  8  2019 udev
drwxr-xr-x  2 root root     4096 nov 19  2015 udisks2
-rw-r--r--  1 root root      228 jun 30  2009 updatedb.conf
-rw-r--r--  1 root root     1018 dic 15  2015 usb_modeswitch.conf
drwxr-xr-x  2 root root     4096 dic 15  2015 usb_modeswitch.d
drwxr-xr-x  2 root root     4096 oct  7  2018 vbox
-rw-r--r--  1 root root       51 sep  1  2015 vdpau_wrapper.cfg
drwxr-xr-x  2 root root     4096 oct 23  2017 vga
-rw-r--r--  1 root root     4945 jun 13  2016 wgetrc
-rw-------  1 root root       65 abr 18  2016 wpa_supplicant.conf
-rw-r--r--  1 root root     4491 oct 23  2015 xboard.conf
drwxr-xr-x  8 root root     4096 oct 23  2017 xdg
drwxr-xr-x  2 root root     4096 oct 25  2017 xrdb
galmei
Posts: 166
Joined: 1. Jun 2018, 21:54

Re: Two /etc directories

Post by galmei »

Van_Vinkle wrote: 30. Sep 2022, 13:27 (A ls-listing)
skipted some lines. :D

Not bad this listing, Van_Vinkle,
all newer ones are from 02 September 2022; except for the empty etc2.txt file from 30 September 2022 11:37 AM.
All the ansers are really old so far.

Why not sudo ls -Rfltc --author of /etc and of /tmp, if you are sure not to harm yourself by doing so?
Does anyone have a better ls option list?

The introductory message is dated 30 Sep 2022, 15:27. Not that I'm falling for something old again.
User avatar
laprjns
Salix Warrior
Posts: 1105
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: Two /etc directories

Post by laprjns »

Yikes, my guess is obviously wrong! That looks like a complete copy of /etc. There is no /etc/etc directory in the Linux file system structure, so I would consider simply removing the /etc/etc directory and all its files.
“Don’t you see that the whole aim of Newspeak is to narrow the range of thought?"
galmei
Posts: 166
Joined: 1. Jun 2018, 21:54

Re: Two /etc directories

Post by galmei »

laprjns wrote: 30. Sep 2022, 15:42 There is no /etc/etc directory in the Linux file system structure, so I would consider simply removing the /etc/etc directory and all its files.
Can be manufactured, I think. Could there be a ring structure? Maybe something incorrectly mounted?

Van_Vinkle claims but he has /etc/etc.
It should show the root directory and then /etc.
User avatar
Van_Vinkle
Donor
Posts: 157
Joined: 25. Oct 2012, 17:39

Re: Two /etc directories

Post by Van_Vinkle »

laprjns wrote: 30. Sep 2022, 15:42 ... so I would consider simply removing the /etc/etc directory and all its files.
I've done and all is right, which confirms /etc/etc was a duplicity.
The system starts well and the small problems which I had are not present again. At least at the moment.

Thanks for your support.
Post Reply