Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
34 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
6k 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 ...
0
votes
1answer
275 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
380 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
39 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 || (...
2
votes
1answer
3k 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 ...
14
votes
1answer
2k 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
0answers
38 views

quota setup - not working in ubuntu

I am trying to setup quota in ubuntu, but when remounting it do not work. /dev/sda1 /home ext4 defaults,nodev,nosuid,usrquota 0 2 mount /home -o remount Error: "mount: /home not mounted or bad ...
0
votes
1answer
58 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
134 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
2k 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
65 views

etc error in ubuntu while starting system

While installing Java I did something and now getting this error.
0
votes
3answers
2k 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
360 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
33 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
40 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
209 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
3k 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
52 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
36 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
1k 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
104 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
320 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
70 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
54 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?
0
votes
0answers
306 views

File permissions of /etc/ and its subfolders shows question marks [duplicate]

I am using Ubuntu 16.04 By mistake I have changed /etc folder permissions. After I restart my PC, I am not able to access any folder in /etc/ and when I try to change see or change the permissions of ...
0
votes
0answers
544 views

no /etc/aliases found

I am currently trying to uninstall citadel server. However the screen halts everytime after the line no /etc/aliases found. and hangs. I am unable to come out of the terminal window also. enter image ...
1
vote
0answers
249 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 ...
0
votes
1answer
213 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 ...
8
votes
1answer
10k 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 ...
0
votes
1answer
182 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
909 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.
9
votes
3answers
9k 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
283 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
223 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 ...
2
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
231 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
133 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
2
votes
1answer
68 views

sudo 1.8.16 update wants to wipe out my sudo privilege?

Ran dist-upgrade today and noticed that sudo update wants to rewrite my /etc/sudoers. Upon reading the diff it seems that my sudo privilege would be removed by that update. Found related question ...
1
vote
2answers
2k views

Restore /etc/skel files

I have messed with /etc/skel files and stupidly didn't back it up! I need to restore the original files in this directory! How can I find the original files over the internet? Note: for security ...
0
votes
2answers
767 views

Script in `/etc/init` is not executed

I added script /etc/init/trackpoint.conf and it contains: description "Trackpoint-Settings" env TPDIR=/sys/devices/platform/i8042/serio1/serio2 start on filesystems # also tried on virtual-...
2
votes
1answer
5k views

Target Packages (main/binary-amd64/Packages) is configured multiple times with Ubuntu 16.04 [duplicate]

W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1 W: Target Packages (main/binary-...
5
votes
1answer
804 views

Why do some some files in /etc have a numeric prefix?

For example look in /etc/apt/apt.conf.d/ all files have a numeric prefix. What is the reason? I have seen this many times and always wonder. Is it just for the sake of ordering?
0
votes
3answers
1k views

Messed with my /etc/profile and now an error pops up every time I log in

I am fairly new to Ubuntu, and did a little more messing around than I should have. I was reading a guide on downloading the Oracle 8 JDK and it said to change the last few lines of the /etc/profile ...
8
votes
1answer
1k views

Using HID compliant mouse like device in Ubuntu

Aim: I have a whiteboard which emulates as mouse. Thus, when you click and drag on the whiteboard it should move the cursor. I want to make a whiteboard work in Ubuntu It works on windows. Device ...
0
votes
1answer
63 views

pasted “init 0” in /etc/rc.local!

I tried if this works on my friends computer and you know what happened. Please help me fix the computer executing "init 0" as root on startup.. Help me fix this and retrieve my OS back... intact... ...
0
votes
1answer
610 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
2answers
2k views

Can't cd into etc/profile, “not a directory”

I am new to Ubuntu (or any Linux distro) and I encountered a problem where I cannot cd into etc/profile. I was trying to edit the bashrc so that I could change the colours in my terminal window. I ...