Permission Denied
#1

I WANT TO ACTIVATE through my VPS server ( Linux ) , remained as I type nohup ./samp03svr , appear > permission denied , who can help me?
Reply
#2

Contact your host they need to set permission to you (to be able to run it) I guess.
Reply
#3

Actually, you more likely need to read the setup instructions that came with your VPS.

You usually shouldn't just go in, and start a service on a VPS without first creating a secondary user to be running your services under, and I suspect this, is where you are hitting your first issue.


Usually this is something lined up and explained in the VPS setup e-mail.
Reply
#4

Do the following -- chmod 777 samp03svr - samp-npc - announce. This will help you by giving it permissions to be read.
Reply
#5

Why did you post same post in two different section?
this and this one
Reply
#6

Quote:
Originally Posted by SaintMikey
View Post
Do the following -- chmod 777 samp03svr - samp-npc - announce. This will help you by giving it permissions to be read.
Using chmod to circumvent a security issue can be dangerous, and frankly it's just stupid.

Likely cause is that the server was set up as root and as such is owned by root. A normal user cannot execute the file because it belongs to root. It may even reside in the /root directory. I would recommend starting from the beginning. Login as the user that will run the server (i.e. NOT root). Then download the server package (wget) and extract (tar -zxf).
Reply
#7

Quote:
Originally Posted by SaintMikey
View Post
Do the following -- chmod 777 samp03svr - samp-npc - announce. This will help you by giving it permissions to be read.
I _REALLY_ don't think that's a wise suggestion at all, considering there'll be a reason as to why the service isn't able to be run under that user.

Usually, it's to protect the main account, so you don't run crap on it, so you end up having a problem with the whole VPS, and not just one user.


It also stops you from having a heap of things on one user, all piled up, compromised in one hit because the user, wasn't informed to keep the various services seperate and defined so they don't get infected, and compromised in serious ways.

http://www.anchor.com.au/blog/2012/0...y-to-avoid-it/

In short, you shouldn't suggest things if you aren't aware of how far-reached the capability of what you have suggested, could damage someones setup.

And those who ******, and simply blindly follow your advice in an "urgent" "need" to "fix" a simple issue.

Quote:

Scenario 2: Now we’ll assume that you’ve decided to upgrade to a VPS, and have moved your hosting account there. Still unaware of the better options for running PHP, you decide to play it “safe” and chmod all of your directories 777, so you’ll never have to worry about permissions issues again.

Should be safe enough. After all, it’s your VPS, right? There are no other users.

That may be so, but PHP and the web server aren’t the only pieces of software that run on any given server. You will typically have a local mail relay, often an NTP server, NRPE if you’re monitoring your server with Nagios, and any number of other daemons.

These daemons, just like all software, are not infallible. Bugs come up from time to time, sometimes serious ones. You don’t want to lull yourself into a false sense of security, only to have an exploit in your mail server used to gain access to a shell, with all of your website’s files writable by the user the mail server runs as.

Sounds far-fetched? It’s true that it’s not the kind of thing that happens every day, but these things do happen. Why leave yourself vulnerable?

In short, you doing this, leaves you open to being exploited, and then losing control of everything you run on the server, along with your data.

You need to read more about the setup of your VPS, and if you need help, find people who know about VPS setups, to help teach you. (******* videos are good in this sense).

Don't let people have access to your VPS. Learn and do this yourself. Make constant backups, be sure to be familiar in how to reinstall your VPS, and start over.


I didn't see the reply above in my edits, but still, the material I have has more reading to add for the OP.

Good luck OP, you'll read everything properly, now, maybe, sometime.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)