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
13 votes
3 answers
18k 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 A:/home/jaan:/bin/...
0 votes
0 answers
206 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
98 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
1 answer
542 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 ...
8 votes
2 answers
38k views

How to reset default permissions for /etc? [duplicate]

By mistake I have made permission changes for /etc. Now it's giving me the following error message: bash: /etc/bash.bashrc: Permission denied I have no name!@chandan-Inspiron-5520:~$ sudo /etc/init....
7 votes
4 answers
10k views

"Pointers" with $ Syntax in /etc/environment

Is it valid to have "pointers" in /etc/environment using $FOO syntax? Right now my /etc/environment looks like this: JAVA_HOME=/usr/lib/jvm/java-6-openjdk MAVEN_HOME=/usr/bin/apache-maven/apache-...
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
565 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
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?
6 votes
3 answers
13k views

What are the standard file permissions for the /etc directory(file)

I kinda screwed up the /etc directory by running: sudo chmod 417 /etc Leaving me unable to use sudo: sudo: can't open /etc/sudoers: permission denied. sudo: no valid sudoers sources foundm ...
1 vote
3 answers
344 views

Qemu Snappy 15.04: How to tune sysctl.conf?

I was able to start & login into Snappy Ubuntu 15.04. However, doing: sudo vi /etc/sysctl.conf is NOT permitted. How am I suppose to tune my own kernel and make changes to /etc for performance ...
3 votes
3 answers
9k views

/etc/localtime not a link

Rather fresh install of Ubuntu 14.10. Have installed Gnome Flahsback which I am currently using. Have updated Date/Time to show Day MM DD HH:MM:SS. That's about it. Due to another issue I checked ...
0 votes
1 answer
157 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
1 answer
199 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
483 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
1 answer
1k 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, ...
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 ...
0 votes
2 answers
2k 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 ...
1 vote
1 answer
4k 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
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 /...
32 votes
5 answers
64k views

Sound only works from left speaker?

After installing Ubuntu 13.04 x64, I realised that my sound wasn't working (only headphone showed up in settings). Following this guide, I manually added my Dell Studio 1740 audio hardware to: ...
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 ...
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 ...
1 vote
2 answers
1k 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
1 answer
5k 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
1 answer
138 views

etc error in ubuntu while starting system

While installing Java I did something and now getting this error.
0 votes
3 answers
13k 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
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
175 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
0 answers
61 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 ...
59 votes
1 answer
46k views

What is the purpose of /etc/default?

I've assumed /etc/default was a handy place to save the post-install/default state of configuration files so that when some poor sysadmin arrives at a new system she can quickly determine what has ...
16 votes
2 answers
49k views

How can I prevent auto-mounting of a partition in fstab?

Previously, I prevented auto-mounting of a particular partition at boot by the following line in /etc/fstab UUID=<alphanumeric> /media/windowsHDD ntfs user,noauto 0 0 At some point in the last ...
1 vote
1 answer
254 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 ...
0 votes
1 answer
497 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
1 answer
73 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
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 votes
1 answer
170 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?
2 votes
2 answers
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/...
0 votes
3 answers
46k views

How can I edit the lightdm.conf file and save it?

I was searching for login screens like mac and I got this one MAC OSX LOGIN SCREEN I did everything correctly and suddenly I was told to edit /etc/lightdm/lightdm.conf I opened the file in gedit ...
4 votes
1 answer
1k views

How to make etckeeper use the right value for git author & email with apt-get [closed]

I'm using git with etckeeper. When I use sudo git to commit changes in /etc/, GIT_AUTHOR_NAME & GIT_AUTHOR_EMAIL from my env are used (as intended). When I use sudo apt-get and changes are ...
0 votes
3 answers
4k 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 ...
0 votes
2 answers
4k views

I can't make any edits in my etc folder [duplicate]

Every time I try to edit a file in /etc I get "access denied". I tried using different text editors and nautilus and I couldn't save or change any files there. I don't understand. Am I not supposed ...
-1 votes
1 answer
4k views

No '/etc' Files Created during Apache Installation

I have installed Apache using the follow command: ./configure --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre --enable-so make sudo make install Now apache ...
9 votes
1 answer
3k views

Is there an application to manage config files in the /etc directory with version control?

I want to use version control for config files in Ubuntu server. But I found it's not easy to simply use git for the whole /etc directory, because many files don't need to be tracked and sometimes ...
0 votes
1 answer
199 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
1 answer
95 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
0 answers
61 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
1 answer
908 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-...
1 vote
0 answers
471 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 ...
2 votes
1 answer
1k 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 ...