SQL Developer runs in Terminal with sudo sqldeveloper but not without sudo
6,113
Likely what happened is you ran sqldeveloper
one time using sudo
, which caused the configuration directory $HOME/.sqldeveloper
to get owned by root. If so, you should be able to fix it by re-taking ownership of the directory, i.e.
sudo chown -R $USER:$USER ~/.sqldeveloper
or by simply deleting the directory
rm -rf ~/.sqldeveloper
Related videos on Youtube
Author by
user1786641
Updated on September 18, 2022Comments
-
user1786641 almost 2 years
Can anyone help? Installed like here:
How to install SQL Developer on Ubuntu 14.04?
If I run:
sudo sqldeveloper
it starts and runs properly but if I run:
sqldeveloper
It wont start with any other error shown.
Are there missing rights for Sqldeveloper or Java. Where and how do I set them.
Any help appreciated, I am a Ubuntu noob.
Where do I find error logs?
Thank you...
-
steeldriver over 9 yearsDo you have a (hidden)
"$HOME/.sqldeveloper"
directory? if so, what are its ownership and permissions? -
user1786641 over 9 yearsyes it is hidden: drwxr-xr-x 3 root root 4096 Dez 29 15:00 .sqldeveloper
-
user1786641 over 9 yearsthank you sudo changemod 777 .sqldeveloper worked although do not really understand what this directory is for and why it is not set properly
-
steeldriver over 9 yearsYou should have changed the ownership not the permission bits - please see my answer below
-
-
kkyr over 6 yearsThis should be
chown
, notchmod