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
4 votes
1 answer
863 views

sudo: /etc/sudo.conf is group writable

I've made a mistake. List of commands that I typed: sudo usermod -a -G root erp sudo chmod g+w /etc setfacl -R -m u:erp:rwx /etc Then ssh.service of the virtual machine stopped working and when I ...
dip chit's user avatar
0 votes
2 answers
1k views

/etc/sudoers is world writable in linux ssh

I tried everything but nothing works. sudo is not working because it says: /etc/sudoers is world writable Can't login as the root user even if I typed the command sudo -i chmod: changing permissions ...
Jeff's user avatar
  • 11
0 votes
1 answer
237 views

How to make permanent changes to /etc/sudoers

I'm trying to setup a Jenkins job that need to run an executable file under sudo I do sudo nano /etc/sudoers add jenkins ALL=(ALL) NOPASSWD:ALL at the end of file CTRL + X and confirm file save ...
JaSON's user avatar
  • 123
0 votes
0 answers
29 views

./etc/opt/OS is taking the 49GB of my space while it's not a dir

du -cha --max-depth=1 /etc/opt/OS | grep -E "M|G" 49G /etc/opt/OS 49G total root:/etc/opt# cd /etc/opt/OS bash: cd: /etc/opt/OS: Not a directory root:/etc/opt# dir OS what is the ...
Spong my bob's user avatar
0 votes
0 answers
179 views

/etc files security/hardening (sudo)

On Ubuntu 22.04, is that possible to deny ALL /etc files modifications and grant ONLY specific file(s) running as sudo? ex: sudo text-mode-editor-filtered-path /etc/hostname If /etc/hostname absolute ...
Luiz Carlos's user avatar
0 votes
0 answers
488 views

/etc setting to ping as non-root freely

Since some not long time ping stopped working as non-root (I'm not sure if it distro-wide or maybe it is my custom kernel). The ping is fixed by this command: sysctl -w net.ipv4.ping_group_range="...
midenok's user avatar
  • 792
1 vote
0 answers
65 views

Move from booted RAID to single drive

Have Ubuntu 22.04 server installed on RAID5. It boots from /. I'd like to move it to a new SSD single drive though. My thoughts to do this is: Make a backup of / with some software on backup ...
Shannon Saylors's user avatar
0 votes
1 answer
1k views

Reset the printing system

To debug some printing problems (printing through the usual printing dialog), I would like to reset the printing system to its initial state, cleanly removing all automatically and "manually"...
Alexey's user avatar
  • 763
0 votes
1 answer
5k views

Ubuntu 22.04 - error in /etc/apt/sources.list [duplicate]

After upgrading from 20.04 LTS to 22.04 There seems to be something wrong with my etc/apt/sources. When doing the sudo apt-get update I get a whole list of errors. I have googled but I have not found ...
Kornelis's user avatar
0 votes
1 answer
282 views

deleted /etc/environment file by accident

I deleted the /etc/environment file by accident. Is it important? What does it do? How can I recover it? I saw another post saying most of the time the file has the same generic line: PATH="/usr/...
EllistonV's user avatar
0 votes
0 answers
256 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 ...
hwa-le's user avatar
  • 1
0 votes
0 answers
122 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. ...
vignesh's user avatar
-1 votes
1 answer
62 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......
Nikhil singh's user avatar
1 vote
0 answers
768 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 ...
UnFearHQ's user avatar
1 vote
0 answers
2k 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 <<< ...
searcher__dm01's user avatar
0 votes
0 answers
800 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 ...
lord_nimon's user avatar
1 vote
2 answers
614 views

bilibop-lockfs is disabled

when starting my machine I got this message: bilibop-lockfs is disabled How to enable it ?
0xy's user avatar
  • 15
1 vote
0 answers
96 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 ...
Chang Zhao's user avatar
0 votes
1 answer
549 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 ...
tommy_shelby's user avatar
0 votes
1 answer
3k 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 ...
a a's user avatar
  • 3
0 votes
0 answers
131 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 ...
PMF's user avatar
  • 53
-4 votes
1 answer
2k 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
bir's user avatar
  • 1
0 votes
1 answer
164 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 ...
hanugm's user avatar
  • 333
0 votes
1 answer
878 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/...
700 Software's user avatar
  • 2,267
0 votes
1 answer
672 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 ...
Joseph Marcel's user avatar
1 vote
1 answer
14k 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.
Mr.Robot's user avatar
0 votes
2 answers
435 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@<...
cheryllium's user avatar
0 votes
0 answers
446 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 ...
Joseph Hwang's user avatar
1 vote
0 answers
162 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 ...
XJMZX's user avatar
  • 69
0 votes
1 answer
657 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-_-0's user avatar
  • 101
0 votes
2 answers
1k 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 ...
Yuri Sucupira's user avatar
0 votes
2 answers
16k 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 ...
Rajdeep21's user avatar
0 votes
0 answers
810 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
130 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.
X.0A's user avatar
  • 1
0 votes
1 answer
133 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:...
Hortensia's user avatar
2 votes
2 answers
1k 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"?
bob123469420's user avatar
1 vote
2 answers
5k 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 ...
cjm's user avatar
  • 49
2 votes
1 answer
188 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 ...
user1108549's user avatar
0 votes
1 answer
225 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: #...
mathway's user avatar
  • 1,694
2 votes
1 answer
310 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 ...
raghu ram's user avatar
1 vote
2 answers
3k 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.
kik's user avatar
  • 11
0 votes
0 answers
205 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 ...
Will Nilges's user avatar
1 vote
0 answers
141 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 ...
Marcus Barnet's user avatar
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 ...
Julien20's user avatar
0 votes
1 answer
536 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 ...
Kaoprise Sales's user avatar
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 ...
Nolan Ganz's user avatar
0 votes
1 answer
564 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/...
Amir-Mousavi's user avatar
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?
frankenstein's user avatar
0 votes
1 answer
155 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. ...
nsn's user avatar
  • 181
0 votes
1 answer
197 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/...
Miguel Zapata's user avatar