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

StackOverflow https://stackoverflow.com/questions/14132001

Вопрос

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?

Это было полезно?

Решение

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.

Другие советы

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.

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..

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.

Execute in the terminal

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

This will give all the permissions to the folders recursively

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top