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
34 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
60 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
0answers
10 views

I have a problem while i want to update with this comment sudo apt update [duplicate]

E: Type 'disabled' is not known on line 5 in source list /etc/apt/sources.list.d/google-chrome.list E: The list of sources could not be read. i have this error while i want to sudo apt update in ...
0
votes
1answer
46 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
89 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
108 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
0answers
16 views

Possibly messed up /etc directory

when trying to gain access to /etc I used "chmod -R a+rwx /etc" This then gave me issues in using my sudo commands saying "sudo: /etc/sudoers is world writable sudo: no valid sudoers sources found, ...
0
votes
1answer
239 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
0answers
61 views

Ubuntu 18.4.3 LTS Apache2 re-installation issues

There appears to be mis|old information regarding the purge/re-installation of Apache2 that caused me more then a day of grief Specifically, if you follow most of the Threads to do an apache2 ...
1
vote
1answer
126 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
32 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
87 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
94 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
373 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, ...
36
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
1k 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 /...
0
votes
0answers
60 views

Crontab referencing non-existent file: /etc/cron.dayly

Today I noticed that /var/spool/cron/crontabs/root line #24 was referencing a non-existent directory on my system (Ubuntu MATE 18.04.1 LTS bionic): 25 6 * * * root test -x /usr/sbin/anacron || (...
4
votes
1answer
17k 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
4k 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
90 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
526 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
3k 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
78 views

etc error in ubuntu while starting system

While installing Java I did something and now getting this error.
0
votes
3answers
4k 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
630 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
61 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
44 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 ...
1
vote
1answer
221 views

Lingering Upstart Files in Ubuntu 17.04, Are They Compatible With Systemd?

There's this /etc/init directory with many *.conf files which belong to Upstart but I've been looking in the Web to know if Systemd is compatible with Upstart. Systemd is is compatible with SysV, is ...
8
votes
3answers
7k views

Change default shell when user not in /etc/passwd

Any ideas on how can I change the shell to fish? $ sudo usermod -s /usr/bin/fish jaan usermod: user 'jaan' does not exist in /etc/passwd $ getent passwd $USER jaan:x:15466:94:Jaan Altosaar:/home/...
0
votes
1answer
54 views

I accidentally deleted the /etc/rc3.d directory on my Ubuntu 16.04 installation can someone list the contents for me?

I accidentally deleted the /etc/rc3.d directory on my Ubuntu 16.04 installation can someone list the contents for me, with ls -all so I can see the symbolic links. Thanks in advance!
1
vote
1answer
39 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 ...
2
votes
2answers
2k views

Ubuntu 16.04 lts lost administrator rights bash: /etc/profile: Permission denied

I had an issue with wifi, which is still unsolved because of the problem that happened when I was trying to solve it. I found this solution for wifi so tried it out: sudo gedit /etc/pm/config.d/...
-1
votes
1answer
139 views

Why are nameservers needed in resolv.conf? [closed]

I know what a nameserver is. But can anyone explain why nameservers need to be specified in /etc/resolv.conf?
1
vote
0answers
497 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
1answer
79 views

Ubuntu/Linux configuration file usage convention

I have been using Ubuntu Linux occasionally for some time. I know the /etc folder is for configuration files. But I have always found 2 things difficult: Find the correct configuration file to modify ...
2
votes
1answer
59 views

/etc/fstab Modification problem

This is what my file look like and every time I try to remount by typing sudo mount -o remount /tmp/mnt2 it's the same error line 13 in /etc/fstab is bad # /etc/fstab: static file system information....
2
votes
0answers
52 views

I deleted the “/etc/passwd” file and cannot log in [duplicate]

I am using Ubuntu 14.04. Unfortunately I deleted my /etc/shadow and /etc/passwd files and am not able to log in again. How can I fix this?
1
vote
0answers
313 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
1answer
453 views

Make wacom settings permanent

How to make wacom tablet settings permanent? I have these settings: ~ xsetwacom --set "Wacom Intuos PT S 2 Pad pad" button 1 "key PgDn" ~ xsetwacom --set "Wacom Intuos PT S 2 Pad pad" button 3 "key ...
9
votes
1answer
16k views

What are the default settings for '/etc/hosts' and '/etc/hostname'?

I'm using Ubuntu 16.04. I recently started learning DevOps and got a bit crazy with my /etc/hosts and /etc/hostname files. In my frantic attempt to spin up a couple of servers from my local machine I ...
0
votes
1answer
363 views

Is there any way to restore the distribution name? [duplicate]

I installed Ubuntu on my desktop years ago, and decided to add the BunsenLabs repository and install Bunsen desktop there. However there is one little thing: the package also replace the /etc/os-...
3
votes
1answer
2k views

What is a stanza in Linux context and where does the world come from?

I searched a lot to find an actual meaning of this word. I found that they are line of text in configuration files but I am not sure if they also mean something else in Linux context and outside.
11
votes
3answers
17k views

Should one use FQDN in /etc/hostname instead of hostname?

As I read in man page, it is recommended to put hostname(without domain name) to /etc/hostname. For example, host instead of host.domainsub.domaintld. But, as I know, some software relies on having ...
1
vote
1answer
333 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 ...
0
votes
1answer
324 views

Which file stores the default reboot message broadcast?

I use auto security update on my server. Afterwards, the server reboots because I use: Unattended-Upgrade: Automatic-Reboot "true"; Naturally, a reboot message is automatically sends to users who ...
0
votes
2answers
1k views

Setting PATH in /etc/environment and .bashrc has corrupted the system [duplicate]

Using Ubuntu 14.04, was trying to set simply JAVA PATH (that is where the saga began) now my system seems totally corrupted. I initially edited the PATH in etc/environment (that is where my PATH ...
3
votes
1answer
2k views

What is /etc/default/ directory called?

Runtime configs? Default init configs? Init configs? When you have to explain it someone like check /etc/default/files dude... I was asked about this and I've no idea..
1
vote
0answers
283 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 ...
0
votes
1answer
181 views

How to change my hostname in network connection [duplicate]

i want to change my hostname that appears in my router DHCP things that i already tried sudo hostname ___ also tried to change it from /etc/hostname and /etc/hosts