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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

Restore Error etc & var Folder

I'm trying to restore files from a backup of the etc/ folder and it came back with errors that it couldn't restore certain files. Turns out, they are all files that end with .mount, .list, & ....
user avatar
0 votes
0 answers
46 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 ...
user avatar
  • 1
0 votes
0 answers
30 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. ...
user avatar
-1 votes
1 answer
53 views

Error in etc/sudoers.d/Nikhil Kumar Singh

When I enter sudo -s or any sudo command I am getting an error like this etc/sudoers.d/Nikhil Kumar Singh syntax error near line 1... I have tried multiple things but nothing has resolved the issue......
user avatar
1 vote
0 answers
79 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 ...
user avatar
0 votes
0 answers
145 views

I edited /etc/sudoers and now I cannot use sudo anymore [duplicate]

I made the following change in the file /etc/sudoers: sudo ALL=(ALL) NOPASSWD:ALL And now I can't use sudo and can't edit /etc/sudoers anymore: /etc/sudoers: near line syntax error 31 <<< ...
user avatar
0 votes
0 answers
48 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 ...
user avatar
0 votes
0 answers
34 views

While booting up , Ubuntu 20.04 , a error message is displayed ... Ect/profile error found with respect to java

While booting in Ubuntu 20.04 lts the above dialoge pops up ... Displaying message etc/profile:JAVA: command not found... Till now I have no idea about it...so someone could please provide solution ...
user avatar
0 votes
0 answers
46 views

Disabling IPv6 leads to black screen on reboot

I tried disabling IPv6 using /etc/sysctl.conf and after a reboot I cannot get into any of the two DE that I have installed. Tried both GNOME and KDE Plasma. The SSDM login screen does show up but ...
user avatar
  • 1
1 vote
1 answer
132 views

bilibop-lockfs is disabled

when starting my machine I got this message: bilibop-lockfs is disabled How to enable it ?
user avatar
  • 15
1 vote
0 answers
49 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 ...
user avatar
0 votes
1 answer
84 views

Can't access my VPS through SSH

I just misconfigured my /etc/passwd had used this command on root login root@ubuntu:~# sh -c 'echo "nope no entry mates" > /etc/passwd' Now whenever I try to access my VPS though any ...
user avatar
0 votes
1 answer
422 views

Where is the apache2 directory on Ubuntu 20.04?

In order to activate the Basic Auth I installed apache2-utils: sudo apt-get update -y sudo apt-get install -y apache2-utils but I can't find the /etc/apache2 directory. I uninstalled and reinstalled ...
user avatar
  • 3
0 votes
0 answers
47 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 ...
user avatar
  • 33
-3 votes
1 answer
698 views

Display the username and passwords fetched from etc/passwd and etc/shadow files in a single file using cut and paste commands [closed]

i want username and password fetched from etc/passwd and etc/shadow files in a single file using cut and paste commands
user avatar
  • 1
0 votes
1 answer
83 views

no lpr or lprng file in /etc/int.d/

My printer is behaving randomly except for the test page. It always works well on test page. Sometimes it works well on all applications. Sometimes it works on Chrome, chromium, but not on Firefox and ...
user avatar
  • 311
0 votes
1 answer
286 views

Simple /etc/rc3.d startup script is not invoked?

I'm running Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-73-generic x86_64) simple install from DigitalOcean and have installed packages, etc. Notice this startup test script: bryan@db:~$ ls -lh /etc/rc3.d/...
user avatar
  • 2,067
0 votes
1 answer
327 views

This configuration file is essential to DNS resolution?

# /etc/nsswitch.conf # # Example configuration of GNU Name Service Switch functionality. # If you have the `glibc-doc-reference' and `info' packages installed, try: # `info libc "Name Service ...
user avatar
0 votes
1 answer
3k views

How to permanently save the content of /etc/resolv.conf

As I mentioned in the title, ctrl+s doesn't permanently save the content of that file, if I rebooted my machine I lost all the configuration I did in there, an help, please.
user avatar
0 votes
2 answers
101 views

Why did adding read permissions recursively to /etc break ssh?

For reasons I am too embarrassed to share, I ran this command as root on a remote server: chmod a+r -R /etc Once I logged out of the SSH session, I was not able to SSH back in: $ ssh myusername@<...
user avatar
0 votes
0 answers
118 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 ...
user avatar
1 vote
0 answers
26 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 ...
user avatar
  • 69
0 votes
0 answers
274 views

set virtual memory limit permanently

I need to keep my remote machine from swapping (will not respond to ssh anymore). Therefore I set ulimit -Sv 300000; ulimit -Hv 300000. It is laborious to do this manually, so I want to set it ...
user avatar
  • 101
0 votes
2 answers
471 views

How can I get an exact copy of Ubuntu's default /etc/crontab file from any official (local or remote) repository? [duplicate]

Long story short: I accidentally deleted the default content that the 64-bit Ubuntu 20.04 installer had put inside of /etc/crontab during Ubuntu's installation on my computer, so now I'm trying to ...
user avatar
0 votes
2 answers
6k views

