Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Apr 2010
    Posts
    44

    Thumbs up 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 by Hines; 05-07-2010 at 08:04 PM.

  2. #2
    cPanel Staff cPanelJamyn's Avatar
    Join Date
    Jan 2009
    Posts
    59

    Default

    Hi,

    Make sure you're the 'root' user. What does this show? My guess is you're not the root user, and the permissions on /backup are restrictive.

    Code:
    # cd /
    # ls -l /backup

  3. #3
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Quote Originally Posted by Hines View Post
    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?

  4. #4
    Member
    Join Date
    Apr 2010
    Posts
    44

    Thumbs up

    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 by Hines; 05-07-2010 at 08:05 PM.

  5. #5
    Member
    Join Date
    Oct 2008
    Posts
    38

    Default

    Quote Originally Posted by Hines View Post
    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
    Free hosting - Free cPanel hosting
    Using cPanel in the most extreme conditions!

  6. #6
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Exclamation

    Quote Originally Posted by nxweb View Post
    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!

Similar Threads & Tags
Similar threads

  1. Replies: 1
    Last Post: 06-09-2009, 10:26 AM
  2. lynx: Permission denied
    By mariot in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-14-2008, 06:04 PM
  3. Permission Denied
    By besimtari in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 07-01-2006, 01:49 AM
  4. phpsuExec - permission denied
    By trigger hippy in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 06-23-2006, 09:52 AM
  5. Permission Denied!
    By unite the cows in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-04-2002, 09:12 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube