Questions about files beneath `/etc`: How to handle them, how they are important, how to make backups, how to find important information.

learn more… | top users | synonyms

0
votes
0answers
16 views

Packages Required for arm64 bit kernel compilation

Hello Guys Hope you are doing good :) I am using Ubuntu 16.04 and I want to compile an arm64 kernel for my android device which is msm8916 snapdragon 410 I installed the build-essential package but ...
8
votes
3answers
6k 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: ...
0
votes
2answers
4k views

Accidentally deleted /etc/apt/apt.conf.d

I accidentally deleted the apt.conf.d folder and cant install (use the apt-get) anything =( . When I try to locate the apt.conf.d in the apt folder , its no longer there . EDIT: When I open the apt ...
5
votes
3answers
4k views
0
votes
1answer
140 views

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

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-...
0
votes
2answers
53 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 ...
5
votes
1answer
476 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
2answers
95 views

Mounting usb drive error

It is my second day on Linux. I am having difficulties mounting an USB drive. It shows this error: mount: can't find /dev/sdb1/mnt in /etc/fstab or /etc/mtab How can I get rid of this error?
8
votes
1answer
171 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
38 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
54 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
94 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 ...
0
votes
1answer
151 views

How to add 0.0.0.0 in hosts file before every domain in gedit?

When I add 0.0.0.0 i do it manually and it takes long time, how to apply in one step. for example i want block admedia.com and subdomains , i open terminal and type sudo gedit /etc/hosts, and put ...
0
votes
2answers
62 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 ...
1
vote
3answers
102 views

Moved /etc folder to another place

I moved /etc folder to another place. Now when i use sudo mv command it says: sudo: uid 1010 does not exist in the passwd file there's a solution for it? it happenned in my vps by ssh. Format isn't ...
0
votes
0answers
12 views

my /etc tree is all owned by www-data

I suddenly found my /etc tree is all owned by www-data:www-data. I changed the top directories to root:root, only to have them revert to www-data. very strange
0
votes
1answer
49 views

system-wide git settings

I would like to set git defaults for all users on my system. Where can I find the global system-wide configuration? There is no such file as /etc/gitconfig Thanks.
0
votes
0answers
24 views

`sudo su` doesn't ask for password [duplicate]

I typed sudo su in the terminal, and it changed to root without asking for a password. I also tried typing sudo apt-get upgrade and it didn't ask for a password either. When I installed Unity (1 hr ...
0
votes
1answer
123 views

autofs is not able to mount the remote folder

Hi I am trying to automount remote file system using autofs. For this I installed autofs % sudo apt-get install cifs-utils autofs Then I edited /etc/auto.master to have the following line: /ufs /...
0
votes
0answers
796 views

/etc/init.d/functions: No such file or directory

I am trying to install virtual box version 5.0 on Ubuntu 12.04.5 LTS (GNU/Linux 3.2.0-91-generic x86_64) and I am getting the following errors: /usr/lib/virtualbox/vboxdrv.sh: line 85: /etc/init.d/...
5
votes
2answers
11k views

what is difference between /etc/shadow and /etc/passwd

I think both files /etc/shadow and /etc/passwd are same? they just report some information about accounts.What is the difference betwwen them?
9
votes
1answer
6k views

How to run a script when suspending/resuming? - Sony VAIO Ubuntu 12.04

Question: How to assign a script to run when selecting the suspend option on the power menu? Context: I have a Sony VAIO laptop with an AMD Radeon graphics card. I would like to be able to disable/...
4
votes
1answer
238 views

Where to find more information about xxx.d folders?

I see various references to "custom" folders in the /etc folder, with names matching some config file, eg /etc/resolv.conf and appended with .d. Examples are resolv.conf.d or cron.d. Where can I ...
0
votes
1answer
47 views

How to reproduce “systemctl EDIT” behavior in Ubuntu LTS

Context: I'm trying to configure DNScrypt. The instructions call the command: sudo systemctl edit dnscrypt-proxy.socket The edit command for systemd was introduced in version 218. Ubuntu LTS and ...
5
votes
3answers
3k 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
1answer
59 views

How do I prevent me from changing /etc/hosts [closed]

I'm trying to fight my bad habit of wasting time on time-consuming websites such as reddit/liveleak etc. The only thing which seems to work is adding a line like this to my etc/hosts 127.0.1.1 www....
0
votes
0answers
19 views

could not save *.sh file in /etc/profile.d [duplicate]

I am trying to install Burrows-Wheeler Aligner (bwa.0.7.12), I tried installation instructions from http://lekshmideepu.blogspot.in/2013/04/install-burrows-wheeler-aligner-bwa-in.html. But I could not ...
0
votes
1answer
208 views

Restore login after modifying /etc/shadow permissions

I locked my screen for a moment and now I am unable to login back into my Ubuntu 14.04 machine, not even in a "Guest Session". After a moment of panic, I realized that I am the responsible, as I think ...
0
votes
0answers
42 views

How to password protect grub menu from changes to get into the root shell

Try to password protect through the /etc/grub.d/00_header and put in the cat lines to do so but I can still change what I want from grub.
1
vote
1answer
1k views

Perrmision denied after /etc/profile while installing Java

I am trying to install Java. I have to reload my system wide PATH from /etc/profile by typing the following command: /etc/profile And then I get the error: bash: /etc/profile: permission denied ...
20
votes
1answer
8k 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 ...
0
votes
1answer
40 views

Where are these certificates coming from? [duplicate]

On an Ubuntu 12.04 server I have a bunch of certificates listed in my /etc/ssl directory...where could these have come from? I don't remember adding them myself, do they get generated when aptitude ...
5
votes
3answers
6k 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 ...
2
votes
3answers
6k views

How to recover a deleted /etc/passwd file? [duplicate]

I deleted the /etc/passwd file and cannot login now. I don't know the root password and tried lots of passwords, but none of them worked. How can I fix this?
3
votes
2answers
42 views

Maintaining server-wide dot files in bash

Let's say I'm administering an Ubuntu setup with multiple users for my organization. We have a standard .bash_profile and .bashrc with aliases, prompt settings, PATH declarations, etc... that we want ...
1
vote
1answer
275 views

Event.d not there

Using ubuntu server 14.04.2 I'm trying to get the git daemon on my server it tells me to create an upstart script at /etc/event.d/local-git-daemon. However it seems there is no event.d in /etc. ...
3
votes
1answer
36 views

What is the “-” at the end of some files?

I find a lot of the time that files in /etc end with a -, but have another version of the file without it at the end. So what does the - mean? Is it like a ~? Or does it serve a different purpose?
0
votes
1answer
141 views

Moved /etc to home directory, now I can't boot, how do I move the directory back?

I made a dumb mistake, and moved the /etc directory from where it is. This is the error I got when I rebooted: I can't boot, so now I need to move that directory back to where it was before. How ...
2
votes
2answers
2k views

The best way to create a root filesystem, split between read only and writable

My aim is to create a system where the main parts of the root filesystem are stored on a read-only SD card, with writeable parts located on an SSD set to rw. This is to be done with a view to keeping ...
0
votes
1answer
1k views

Reset default permissions for /etc [duplicate]

I did a silly thing. I changed the permissions of my /etc folder using sudo chmod -R ugo+rw /etc After that I did some damage control using the command pkexec chmod 755 /etc Then I was able to ...
0
votes
1answer
163 views

Where is the source file for commands in /etc/init.d

I am completely new to ubuntu and all commands. I can see list of things inside etc/init.d. I have hadoop-hdfs-namenode in my /etc/init.d. I want to edit the source file of that command so that i can ...
1
vote
2answers
1k 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
1answer
189 views

etc/passwd cannot be found [closed]

I can't find the etc/passwd file on my Ubuntu computer. I know I shouldn't try to mess with it now, but when I was I couldn't find it. Yet I can still access my computer. Did they hide it in the 14....
1
vote
1answer
77 views

Sensible/correct way to edit the files provided by base-files package?

I understand the package base-files provides the Debian base system miscellaneous files such as /etc/issue, /etc/lsb-release (in the specific case of Ubuntu) or /etc/os-release. I'd like to know ...
1
vote
2answers
84 views

Number pair prefix to config files

I have noticed some config files having a prefix. E.g. Inside my /etc/php5/cli/conf.d: 05-opcache.ini 10-pdo.ini 20-curl.ini ... Could someone explain this? I am thinking something along the ...
1
vote
1answer
71 views

Is it safe to init a Mercurial repository on /etc?

My company has an external server, mostly managed by a 3rd party. Sometimes they do configuration changes but 'forgot' to tell us. I am thinking of tracking all changes to /etc. Is it safe to do hg ...
2
votes
0answers
36 views

Revert system fie premissions

I have mistakely changed the permission of the entire etc directory to 777. Now I'm getting frequent errors like ... is world writable! Is there a way to revert back to the default permission? ...
0
votes
1answer
160 views

I've changed my login by manual editing the /etc/passwd and my former password is not recognised

I've modified the /etc/passwd by changing manualy mickey to mike such as: mike:x:1000:25357:mike:/home/mickey:/bin/bash Unfortunately, when I'm trying to log as mike, my former password in not ...
0
votes
1answer
376 views

How to change hostname [duplicate]

I have updated my system's hostname in /etc/hostname file as master. I have also mapped my /etc/hosts file like <ip> master Still, when I type $ hostname, I get a different hostname. I ...
0
votes
1answer
83 views

Prevent package manager recreating files in /etc/fonts/conf.d/

I use a bitmap font for my terminal windows. In order for this to work, I need to enable bitmap fonts. In /etc/fonts/conf.d/ there's a symlink called 70-no-bitmaps.conf to the matching configuration ...