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
17 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 ...
0
votes
1answer
159 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-...
5
votes
1answer
479 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
56 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
2answers
105 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
176 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
40 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
56 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
97 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
160 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
108 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
53 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
125 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
817 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/...
4
votes
1answer
243 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 ...
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
216 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 ...
5
votes
3answers
4k views

After modifying /etc/hosts which service is needed to be restarted in ubuntu

After modifying "/etc/hosts" which service is needed to be restarted in ubuntu !
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.
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 ...
0
votes
1answer
60 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....
3
votes
2answers
43 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
277 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
142 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 ...
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 ...
0
votes
1answer
194 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
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 ...
1
vote
2answers
85 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 ...
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
378 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 ...
0
votes
2answers
131 views

Changed permissions, now gnome is acting unusual

I'm the kind of guy who likes to make things easy for himself, and I believe I went too far. There was a single directory right under the / directory, but I cannot recall which one at the time, and I ...
1
vote
1answer
61 views

How to understand configuration files syntax?

Now I know this is a little abstract but how does one know how do edit a config file for example /etc/systemd/logind.conf how do you know what syntax is allowed and what not?
18
votes
1answer
7k views

What is etc/alternatives used for?

What does /etc/alternatives stand for? How and why is it used? I found gnome-tex-editor in /usr/bin which is linked as follows: /usr/bin/gnome-text-editor -> /etc/alternatives/gnome-text-editor /...
1
vote
1answer
77 views

/etc/group - group on last line not usable? Is it a bug?

$ cat -net /etc/group | tail -n 3 67 vboxusers:x:127:hannu$ 68 nvidia-persistenced:x:128:$ 69 $ $ a) With the lines as shown I get the profiling (System Settings > Color > Calibrate) ...
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 ...
0
votes
1answer
890 views

Wrong Permission to /etc folder [duplicate]

I given wrong permission to the /etc folder wrongly chmod -R 777 /etc While i want to login as root it gives me error and gives the following output. How can i give the correct permission and fix ...
0
votes
2answers
191 views

I can't make any form of editions in my etc folder

Every time I try to make an edition one that is required i keep getting access denied. I wanted to edit a text file I used notepad, access denied me from saving it. I used limbra, access denied me ...
0
votes
1answer
222 views

Brightness Save on Reboot

I have a problem where the brightness does not save after a reboot on 14.04 LTS, but I had the same problem on 12.04 LTS (before I broke the system). Before you say this is a duplicate of a million ...
2
votes
1answer
138 views

vi/vim/view /etc/alternatives loop

I wanted to understand the difference between the executables vi and vim. which has led me to /usr/bin/, and there I've found the following symlinks: /usr/bin/vi -> /etc/alternatives/vi /usr/bin/...
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?