Questions tagged [etc]
Questions about files beneath `/etc`: How to handle them, how they are important, how to make backups, how to find important information.
42
questions with no upvoted or accepted answers
3
votes
0
answers
1k
views
Localhost port aliased
I wanted to use /etc/hosts to define "aliases" for multiple services localhosted like:
127.0.0.1 localhost
127.0.0.1:8080 machin
127.0.0.1:8081 truc
But it doesn't seem to work, surely because /...
2
votes
1
answer
188
views
How to configure two Epson scanners on my PC (18.04)
I want to configure a second epson scanner device on my PC.
Does anybody know the format of required lines in imagescan.conf (epson scanner interface configuration - V3)?
My first scanner, a Epson ...
2
votes
1
answer
455
views
/etc/gdm3/Prime and /etc/gdm3/PrimeOff in ubuntu 18.04
When are these files executed and what's their use?
2
votes
0
answers
59
views
Revert system fie premissions
I have mistakely changed the permission of the entire etc directory to 777.
Now I'm getting frequent errors like ... is world writable!
Is there a way to revert back to the default permission?
...
1
vote
0
answers
65
views
Move from booted RAID to single drive
Have Ubuntu 22.04 server installed on RAID5. It boots from /. I'd like to move it to a new SSD single drive though. My thoughts to do this is:
Make a backup of / with some software on backup ...
1
vote
0
answers
768
views
"/etc" directory is missing or corrupted in Ubuntu 20.04 LTS
Hello fellows Ubuntu users ! I hope this is not a duplicate but I need help on my computer. Since I switched from Kubuntu to Ubuntu (both 20.04 LTS), I keep having issues with this computer. I thought ...
1
vote
0
answers
96
views
not able to sync from server to server to /etc/letsencrypt location
I am making a cron job on my server node that uses haproxy base concated cert file from letsencrypt.
however when I am at home I have same dns pointing to the home server which is actually hosting the ...
1
vote
0
answers
162
views
Why does default-string appear after hostname in etc/hosts?
Referencing: This question
The author is asking how to change hostname when it includes the appendage ´default-string´,
If root is required to change the file in the path etc/hosts should this be ...
1
vote
2
answers
3k
views
Error found while loading /etc/profile: /etc/profile.d/01-locale-fix.sh: line 2: /usr/bin/locale-check: No such file or directory
I'm a newbie, 3 months into Ubuntu, running 20.04 from 18.04 and 19.10.
1
vote
0
answers
141
views
Why shutdown button only works when HDMI monitor is connected
It sounds weird, but I configured my Ubuntu 18.04-4 LTS to shutdown immediately when I press the power button but it works fine ONLY when the HDMI monitor is connected.
If I disconnect the monitor (I ...
1
vote
1
answer
48
views
logrotate does not produce any output
I set up a logrotate configuration file containing containing two entries. the file contains the following:
/var/www/designer-24.com/var/log/* {
daily
missingok
rotate 7
dateext
...
1
vote
0
answers
469
views
change /etc/group folder location
I'm using docker with ubuntu and I need to mount
/etc/group
/etc/shadow
/etc/gshadow
/etc/passwd
inside an external volume, in order to avoid the password loosing each time I've to rebuild the ...
1
vote
1
answer
477
views
Which /etc/pam.d file for a regular terminal?
I have edited /etc/security/limits.conf to set the ulimit rtprio permanently. If I ssh to localhost or open a shell with su it works fine, but if I just log in to Ubuntu (16.04) and open a Gnome ...
1
vote
0
answers
346
views
Ubuntu 16.04 run python script when login screen is displayed (rc.local and lightdm not working)
I want to run this command when the login screen that prompts for your password is displayed: python ~/blabla/unlock.py &. I've tried using both lightdm and rc.local to no avail. Any help is ...
1
vote
1
answer
275
views
Change the color of the text that appears at the beginning of startup
I would like to know how to make the "OK" in "[ OK ]" green, like there is displayed at the startup of OpenSuse:
Starting xxxxxxxxxx [ OK ] <- Green Color
Starting xxxxxxxxxx [ OK ] <- ...
1
vote
1
answer
150
views
How can I backup the whole system status (not documents)?
I want to backup my system status, like
Installed Packeges
What's on my sidebar
Grub Settings
Kernel...
in order to restore it in case of system crash.
I don't care about my document, music, files ...
1
vote
1
answer
1k
views
ubuntu 14.04 won't boot: run-init: /etc/init: Permission denied
I think something I installed caused this. When I try booting this is what happens:
run-init: /sbin/init: No such file or directory
Target filesystem doesn't have requested /sbin/init.
run-init: /etc/...
0
votes
0
answers
29
views
./etc/opt/OS is taking the 49GB of my space while it's not a dir
du -cha --max-depth=1 /etc/opt/OS | grep -E "M|G"
49G /etc/opt/OS
49G total
root:/etc/opt# cd /etc/opt/OS
bash: cd: /etc/opt/OS: Not a directory
root:/etc/opt# dir
OS
what is the ...
0
votes
0
answers
179
views
/etc files security/hardening (sudo)
On Ubuntu 22.04, is that possible to deny ALL /etc files modifications and grant ONLY specific file(s) running as sudo? ex:
sudo text-mode-editor-filtered-path /etc/hostname
If /etc/hostname absolute ...
0
votes
0
answers
487
views
/etc setting to ping as non-root freely
Since some not long time ping stopped working as non-root (I'm not sure if it distro-wide or maybe it is my custom kernel). The ping is fixed by this command:
sysctl -w net.ipv4.ping_group_range="...
0
votes
1
answer
1k
views
Reset the printing system
To debug some printing problems (printing through the usual printing dialog), I would like to reset the printing system to its initial state, cleanly removing all automatically and "manually"...
0
votes
1
answer
282
views
deleted /etc/environment file by accident
I deleted the /etc/environment file by accident. Is it important? What does it do? How can I recover it?
I saw another post saying most of the time the file has the same generic line:
PATH="/usr/...
0
votes
0
answers
256
views
Ubuntu 20.04 often freezes before login. Error with /etc/profile
I am quite new to Ubuntu. For a month, my system has frozen 2 out of every 3 times when it reached the login screen.
Dual boot with GRUB was fine. Keyboard was responsive and I could switch between ...
0
votes
0
answers
122
views
issued certificated has expired
I have download the code from GitHub and tried to build the project, but receive the following error:
issued certificate expired
The same project already exists on the system and no error is thrown.
...
0
votes
0
answers
799
views
How can I get a list of files that I modified/added in /etc and other paths outside of the home folder?
Over the years, I've been making tweaks to my Ubuntu system, such as adding files to /etc, to customize it. I now want to do a fresh re-installation of Ubuntu, and I want to capture all of these ...
0
votes
0
answers
131
views
There is something wrong with this file in dispatcher.d? My wireless connections are insanely instable
# strings 01-ifupdown:
#!/bin/sh -e
# Script to dispatch NetworkManager events
# Runs ifupdown scripts when NetworkManager fiddles with interfaces.
# See NetworkManager(8) for further documentation of ...
0
votes
0
answers
446
views
/etc/profile not sourced on ubuntu 20.10
I am a newbie on ubuntu. I have used CentOS for several years but change to Ubuntu. I install ubuntu 20.10 desktop on virtual machine and oracle jdk and anaconda 2020-12 on it. And I set JAVA_HOME and ...
0
votes
0
answers
810
views
Why my messages in /etc/motd are not showing?
My welcome message is not showing, how do I check if it is enabled or disabled
0
votes
1
answer
133
views
problems with my /etc/profile
I am a rookie in ubuntu, I tried to install java but I think it was installed yet (I didn't check it before, sorry), now an error pops up appears in my screen every time I log in
/etc/profile: line 28:...
0
votes
0
answers
205
views
Core18: Configure /etc/issue and /etc/motd in custom image
I'd like to give users instructions to log into a web interface via /etc/issue when installing my image, however, the root directory is read only in Ubuntu Core. Is there a clever way this can be done ...
0
votes
1
answer
536
views
What is causing parsing error in my /etc/fstab
I am trying to mount Google Drive, but I am getting the following error:
mount: /etc/fstab: parse error at line 12 -- ignored
mount: /home/kao/Google Drive: can't find in /etc/fstab.
The line is ...
0
votes
0
answers
1k
views
Shadow File Permissions
I have some issues with files /etc/passwd and /etc/shadow. Both of them are without permissions.
And I don't know how this happened or why. Basically I can't edit/remove these files or change ...
0
votes
1
answer
564
views
Error found when loading /etc/profile [mariadb,mysql]
Booting to Ubuntu 19.04 I get black screen (frozen and not able to press the OK button) with this error message popup:
Error found when loading /etc/profile
find:'/usr/lib/mysql/plugin/...
0
votes
1
answer
197
views
how to add persistent route on a container
Since up route add [-net|-host] / gw dev going into cd /etc/network/interfaces doesn't work.
How can i add persistent routes so the route is still there when it boots. I was told /etc/systemd/...
0
votes
1
answer
106
views
Update /etc/crontab to quit a process as root every other minute during working hours
How can i update /etc/crontab to quit a process as root every other minute during working hours, as in this case is 0800-1600, monday-saturday. How can I also allow the same process to be active ...
0
votes
0
answers
954
views
/etc/environment not work
I declare PATH="/usr/local/anaconda2/bin:/mnt/code/tool:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" in /etc/environment.
But when I re-login,
$ echo $...
0
votes
1
answer
2k
views
/etc/hosts configuration error , ping not working
I am newbie to ubuntu plus kerberos , trying to configure kerberos in my vm ubuntu by i am not able to pass the step 2 in configuring hosts .below are the files. i am in the process of learning so ...
0
votes
1
answer
1k
views
autofs is not able to mount the remote folder
Hi I am trying to automount remote file system using autofs. For this I installed autofs
% sudo apt-get install cifs-utils autofs
Then I edited /etc/auto.master to have the following line:
/ufs /...
0
votes
1
answer
444
views
Where is the source file for commands in /etc/init.d
I am completely new to ubuntu and all commands. I can see list of things inside etc/init.d.
I have hadoop-hdfs-namenode in my /etc/init.d. I want to edit the source file of that command so that i can ...
0
votes
1
answer
144
views
Prevent package manager recreating files in /etc/fonts/conf.d/
I use a bitmap font for my terminal windows. In order for this to work, I need to enable bitmap fonts. In /etc/fonts/conf.d/ there's a symlink called 70-no-bitmaps.conf to the matching configuration ...
0
votes
1
answer
299
views
Brightness Save on Reboot
I have a problem where the brightness does not save after a reboot on 14.04 LTS, but I had the same problem on 12.04 LTS (before I broke the system). Before you say this is a duplicate of a million ...
-2
votes
1
answer
217
views
/ect/hosts file error
I am having some issues while running apt-get from my command line. I looked into some answers in askubuntu and found that we have to edit /etc/hosts file. The only entries present in that were
more /...