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

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/...
1
vote
3answers
8k 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 /etc/init....
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: ...
3
votes
1answer
2k views

What's the difference between the “group” and “group-” file?

I know what the /etc/group file is for, but I'm also seeing a /etc/group- file. What's the difference between the two? The same group names and ids appear in both files. Only the last column (users) ...
2
votes
3answers
11k 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. ...
2
votes
1answer
2k 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 ...
21
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 ...
7
votes
2answers
1k 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 ...
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-...
5
votes
1answer
477 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?
3
votes
1answer
4k 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 ...
1
vote
0answers
66 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 with ...
0
votes
1answer
882 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 ...