The i3 FAQ has migrated to All content here is read-only.
Ask Your Question

config file is read only?

asked 2015-07-10 06:20:10 +0000

mechpro gravatar image


I am using Ubuntu 14.04 i3 and I am trying to edit my i3 config file located in /etc/i3/config. I tried to edit the file using gedit config. I am able to open the config file using gedit but the option to save my changes is greyed out. I checked the permissions of the config file and noticed the following:

-rw-r--r-- 1 root root 6148 May 4 04:17 config
-rw-r--r-- 1 root root 5290 May 4 04:17 config.keycodes

I have no clue why the file is read only when it seems like I am logged in as root? The permissions show that I have write access so I'm not quite sure why I can't edit the file, maybe I'm reading the permissions wrong?

I'm not sure if this is related or not but I'm also confused as to why it shows root as the user? When I start up my machine I get to choose if I want to log in using the Unity file manager or i3. Any thoughts or help would be much appreciated.

edit retag flag offensive close merge delete


Usually root has no password on Ubuntu (unless explicitly set), so I'd guess you are not actually logged in as root. "root" in your output shows the user and group ownership of the file. As it is the system wide configuration in /etc, it belonging to root is correct.

Adaephon gravatar imageAdaephon ( 2015-07-10 15:02:48 +0000 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2015-07-10 06:56:32 +0000

oberon gravatar image

updated 2015-07-10 06:58:21 +0000

Your personalized config should be located in ~/.i3/config or ~/.config/i3/configand owned by you. Please read here: about how to properly create it.

edit flag offensive delete link more

answered 2015-07-10 16:38:21 +0000

mechpro gravatar image

Thank you oberon, I appreciate it - I was going bald trying to figure it out

edit flag offensive delete link more


Please, use "add a comment" to write comments and do not post them as answers. Answers should always be answers to the original question. Also, the order of answers is not fixed, so it is not always obvious to which post you are referring.

Adaephon gravatar imageAdaephon ( 2015-07-13 08:06:37 +0000 )edit

Question Tools


Asked: 2015-07-10 06:20:10 +0000

Seen: 97 times

Last updated: Jul 10