Questions tagged [etc]

/etc is the directory that holds the essential system and software configuration. Use this tag for questions on the organization of /etc or the syntax of configuration files within /etc. Don't use this tag for questions on the configuration of particular software.

Filter by
Sorted by
Tagged with
1
vote
0answers
25 views

Can ADB debugging make XAPK downloads possible?

I have just got the adb debugging method started on my chrome os for an alternate developer mode approach. However, I noticed that apks are starting to transfer into XAPKS which are a somewhat ...
0
votes
0answers
34 views

Why is the IP address lookup in /etc/hosts only sometimes work?

The '/etc/hosts' file in a Linux laptop (with LAN IP 172.17.37.21) by default contains : 127.0.1.1 Acer-Aspire-6930G When I want to reach this laptop wirelessly from a smartphone or a PC using an FTP ...
2
votes
2answers
50 views

Removed /etc folder how do I keep my data after booting

I accidently removed the whole /etc folder (rm -f /etc) please don't ask why I was in a rush. Then I panicked and restarted my computer. Now all I have is GRUB. Is there a way to recover my data? I'm ...
1
vote
1answer
110 views

Why does Kali Linux have other existing users from /etc/passwd file? I never created these users

I simply wanted to see my user that I just created in the terminal but I came across this sea of users in my existing Kali Linux vm. The command I used displayed a list of users. It started with "...
1
vote
2answers
61 views

What if I wanted /etc to be called something else?

Aside from the kernel itself, the Filesystem Hierarchy Standard is perhaps the only major feature common to all linux systems. Some obscure distributions modify it only slightly: stali, for example, ...
0
votes
0answers
40 views

umask does not change even after changing /etc/login.defs

I have read this answer: https://askubuntu.com/questions/805862/how-to-change-umask-mode-permanently, which recommend to change the file /etc/login.defs to change the umask permanently. So I change it ...
0
votes
1answer
49 views

Is it safe to hardcode /etc/ path for configurations in an application I'm contributing to?

The application I'm contributing to requires configuration files as a part of its operation. This is currently placed within the root directory of the application. If I followed the FHS, the config ...
0
votes
4answers
124 views

Is /etc/services actively used when an application binds to a port?

When an application is looking for a port to bind to, is /etc/services actively searched to ensure there are no clashes?  I.e., if a port is registered in /etc/services, is it reserved whether it’s ...
0
votes
1answer
49 views

Trying to understand the /etc/resolv.conf

I am trying to understand the entries in the /etc/resolv.conf file in linux systems. The file contains a list of keywords and values. This is an example of the contents of the /etc/resolv.conf: ...
0
votes
1answer
71 views

Error when loading /home/user_name/.profile

I was trying to install awesomeWM and after logging out i saw this message. Error when loading /home/user_name/.profile tput: No value for $TERM and no -T specified As a result the session will not ...
0
votes
1answer
58 views

What will happen if I add 1 million lines in /etc/hosts/ [duplicate]

I am trying to write a website blocker and the simplest thing I found is putting lines at the end of /etc/hosts. If I want ot have 1 million websites blocked that redirect to localhost would that slow ...
0
votes
1answer
24 views

How to display a system account with the highest user id

root:x:0:0:root:/root:/bin/bash bin:x:1:1:bin:/bin:/sbin/nologin daemon:x:2:2:daemon:/sbin:/sbin/nologin adm:x:3:4:adm:/var/adm:/sbin/nologin lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin sync:x:5:0:sync:/...
0
votes
1answer
122 views

What to do when you can't edit /etc/hosts

I need to override DNS for a few hostnames on a Linux Centos 7 machine. I do not have write access to the file, however. What can I do in this case?
0
votes
1answer
54 views

env variable in /etc/ld.so.conf

I've created a test.conf file in /etc/ld.so.conf.d/ folder with written: TEST_PATH=/path/To/My/Parent/Folder In my /etc/ld.so.conf I've added instead: $TEST_PATH/mylib1 $TEST_PATH/mylib2 $...
0
votes
2answers
150 views

Someone is locking /etc/group for a very long time - what to do?

I want to change something in /etc/group - namely, to add some user to some group. But something - I don't know what or who - has created an /etc/group.lock file. fuser /etc/group.lock gives nothing, ...
3
votes
1answer
498 views

What replaces /etc/services in openSUSE, and how

I am running openSUSE Linux, the Tumbleweed version. I discovered that it does not use an /etc/services file, though I do not know what is replacing it, or how it is done, and I do not have much ...
0
votes
1answer
59 views

