SSH Permission Denied???

Hines

Active Member
Apr 23, 2010
44
0
56
SOLVED!-SSH Permission Denied???

I maxed out my disk space and need to delete my backups. When i use the "ls" command it returns: "permission denied."

My backup directory is right off the root: it's " /backup ."

I've been trying for HOURS to fix this problem. Can someone proficient in linux please tell me what syntax or simple command i need to see my backups so i can delete them?
 
Last edited:

Spiral

BANNED
Jun 24, 2005
2,018
8
193
I maxed out my disk space and need to delete my backups. When i use the "ls" command it returns: "permission denied."
Are you logged into the server as root or as a regular user?

If you are logged in as a regular user, you probably do not have proper permissions to be able to access the /backup folder.

If you are logged in as "root" and you are seeing that message then you got serious issues and in that case would sound like you probably tried to "secure" system binaries in /bin and locked down some you shouldn't.

What does "ls -lad -- /backup" and "df -h" show you?
 

Hines

Active Member
Apr 23, 2010
44
0
56
Thank you, Spiral.

Issue solved. "su -" did it for me. I'm slowly learning BASH and SSH. You are a great contributor to these foums and I am proud to be a part of the cPanel community!
 
Last edited:

nxweb

Active Member
Oct 29, 2008
37
0
56
Thank you, Spiral.

Issue solved. "su -" did it for me. I'm slowly learning BASH and SSH. You are a great contributor to these foums and I am proud to be a part of the cPanel community!
Well kudos to you, you may be learning, but you're already doing the right thing by not using a direct root login :)
 

Spiral

BANNED
Jun 24, 2005
2,018
8
193
Well kudos to you, you may be learning, but you're already doing the right thing by not using a direct root login :)
There is really two sides to that statement and in the simplest context, I certainly agree that inexperienced users (and even experienced ones) shouldn't be using root unless there is an actual legitimate reason.

Where it comes to server management via SSH though, you are going to be spending more time as root than as a regular user.

Where it comes to web site management via SSH, you are probably not going to need root most of the time and spend most of the time as a regular user then at root.

The important thing to remember and keep in mind always is just how easy it is to completely screw yourself over so you must always be extremely careful as one wrong keystroke in root can be total disaster.

In example (and I don't recommend either in root for obvious reasons):
Code:
# rm -Rf ./*
(Remove all the files at or below the current directory location)

Code:
# rm -Rf /*
(Remove EVERY FILE on the entire server)

Forgetting a single period in this instance could be an enormous disaster and yes I have actually seen quite a few server owners make precisely this exact mistake and cost themselves days of downtime rebuilding.

Moral of the story ---- when in root, be extremely careful! :D