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
1answer
10 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 ...
0
votes
0answers
15 views

Is there a database with all default configuration files for each release?

I would like to see each configuration file in /etc for all packages, so I can compare the default configuration of one Ubuntu release with the next one. I need this to find a solution for the ...
2
votes
1answer
16 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 ...
1
vote
2answers
25 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
61 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
17 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 ...
0
votes
1answer
18 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
269 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
52 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 ...
0
votes
1answer
44 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
65 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 ...
0
votes
1answer
42 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 ...
2
votes
3answers
1k views

How to recover a deleted /etc/passwd?

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
46 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
117 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
70 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 ...
0
votes
0answers
50 views

etc/config/wireless missing in my ubuntu 13.10 which i need to configure batman or olsr

I was trying to implement batman or olsr routing protocol but most of the documents say to configure etc/config/wireless file or other files which is not there in mine. Is it because i have the latest ...
1
vote
0answers
55 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
79 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 ] <- ...
0
votes
0answers
37 views

/etc/environment with UsePAM set to no

I've disabled password logins to my computer and have set usePAM no in sshd.conf. My understanding is that /etc/environment will now not be read (because PAM is disabled). Is this true and if so, ...
4
votes
1answer
75 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 ...
-1
votes
1answer
270 views

No '/etc' Files Created during Apache Installation

I have installed Apache using the follow command: ./configure --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre --enable-so make sudo make install Now ...
0
votes
0answers
141 views

Error while installing Ubuntu 12.04

While installing Ubuntu 12.04, there is a process called expanding. 60% of this process was completed but then the progress stopped. Why does this happen, abd how long will it take to complete? ...
1
vote
0answers
23 views