Alternative to modifying /etc/hosts for dns lookup

I am a networking newb - ping cannot locate certain dns names, so I put them in /etc/hosts like this: 10.128.0.22 kafka.marathn.meso 10.128.0.31 elasticsearch.marathn.meso and then ping can find ...
-1
votes
1answer
184 views

Why systemd stopping immediatly after spawning?

I am facing issue while loading vpp.service in systemd. I have written following service. [Unit] Description=Vector Packet Processing Process After=syslog.target network.target auditd.service [...
1
vote
2answers
485 views

How can I `usermod` old users with new `/etc/skel` files?

I want to "update" old users with new /etc/skel content on Debian and Ubuntu installations. Scripting this is possible... find /home -maxdepth 1 -mindepth 1 -type d | while read homedir; do user="...
1
vote
1answer
80 views

Persisting sshd_config settings

When modifying Linux configuration files, it is often recommended to place local changes under a .d directory, e.g., /etc/sudoers.d/ or /etc/apt/sources.list.d. In my understanding this is to avoid ...
1
vote
0answers
43 views

Stuck setting up multiple network interfaces with one gateway using /etc/network/interfaces

I'm an advanced noob and I'm running into the limitations of my understanding of how to set up my network. My gateway to the internet should be 10.0.1.1, and I have 2 PCI 10ge nic cards installed to ...
4
votes
0answers
404 views

Can msmtp rewrite addresses?

I am trying to get all my system emails to be forwarded to my gmail address, using msmtp 1.8.3 and /etc/aliases on debian. It works, but I get errors from gmail. When I email root (via echo "hello ...
1
vote
1answer
556 views

Strange issue with DNS: drill works but getent hosts does not

I'm running Arch Linux ARM on a Raspberry Pi 4. I'm currently having an issue with the domain resolution. The "user space" applications including ping, web browser, etc. do not resolve hosts, although ...
1
vote
1answer
79 views

Use /etc/profile settings for passwordless user

I'm having a small issue. I have a passwordless user (jenkins) on a Unix system. This user is used by jenkins to perform some commands. Because I installed nvm on this unix system, I needed to add to /...
0
votes
1answer
2k views

vsftpd service does not start saying vsftpd.service: Main process exited, code=exited, status=2/INVALIDARGUMENT

I am configuring with Ansible a VM running Ubuntu to run this FTP server: vsftpd, however after the installation when I inspect the logs with journalctl -u vsftpd.service I see: Nov 20 17:49:58 my-vm ...
0
votes
1answer
152 views

Password Settings of AIX

esaadmin: password = * dbahx: password = ************* sysgina: password = ************* fsecbp: password = C6qoi9yK.H0So Hi All, I am trying to understand what does password = **...
1
vote
1answer
54 views

Git/etckeeper shared between systems

I've four Raspberry PiZeroW on my system running ArchLinux ARM (alarm) that I use solely as snapclient for streaming music synchronously about the house. Initially I had one PiZeroW and I used ...
1
vote
0answers
39 views

How to create user who will not be using /etc/passwd for authentication?

I want to add a user to my Ubuntu who will be authenticated using SQLite or another database. I don't want to use /etc/passwd file. How can I achieve it?
0
votes
2answers
756 views

Unable to save file in /etc/ssh/ because incorrect permissions (Linux Mint/Debian)

When I attempt to edit '/etc/ssh/sshd_config', and save the file, I get an error saying: 'Could not save the file /etc/ssh/sshd_config. You do not have the permissions necessary to save the file.. ...
1
vote
2answers
704 views

backup - can I use git to backup /etc? [duplicate]

I am using mac, and /etc is just a symlink to /private/etc, which contains hundreds of (important) configuration files, and the total size of /private/etc directory is smaller than 1 MB. Is it a good ...
1
vote
2answers
140 views

Is the .d notation for folders in /etc recommended or not?

When building a new software that will store a directory of configuration files in /etc, should the directory be named software_name.d or just software_name? I can't seem to find good style guides ...
1
vote
1answer
119 views

Find hostname of Mac OS client for NFS /etc/exports (permission denied)

I'm trying to set up an NFS server to browse files from a remote Ubuntu server on a Mac client. I'm having trouble finding out what to put as my client hostname/address in the /etc/exports entry. I ...
3
votes
1answer
1k views

Source of /etc/protocols and /etc/services?

Those files are databases which contain IP protocol number, alias and service mappings. As a user I don't usually interact with those in any direct way, but the need to create special Linux/GNU ...
-3
votes
3answers
104 views

How to display only names of the file [closed]

How to display only the names of the last 10 services listed in /etc/services?
1
vote
0answers
260 views

A more permanent change to readonly squashfs mounted /etc

I have an IP-camera with the BusyBox v1.22.1 operating system that has some accounts either without or with public known passwords that I want to change to make it more secure. I have managed to log ...
1
vote
1answer
193 views

OpenBSD: Check what files under /etc has changed in comparison to pristine base system

I'm planning on setting up a new personal OpenBSD-current system by means of installing the latest OpenBSD snapshot, and I would want it to look more or less similar to my existing OpenBSD-current ...
0
votes
1answer
839 views

What is the difference between using crontab -e and /etc/crontab [duplicate]

I wish to run stuff from startup and also trigger reboots using cron. I was using sudo crontab -e and adding commands there. The commands work apart from the reboots. The reboots do not happen all ...
1
vote
1answer
706 views

Unable to edit auto_master under macOS Mojave [closed]

I'm running macOS since several years and I have an auto_master file that contains my mounts config. On a new Macbook, I cannot edit this file which is in the /etc folder and I have the following ...
0
votes
1answer
513 views

Why does the primary group of my user show up in /etc/group?

I'm following a course about Linux and it states the following: "The primary group of a user is not mentioned in the /etc/group file." However, my primary user "timgeldof" actually does show up in ...
0
votes
1answer
249 views

MAXWEEKS on Solaris is equals to 13

I have a server where MAXWEEKS is set to 13 in etc/default/passwd. I know that this setting means that password will expire after 13 weeks. My question is if the user does NOT change the password, ...
1
vote
1answer
60 views

Is there any way of resizing /etc directory in linux machine [closed]

I have tried to create a partition name "/etc' at OS installation time and my installation was not working.When I cancel creating "/etc" directory than it worked. Though all configuration files are ...
2
votes
1answer
448 views

Whitespaces in /etc/exports

I've read the following in a website [1]: /etc/exports is very sensitive to whitespace - so the following statements are not the same: /export/dir hostname(rw,no_root_squash) /export/dir hostname (...
0
votes
1answer
925 views

/etc/bashrc overrides my settings in home .bashrc

i have the following code for my prompt in .bashrc in home dir: PS1_TIME='\033[01;31m\]\t \033[01;32m\]' PS1_USERNAME='\[\e[1;36m\]\u\e[1;37m\]@\e[1;32m\]\h\[\033[00m\]' PS1_LOCATION='\[\033[01;34m\]\...
1
vote
3answers
7k views

How to make name server address permanent in /etc/resolv.conf even after system reboot? [duplicate]

I changed nameserver in /etc/resolv.conf and after a system reboot it resets the nameserver back to what it was. I am using linux mint 19 (Cinnamon). # This file is managed by man:systemd-resolved(8)...
1
vote
1answer
443 views

user resources csh.login restrictions

I need to fix a vulnerability in a RedHat 6 server: File /etc/csh.login must exist, and must trigger an invocation of source /etc/profile.d/IBMsinit.sh. I verified file csh.login is in /etc, but I ...
4
votes
1answer
2k views

How to write an automatically sourced shell script to /etc/profile

I heard through the grapevine that files in /etc/profile will be automatically sourced by bash upon login? I tried writing something simple to /etc/profile: echo "echo 'foo'" > /etc/profile/foo....
0
votes
0answers
150 views

Shall I run a sudo-required script in some shell configuration file?

Is it a good idea to put a sudo command in a shell configuration file? I have a bash script /home/t/bin/changeCpuFreq.sh which can change my cpu frequency. The line 40 in my script is echo $1 > /...
2
votes
2answers
1k views

How to manage /etc/passwd file

Let's say I want to keep the /etc/passwd file divided into system users like admin, wheel, root etc., and by actual users all at the end. How do I do that? By creating subdirectories?
3
votes
1answer
4k views

Are http://cdn-fastly.deb.debian.org/ and deb.debian.org one and the same service?

Sometime back, I had noticed that httpredir.debian.org no longer works or works a bit weirdly. I started using cdn-fastly.debian.org . This is how my /etc/apt/sources.list is setup currently - $ cat ...
-1
votes
1answer
2k views

Account locked after adding line on /etc/passwd file

I have installed this version of Ubuntu on my laptop. └─ $ ▶ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.3 LTS Release: 16.04 Codename: ...