Permission denied attempting to run server - Ubuntu

Hi everyone , I am attempting to host a server for a few of my friend to play on, running on an ubuntu server VM. I wrote a bash script to launch the server .jar, but when attempting to run the script I get a permission denied error. I have u+rw to everything in the folder and x permissions for the bash script and .jar. Any thought as to why this might be happening? Want to avoid running the server as admin for obvious reasons.
6 Replies
Admincraft Meta
Thanks for asking your question!
Once you have finished, please close your thread. Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
command to close
/close !close !solved
Requested by skipple#0
ProGamingDk
ProGamingDk2y ago
what does ls -l show (who's the owner of it)
Skipple
SkippleOP2y ago
Yep that's it. Root is the owner.
ProGamingDk
ProGamingDk2y ago
try and make ur other user the owner of it
Skipple
SkippleOP2y ago
Yep, was able to take the dir and chown -R. Fixed thanks! !solved
ProGamingDk
ProGamingDk2y ago
np!

Did you find this page helpful?