ssh root access problem

Discussion in 'Site & Server Administration' started by xsh00tax, Feb 10, 2011.

  1. #1
    i need t set the following within plesk 10.1 so that i can access ssh as the root user and make an update to my php version. I need to set the following setting within plesk and am not sure which needs to be activated:
    /bin/sh
    /bin/bash
    /sbin/nologin
    /bin/tcsh
    /bin/csh
    /bin/bash (chrooted)
    /bin/rbash
    I will be shutting ssh down as soon as i am finished to protect my server but temporarily need full root access to my server.
     
    xsh00tax, Feb 10, 2011 IP
  2. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #2
    I would never suggest shutting down SSH totally. It's your way in when the server is not responding via your control panel. I would suggest you move the port to something non standard, and perhaps use keys, instead of shutting it down completely. To answer your question though, I would use /bin/bash for the handler.

    Chris
     
    RHS-Chris, Feb 10, 2011 IP
  3. xsh00tax

    xsh00tax Guest

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    This is how i already have it set. The reason that i asked is because i am having difficulties getting root access to make changes. I have attempted the sudo and su commands but it will not except my login details. Im attempting a php update using the following - http://www.atomicorp.com/wiki/index.php/PHP. I have performed this same update a few times before but not with plesk 10.0.1 and centos 5 and I cannot access ssh as root. The username and password i am using is definately correct. Is there a different command i should be using?

    update.

    iv just used the sudo su - as a command and when i entered my password im getting - myusername is not in the sudoers file
     
    xsh00tax, Feb 10, 2011 IP