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?

up vote 2 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
  • 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
  • 1
    @user: The answer already shows how to use editors other than vi. – grawity Oct 21 '11 at 12:49

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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