Bogdan Kulynych
Bogdan Kulynych

Reputation: 713

Sublime Text: Permission denied when running Sublime REPL by non-root user under Ubuntu

When trying to run Sublime REPL, I get a message box with permission denied error: IOError(13, 'Permission denied') unless I launch Sublime Text with root privileges (sudo sublime). It holds for any REPL language.

I'm using Ubuntu 12.10, and Sublime resides in /opt/ directory.

Since I can't google anyone else having this problem, probably there's something special about my filesystem privileges somewhere. What can cause files that Sublime REPL use be protected?

Upvotes: 5

Views: 16845

Answers (6)

WesternGun
WesternGun

Reputation: 12728

Sometimes it's sublime-text-3, but sometimes it's sublime-text. The folder name may not be always the same. If -3 does not work, check if you have sublime-text folder there. If yes, replace the content of that.

Upvotes: 0

Revol89
Revol89

Reputation: 888

Execute in the terminal

sudo chmod -R 777 ~/.config/sublime-text-3/

This will give all the permissions to the folders recursively

Upvotes: 0

AkaZecik
AkaZecik

Reputation: 1000

Reverting to a Freshly Installed State worked for me:

sudo mv ~/.config/sublime-text-3 ~/sublime-text-3
subl

It automatically creates a new copy of ~/.config/sublime-text-3 with your username as the owner. It should solve all the Permission denied kinds of problems.

Upvotes: 0

Marcelo Austria
Marcelo Austria

Reputation: 951

In your installation folder: opt/sublime_text

marcelo@ubuntu:~$ sudo su
[sudo] password for marcelo: *******
root@ubuntu:/home/marcelo#
root@ubuntu:/home/marcelo# cd ..
root@ubuntu:/home# cd ..
root@ubuntu:/# cd opt/sublime_text
root@ubuntu:/opt/sublime_text# chmod 777 sublime_text

Done..

Upvotes: 1

Bogdan Kulynych
Bogdan Kulynych

Reputation: 713

Ooof, that was silly. In ~/.config folder with Sublime settings, sublime-text-2 had root root owner, have no idea why. Had to change owner to myself with chown, and that's all.

Upvotes: 9

Onorio Catenacci
Onorio Catenacci

Reputation: 15293

This error (reported on GitHub) may have some bearing on the behavior you're seeing. If I were you, I'd try to isolate a specific use case and then add it to the bug report so wuub might be able to advise you.

Upvotes: 2

Related Questions