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.
181
questions
0
votes
2
answers
228
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 ...
0
votes
1
answer
119
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 ...
0
votes
0
answers
28
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 ...
0
votes
0
answers
145
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 ...
0
votes
0
answers
337
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="...
1
vote
0
answers
51
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 ...
0
votes
1
answer
965
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"...
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 ...
0
votes
1
answer
206
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/...
0
votes
0
answers
227
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 ...
0
votes
0
answers
93
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.
...
-1
votes
1
answer
61
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......
1
vote
0
answers
686
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 ...
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 <<<
...
0
votes
0
answers
571
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 ...
1
vote
2
answers
488
views
bilibop-lockfs is disabled
when starting my machine I got this message:
bilibop-lockfs is disabled
How to enable it ?
1
vote
0
answers
93
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 ...
0
votes
1
answer
418
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 ...
0
votes
1
answer
2k
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 ...
0
votes
0
answers
115
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 ...
-3
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
0
votes
1
answer
142
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 ...
0
votes
1
answer
794
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
1
answer
624
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 ...
1
vote
1
answer
12k
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
2
answers
336
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
0
answers
403
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
0
answers
134
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
1
answer
566
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
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 ...
0
votes
2
answers
15k
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
0
answers
777
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
0
answers
126
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
1
answer
123
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:...
2
votes
2
answers
838
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
2
answers
4k
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
1
answer
165
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
1
answer
198
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
1
answer
286
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 ...
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.
0
votes
0
answers
197
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
0
answers
118
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
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
482
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
0
answers
946
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
524
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
430
views
/etc/gdm3/Prime and /etc/gdm3/PrimeOff in ubuntu 18.04
When are these files executed and what's their use?
0
votes
1
answer
107
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
170
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
435
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 ...