I'm installing Neo4j server as a linux service, but when I install it, I get the following message:
/sbin/insserv: Permission denied
What is this? What should I do? I'm running everything with sudo
.
Update - Scenario:
I had installed it properly the first time, but then I moved the neo4j-directory to a different location.
The neo4j-service was not recognized now.
I removed the neo4j-service manually by removing from
/etc/init.d
and then runningupdate-rc.d -f neo4j-service remove
When I re-install it said
/sbin/insserv
no such directory, so I googled and did this:ln -s /usr/lib/insserv/insserv /sbin/insserv
Now when I re-install it - it says
/sbin/insserv: Permission denied
Using Ubuntu.
etc/sudoers:
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "#include" directives:
#includedir /etc/sudoers.d
Permissions on neo4j install script:
-rwxr-xr-x 1 username username 15K Feb 27 09:38 neo4j
UPDATE 2:
When I do a ls -lah
on /sbin
:
lrwxrwxrwx 1 root root 16 May 15 20:29 insserv -> /usr/lib/insserv
and a ls -lah
on /usr/lib
:
drwxr-xr-x 2 root root 4.0K Feb 14 03:37 insserv