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
10 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
19 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
38 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
24 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
23 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
28 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
17 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
125 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
63 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
0answers
131 views

modprobe of nvidia driver for GPU not loading at boot

Goodmorning AU- Problem is exactly as described above; OS: Ubuntu 14.04 Card: GTX 980M Driver: 3.43 My GPU computations with caffe don't work right on boot, it requires a sudo modprobe ...
0
votes
1answer
233 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
63 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
54 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
378 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
39 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 ...
0
votes
1answer
44 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
33 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
0answers
76 views

Where are groups in /etc/group documented?

I am searching the web but I cannot find where the various groups in /etc/group are documented, what they are for, etc (on a Debian/Ubuntu system, at least). What are the implications of adding ...
0
votes
0answers
57 views

Network interface

I am having a problem with my network interface in Ubuntu 12.04 LTS. When I boot up, I always get a "booting up without full network configuratio" and I will not be able to connect. I have changed ...
0
votes
1answer
107 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
0answers
581 views

Using OverlayFS to enable writing on a read only /etc

Is it a terribly bad idea to create a union mount, using OverlayFS, on top of /etc? I'm aiming to set up a system whereby a read-only root filesystem is installed on an SD card, with writeable areas ...
1
vote
2answers
1k 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
240 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
69 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
95 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
42 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?
11
votes
1answer
3k 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
50 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
657 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
312 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
73 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
208 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
74 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 ...
3
votes
2answers
4k 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
6k 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 ...
6
votes
1answer
3k 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 ...
1
vote
3answers
5k 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
552 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
807 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
429 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 ...
-1
votes
1answer
93 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 ...
1
vote
1answer
47 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 ...
2
votes
3answers
3k 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?
0
votes
1answer
143 views

Why do I need administrative privileges to use chsh?

I was working on a Ubuntu system where I did not have administrative privileges, and I couldn't change shells (from tcsh to bash) using chsh. I solved the problem writing in the .tcshrc to open bash. ...
1
vote
2answers
703 views

No files in /etc/skel/ ; Can't restore .bashrc

I recently messed up my .bashrc file, which I mentioned in this question: Problem with installing Android developer files on Eclipse - messed up something with .bashrc, and I can't find a way to ...
0
votes
3answers
155 views

How do I see what PPA or PPAs are installed or in use

Sometimes I install good guy PPAs because someone on askubuntu says to use add-apt-repository . Later I wonder, where have they gone? Where can I find a list of Personal Package Archives that are ...
1
vote
0answers
115 views

Localhost port aliased

I wanted to use /etc/hosts to define "aliases" for multiple services localhosted like: 127.0.0.1 localhost 127.0.0.1:8080 machin 127.0.0.1:8081 truc But it doesn't seem to work, surely because ...
1
vote
1answer
128 views

Change the color of the text that appears at the beginning of startup

I would like to know how to make the "OK" in "[ OK ]" green, like there is displayed at the startup of OpenSuse: Starting xxxxxxxxxx [ OK ] <- Green Color Starting xxxxxxxxxx [ OK ] <- ...
4
votes
1answer
139 views

Keeping /etc folder on a remote server

I have etckeeper with default configuration (bazaar as VCS). I want to keep this repository on the remote server (for example on Amazon EC2 or, if possible, on Dropbox/Box.net/Ubuntu One). I tried to ...