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

1
vote
3answers
48 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
11 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
17 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
21 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
45 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
217 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: ...
4
votes
1answer
214 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 ...
1
vote
0answers
29 views

Language changed to German without doing anything

My system language was English but suddenly switched to German. The keyboard layout is Swiss German but until now it worked fine. Attention! Only some programs are now in German. (e.g. kate and ...
0
votes
1answer
29 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
17 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
96 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 ...
1
vote
2answers
135 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
25 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
31 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
50 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 ...
3
votes
2answers
36 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
126 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
32 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
0answers
22 views

What is safe to do while reinstalling from an almost bricked xubuntu?

Chronological order of events: Flashed, and installed play-Linux distro. see: http://play-linux.com/about; Poorly installed a non hybrid propriety driver: nvidia 349; Manage to install nvidia ...
0
votes
0answers
357 views

I can't boot: SMBus Host Controller not enabled

I'm using Ubuntu Server 14.04.2 on Hydrahost without the GUI and run on console only. I need to autologin my guest user and try to follow the answer on this page, but it turns out make my Ubuntu ...
0
votes
1answer
113 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
686 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
119 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
107 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 ...
1
vote
2answers
803 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
61 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
60 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
35 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
135 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 ...
1
vote
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
311 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
77 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
115 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
49 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?
15
votes
1answer
5k 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
66 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 > ...
1
vote
1answer
993 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
563 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
139 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
214 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
99 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 ...
4
votes
2answers
7k 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?
0
votes
3answers
10k views

how to edit lightdm.conf file and save it

hello everyone i was searching for login screens like mac and i got this one MAC OSX LOGIN SCREEN but i did everything correct and suddenly it said to edit /etc/lightdm/lightdm.conf this file ...
0
votes
2answers
22 views

Avoid initial full directory commit & rather add file to VCS just before modifying the file?

Could I put a certain file in some VCS like git/subversion/etc only "when" I am modifying it. So first I put the unmodified version & then the modified version. The desire is to put the file in ...
10
votes
1answer
5k 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 ...
2
votes
3answers
8k views

/etc/profile permission denied

I'm running an Ubuntu 12.04 LTS partition and I've recently have had issues logging in. From the GUI login screen, when I enter my username and password, it takes me right back to the login screen. ...
0
votes
3answers
931 views

cannot block site through /etc/hosts

I'm trying to block site with configuring /etc/hosts file. sudo sh -c 'echo "0.0.0.0 http://youtube.com" >> /etc/hosts' but I still can access youtube from browser(s). even I changed the ...
1
vote
1answer
1k views

recover /etc/apt/preferences.d

I’m new to Ubuntu but not so noob .. I learn fast and I have a dream to be a developer .. I break up with windows and jump into the world of Unix . So what I did is that I had the duplicate ...
1
vote
1answer
1k views

How can I prevent auto-mounting of a partition in fstab?

Previously, I prevented auto-mounting of a particular partition at boot by the following line in /etc/fstab UUID=<alphanumeric> /media/windowsHDD ntfs user,noauto 0 0 At some point in the ...
-2
votes
1answer
109 views

/ect/hosts file error

I am having some issues while running apt-get from my command line. I looked into some answers in askubuntu and found that we have to edit /etc/hosts file. The only entries present in that were more ...