chrooted shell user scp problem

Discussion in 'ISPConfig 3 Priority Support' started by muekno, Dec 12, 2017.

  1. muekno

    muekno Member HowtoForge Supporter

    Still problem with chrooted shell user. If am am logged in ls -la does not show user or groupname but only the id's i.e.
    trying to copy something via scp it fails
    someuser.key is correct as it works for login
    logged in as i.e. as root scp works fine

    Need a solution


  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Check the /etc/passwd file inside the jail, it should contain at least the web[ID] user of the website and the chrooted shell user.
  3. muekno

    muekno Member HowtoForge Supporter

    passwd looks like
    Part of the /etc/Passwd when logged in as root

  4. muekno

    muekno Member HowtoForge Supporter

    after hours of searching the internet I found the solution
    the file /etc/nsswitch.conf is wrong, reads
    I commented the lines passwd, group, shadow with the wrong entry "compat"
    and wrote in the new lines with the correct entry "files"
    you just need to modify the real /etc/nsswitch.conf, ist will be mirrored to the chrooted shell users
    found the solution here ""



    P.S. I think it's not a ISPConfig problem, but a Linux or Debian problem as the /etc/nsswitch.conf is faulty on all of my servers
    Last edited: Dec 12, 2017
    Jesse Norell and till like this.

Share This Page