What is the use for /etc/default/* when daemonizing a process

I have some configuration files under /etc/default and one of them is for a service that should be started at boot so I changed the configuration file to say: START=yes But I have scripts in ...
3
votes
1answer
184 views

How to make etckeeper use the right value for git author & email with apt-get

I'm using git with etckeeper. When I use sudo git to commit changes in /etc/, GIT_AUTHOR_NAME & GIT_AUTHOR_EMAIL from my env are used (as intended). When I use sudo apt-get and changes are ...
0
votes
1answer
72 views

/etc files keep reverting after changes

My problem is when I configure a file in /etc, for instance, I made changes , with sudo,in /etc/default/l2tp-ipsec-vpn-daemon well, after restarting I noticed the changes I made are not applied ...
1
vote
2answers
171 views

How to make changes of config under /etc folder to take effect?

I'm a rookie in Ubuntu and recently trying to learn Ubuntu. Now I encountered a very serious issue that for some reasons I need to update the configuration file like httpd.conf, hosts.deny and others ...
4
votes
2answers
1k 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: ...
2
votes
1answer
38 views

What does the [DEFAULT] written in the beginning of some files indicate and mean?

I have seen this especially in /etc folder, which perhaps means it should be the default configuration? P.S.: The main reason behind asking this is, adding [DEFAULT] to the top of file renders all ...
0
votes
0answers
232 views

Directory /ETC has been moved! — Ubuntu 13.04

I made a bad move by moving my "/etc" directory to Dropbox in hopes to sync two computer enviroments. AFter moving the "/etc" directory any sudo commands responded with "Who is this UID 1000?". ...
1
vote
3answers
1k views

How to reset default permissions for /etc?

By mistake I have made permission changes for /etc. Now it's giving me the following error message: bash: /etc/bash.bashrc: Permission denied I have no name!@chandan-Inspiron-5520:~$ sudo ...
0
votes
1answer
170 views

Editing MANPATH from /etc/environment

Having installed TeX Live on my system (by downloading and running the script from TUG's website: http://www.tug.org/texlive/acquire-netinstall.html), I tried editing the MANPATH variable by adding ...
1
vote
1answer
88 views

How can I backup the whole system status (not documents)?

I want to backup my system status, like Installed Packeges What's on my sidebar Grub Settings Kernel... in order to restore it in case of system crash. I don't care about my document, music, ...
2
votes
2answers
573 views

The system does not go down

/etc/init.d/.depend.stop My Ubuntu 12.04 The system shuts down normally not get error message can't not open / etc / init.d / .depend.stop no such file of directory See picture What can ...
2
votes
1answer
395 views

unable to create `/etc/skel/.bash_logout.dpkg-new': No such file or directory

I can´t install any updates. I tried apt-get clean, apt-get install -f, dpkg --configure -a. Nothing helps. I even tried to create a file or a directory in /etc/skel - it cannot be done, even with ...
0
votes
2answers
1k 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 ...
0
votes
0answers
45 views

System wide configuration parameters in configuration files (/etc, e.g.)

I am searching for a way to use a variable-like system in configuration files from diferent aplications. For instance instead of writing my ip in sshd config file and having to change it later, I ...
5
votes
2answers
337 views

Is there an application to manage config files in the /etc folder with version control software?

I want make version control for config files in Ubuntu server. But I found out it's not easy for simply "git" whole etc folder, because so many file doesn't need to track and some time system will ...
1
vote
1answer
132 views

how to recover when /etc has been deleted on ubuntu 12.04?

I have accidentally deleted /etc. Does anybody knows how to recover from such a situation ? At least I can use ssh while the server is in rescue mode (dedicated server from ovh.com). I could ...
2
votes
1answer
61 views

How to reset config files to default, especially boot sequence

Is there a way to reset all ubuntu config files, a batch procedure?. No the local config files, I mean all /etc config files. I know how to do that one by one but that is a job for weeks or work.
3
votes
1answer
1k 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, which was a recent purchase. I have managed to install the AMD Radeon ...
5
votes
1answer
123 views

Preventing Users/Groups from accessing certain Domains

I have created a Study account which I use when doing anything school related work. It's purpose is to remove the distractions of my normal account, such as social media and news websites. I know ...
3
votes
1answer
103 views

Replace /etc after reinstallation

I reinstalled Ubuntu 12.04 after a corruption caused by a faulty operation (not much interesting but you can read about it). The old system had three partitions, one for boot, one for / and one for ...
1
vote
2answers
2k views

sudo apt-get update error ubuntu 12.04

Hi I'm new in Linux and I need your help :) Every time when i type sudo apt-get update it shows: alphaog@alphaog-HP-Pavilion-DV7:~$ sudo apt-get update E: Type 'ain' is not known on line 3 in source ...
3
votes
1answer
3k views

How to fix Xubuntu LightDM Theme after installing unity.

After successfully installing Xubuntu 12.04.1 on my laptop, I decided to install Unity. That went OK but then I realized there was no themes. So then I installed the themes and artwork, and got a ...
2
votes
1answer
582 views

Ubuntu User Accounts messed up

I need to fix Ubuntu Accounts but somehow don't really see how it could be done. The problem is: files /etc/passwd and /etc/hostname and /etc/hosts where changed. /etc/passwd After ...
1
vote
0answers
57 views

What's the best way to resolve “read permission” error when including /etc in backup? [duplicate]

Possible Duplicate: How do I open Deja Dup as root? Running Ubuntu 12.04 and using the built in Backup utility (Deja-dup) to back up /home and /etc every night. Some files in /etc fail ...
2
votes
3answers
966 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 ...
0
votes
1answer
126 views

hwclock vs rcS.d/S11hwclock.sh what is the difference between the two?

Could someone kindly explain the difference between these two files? hwclock.sh rcS.d/S11hwclock.sh I understand these files are both to do with the motherboard clock, but i dont see the ...
0
votes
1answer
1k views

Changing the permissions in root files without sudo from recovery

Hi I recently killed my etc folder by running: sudo chmod etc 417. Due to sudo being in that folder it cannot be accesed now, so I have to change the permissions back to the correct ones using the ...