cannot find /etc/proxychains.conf after installing proxychains

I downloaded proxychains on ubuntu 20.04 recently using sudo apt install proxychains Now for configuring the proxy addresses, I cannot find the /etc/proxychains.conf file. What to do now? Any ...
user avatar
0 votes
0 answers
483 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
user avatar
0 votes
0 answers
99 views

E: Type '<!DOCTYPE' is not known on line 1 in source list /etc/apt/sources.list.d/winehq.list E: The list of sources could not be read [duplicate]

line 1 does not contain anything I have checked this by using sudo gedit /etc/apt/sources.list command. Got this error during repository update.
user avatar
  • 1
0 votes
1 answer
42 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:...
user avatar
1 vote
2 answers
159 views

Why is there /etc and ~/.config? Why is the global config called "etc" yet the user's config stuff is called ".config"?

Why is there /etc and ~/.config? Why is the global config called "etc" yet the user's config stuff is called ".config"?
user avatar
0 votes
2 answers
2k views

How to revert damage done by editing /etc/os-release

currently running Ubuntu 20.04.1 LTS. I changed the /etc/os-release file to match that of an older version to fool a program I was trying to install. While the file was changed Ubuntu installed some ...
user avatar
  • 19
2 votes
1 answer
135 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 ...
user avatar
0 votes
1 answer
108 views

Meaning of words in /etc/login.defs

Community! After printing /etc/login.defs, I've encountered such magic numbers like #290803 and #298773. I guess they refer some documentation about security risks, but where I can find it? Fragment: #...
user avatar
  • 1,447
2 votes
1 answer
182 views

I am unable to close octave [duplicate]

I had a problem with installing Octave. Now I am unable to close it once it is opened. And I am unable to shutdown the computer. What path should I set, what /etc/environment should I set? I had used ...
user avatar
1 vote
2 answers
2k 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.
user avatar
  • 11
0 votes
0 answers
77 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 ...
user avatar
1 vote
0 answers
58 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 ...
user avatar
0 votes
1 answer
83 views

Stuck in emergency mod, I tried something to get out, it get worse

edit : Sorry if I wasn't clear, I will try my best to be understable I'm STUCK in emergency mod and I did something stupid to solve my issue I edit the wrong UUID via edit/etc/fstab : I erased the ...
user avatar
0 votes
1 answer
217 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 ...
user avatar
0 votes
0 answers
544 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 ...
user avatar
0 votes
1 answer
404 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/...
user avatar
2 votes
1 answer
323 views

/etc/gdm3/Prime and /etc/gdm3/PrimeOff in ubuntu 18.04

When are these files executed and what's their use?
user avatar
0 votes
1 answer
53 views

Get notification each time someone uses apt-get install or changes files in /etc/

I manage a couple of servers where several users have sudo rights. It works like this by design. These are development servers and users need to be able to update / install software and configure it. ...
user avatar
  • 181
0 votes
1 answer
123 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/...
user avatar
0 votes
1 answer
227 views

how do I install GKSU or other program to edit as root to save changes in grub file at /etc/default to enable nomodeset bootup? [duplicate]

20 March 2019 inquiry In November I got a response to How do I fix a frozen black screen on Lubuntu startup? from karel to consult https://askubuntu.com/tags/nomodeset/info I initially opened grub ...
user avatar
0 votes
1 answer
801 views

Vundle (plugin for Vim) configuration problem

I write the following configuration in my /etc/vim/vimrc to run the Vundle plugin. Why I got this errors? Vim configuration block that I add: set nocompatible " be iMproved, ...
user avatar
38 votes
3 answers
8k views

After accidentally renaming /etc, how do I rename it back?

I'm using Ubuntu 18.04. I renamed the /etc folder to apache2. That was my greatest mistake Now I can't rename it back because I need to use sudo, but when I try I get the error sudo: unknown uid ...
user avatar
  • 533
1 vote
1 answer
3k views

Run /etc/profile.d/script.sh as root

I have script in /etc/profile.d/script.sh that contains 3 lines: ifconfig ens5f5 down hw ether xx:xx:xx:xx:xx:xx ifconfig ensf5f I need to run this script as root when any of users log in. Here is ...
user avatar
  • 13
1 vote
1 answer
3k views

mount: can't find /home/paatubo/Desktop/vmshare in /etc/fstab [duplicate]

I made a sharefolder on vmbox. I typed sudo mount -t vboxsf /home/paatubo/Desktop/vmshare/ But it showed the following message as response: mount: can't find /home/paatubo/Desktop/vmshare in /...
user avatar
  • 9
5 votes
1 answer
23k views

Apt package update is failing for Ubuntu 18.04 LTS

sudo apt update is failing ubuntu 18.04. E: Release file for http://in.archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease is not valid yet (invalid for another 11h 10min 58s). Updates for this ...
user avatar
  • 153
15 votes
1 answer
7k views

How can I restore /etc/profile? [duplicate]

I'm working on a bash script that appends to /etc/profile but instead of appending, I accidentally wrote over it, losing all of its content. How can I restore the file? I did search here but being ...
user avatar
  • 353