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
0answers
21 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/...
0
votes
1answer
31 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 ...
-2
votes
0answers
39 views

How can I change the root password?

I use this command openssl passwd (then add my new password) to change the root password and took the new one then add it in /etc/passwd between the two :: in the root line I didn't do anything else ...
1
vote
1answer
88 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.
0
votes
2answers
45 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@<...
0
votes
0answers
26 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 ...
1
vote
0answers
16 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 ...
0
votes
0answers
18 views

Can't update 20.10 W: Target source is configured multiple times [duplicate]

W: Target Sources (restricted/source/Sources) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:7 W: Target Sources (restricted/source/Sources) is configured multiple ...
0
votes
0answers
52 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 ...
0
votes
2answers
91 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 ...
0
votes
1answer
678 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 ...
0
votes
0answers
63 views

Chmod not working as expected in /etc/keepalived folder

Good afternoon, I get an error message when trying to build a VM using Vagrant and Keepalived. Configuration file '/etc/keepalived/keepalived.conf' is not a regular non-executable file When I try to ...
0
votes
0answers
116 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
0answers
58 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.
0
votes
1answer
29 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
0answers
67 views

To copy the output of cat /etc/services

I am completely new to Unix or anyother application. Need your help on the below question please. I am using a command cat /etc/services to get the ports for a Unix server. However the output / result ...
1
vote
2answers
56 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"?
1
vote
1answer
289 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 ...
2
votes
1answer
73 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 ...
0
votes
0answers
52 views

I'm accessing my phpmyadmin from two different url

I'm using Ubuntu 18.04. I recently purge and install again a LAMP and Phpmyadmin. I edited etc/Phpmyadmin/apache2.conf and commented Alias /Phpmyadmin .. to to secure my phpmyadmin but i'm still ...
0
votes
1answer
59 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: #...
2
votes
1answer
99 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 ...
0
votes
0answers
38 views

How to configure second IP bought from VPS

I recently acquired a VPS and a domain and set up a private email server. I intend to set up a small personal website running flask on a second IP address I have bought from my VPS provider. However I ...
1
vote
2answers
1k 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.
0
votes
0answers
32 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 ...
1
vote
0answers
27 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 ...
0
votes
0answers
109 views

How to fix error /etc/profile: line 33: Plus: order not found?

I recently updated the operating system to Ubuntu 20.04 LTS and I get the error: Error found when loading /etc/profile: /etc/profile: line 33: Plus: order not found (As a result the session will ...
0
votes
1answer
73 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 ...
0
votes
1answer
134 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
0answers
306 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
0answers
111 views

How can I fix this “E: Malformed line 4 in source list /etc/apt/sources.list (type) E: The list of sources could not be read.”? [duplicate]

I'm trying to install steam on my new chrome book but every tutorial I've watched on trying to fix this or on how to install steam gives me this problem. I've looked at the related question How do I ...
0
votes
1answer
357 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/...
2
votes
1answer
222 views

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

When are these files executed and what's their use?
0
votes
1answer
38 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. ...
0
votes
1answer
100 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
1answer
143 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 ...
0
votes
1answer
585 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, ...
37
votes
3answers
7k 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 ...
1
vote
1answer
2k 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 ...
1
vote
1answer
2k 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 /...
5
votes
1answer
21k 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 ...
15
votes
1answer
5k 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 ...
0
votes
1answer
94 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 ...
1
vote
2answers
709 views

Set up sudo so that a particular common user can edit /etc/fstab

How can I set up sudo so that a particular common user can edit /etc/fstab? I've thought to edit /etc/sudoers.d file to do this, but how do we edit /etc/fstab in this file?
2
votes
1answer
4k views

/etc/environment does not set JAVA_HOME

I have placed Java related info to etc/environment: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games /usr/local/jdk-9.0.1/bin" JAVA_HOME="/usr/local/jdk-...
-1
votes
1answer
93 views

etc error in ubuntu while starting system

While installing Java I did something and now getting this error.
0
votes
3answers
7k views

unable to locate etc/apt/sources.list (Ubuntu 16.04)

I'm trying to save changes to my sources.list file, but it pops up an error message: unable to locate etc/apt/sources.file I also tried using the following commands in order to update the sources....
0
votes
0answers
740 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
1answer
83 views

How I can synchronise my configuration files and store the backup on another HDD? [duplicate]

I have Ubuntu Server 16.04.3 and daily I am making some changes to configuration files in /etc. I want to synchronize these files daily and take a backup of them stored on another partition? How can ...
1
vote
0answers
46 views

Is there any difference in setting path for golang, python or java in ubuntu? [duplicate]

In some tutorials path is set in ~/.profile however in some other tutorials they use etc/path or ~/.bashrc, can you explain whats the difference and how it works in linux ubuntu. I am sorry for such a ...