Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to create an odbc.ini file in the /etc folder.

I'm opening a new file in the text-editor and am trying to save, but I always get a permission denied error.

I've added myself to the sudo group, and then I went into manage the group and had to select a checkbox, but I am still getting this error.

How can I set my permissions to be able to create a file in this directory?

share|improve this question
up vote 3 down vote accepted

You can usually side step any permission issues in linux by acting as the root user.

You could try running the text editor as root:

gksudo gedit /etc/odbc.ini


sudo nano /etc/odbc.ini
share|improve this answer
well, that kinda got me there, but really that isn't the ideal way. I have created the file, but now i need to edit it. Editing in VI is far from ideal, so I'm really looking for a way to manage my files using whatever tools I want, not just command line. – pedalpete Oct 21 '11 at 3:04
@user: The answer already shows how to use editors other than vi. – grawity Oct 21 '11 at 12:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.