Jump to content

Hey Guys

 

i have a problem with my root server. the server runs debian 7 and OpenJDK version 1.7.0_79.

 

i want to start a minecarft server on that server, and that works when im logged in as root, but i want to start it with another user, but the minecraft server stops directly after it started.

 

my start.sh script:

java -Xmx6144M -Xms6144M -jar /home/minecraftserver/crosscraft/spigot_server.jar

when i start the script as root it works perfectly fine, but when i start it as user minecraft it wont start correctly :/

My PC specs: Intel Core i7-920, Gigabyte EX-58 Extreme, 9GB Corsair XMS3, Gigabyte GTX 670 Windforce, 1TB WD, Be Quiet Straight Power 10 500W

Link to comment
https://linustechtips.com/topic/370199-root-server-problem/
Share on other sites

Link to post
Share on other sites

that means your server has files that arent within the normal user's permissions

 

can be solved by doing: sudo chmod -r <user>:<group> /home/minecraftserver

its possible i'm messing up between commands again, but if you replace <user> and <group> by your user and group, it should work.

Link to comment
https://linustechtips.com/topic/370199-root-server-problem/#findComment-5012735
Share on other sites

Link to post
Share on other sites

that means your server has files that arent within the normal user's permissions

 

can be solved by doing: sudo chmod -r <user>:<group> /home/minecraftserver

its possible i'm messing up between commands again, but if you replace <user> and <group> by your user and group, it should work.

chmod: cannot access 'minecraftserver:minecraftserver' : No such file or directory

 

Do you mean chown?

My PC specs: Intel Core i7-920, Gigabyte EX-58 Extreme, 9GB Corsair XMS3, Gigabyte GTX 670 Windforce, 1TB WD, Be Quiet Straight Power 10 500W

Link to comment
https://linustechtips.com/topic/370199-root-server-problem/#findComment-5012796
Share on other sites

Link to post
Share on other sites

indeed i do, is it obvious i didnt sleep much? :P

 

EDIT: and i'm pretty sure its -R instead of -r

Thank you :D it helped i forgott to add -R to the command, so the subdirectories where owned by root  :rolleyes:

My PC specs: Intel Core i7-920, Gigabyte EX-58 Extreme, 9GB Corsair XMS3, Gigabyte GTX 670 Windforce, 1TB WD, Be Quiet Straight Power 10 500W

Link to comment
https://linustechtips.com/topic/370199-root-server-problem/#findComment-5012870
Share on other sites

Link to post
Share on other sites

Thank you :D it helped i forgott to add -R to the command, so the subdirectories where owned by root  :rolleyes:

been there, done that, and accidentially did -R to root once.

 

welcome, to the awesome world of using linux.

Link to comment
https://linustechtips.com/topic/370199-root-server-problem/#findComment-5012906
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×