1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

/bin/bash(chroot), error: must be suid root?

Discussion in 'Plesk for Linux - 8.x and Older' started by sunmacet, Jan 18, 2009.

  1. sunmacet

    sunmacet Guest

    0
     
    Hello,

    One of my domain account is getting this weird "must be suid root" error when trying to log in with SSH (in SSH client log). Setting chroot off and on won't fix the issue. I have no idea where to look what could be wrong. I have checked that /usr/bin/chroot and /usr/local/psa/bin/chrootsh is owned by root user.

    Please. Any ideas?
     
  2. gorilych

    gorilych Guest

    0
     
    is this problem located to one domain?
    if you have another domain which is working, compare files in /var/www/vhosts/domain1.com and /var/www/vhosts/domain2.com in subfolders bin/, etc/ usr/lib/ ...
     
  3. sunmacet

    sunmacet Guest

    0
     
    Thanks for your reply.

    The issue is just for one domain. However those dirs seems to contain same files with same permissions. What I should be looking for that might cause this issue?

    Best regards
     
  4. Amin Taheri

    Amin Taheri Golden Pleskian Plesk Certified Professional

    33
     
    Joined:
    Jul 5, 2007
    Messages:
    1,398
    Likes Received:
    1
    Location:
    Seattle Area
    can you remove access to the domain the ability to have ssh and then give it back to see if it is granted properly?
     
  5. sunmacet

    sunmacet Guest

    0
     
    I have removed and regranted the SSH and the issue remains. I might need to buy ticket for this one. :(
     
  6. argonius

    argonius Basic Pleskian

    18
    85%
    Joined:
    Apr 28, 2010
    Messages:
    57
    Likes Received:
    0
    same problem

    hi,

    i know, real old thread, but have the same problem with plesk 10.3.1

    i startet chrootsh with strace. but i just can see:
    "plesk-chroot must be root suid" but permissions on chrootsh plesk binary are correct. :(

    is there any known problem?

    thanks

    argonius
     
  7. Amin Taheri

    Amin Taheri Golden Pleskian Plesk Certified Professional

    33
     
    Joined:
    Jul 5, 2007
    Messages:
    1,398
    Likes Received:
    1
    Location:
    Seattle Area
    Did you try setting suid on the file?
    chmod +s or chmod 4755 exucutable
     
  8. argonius

    argonius Basic Pleskian

    18
    85%
    Joined:
    Apr 28, 2010
    Messages:
    57
    Likes Received:
    0
    permissions are correct

    as in my previous post, the permissions are correct:

    ls -al /usr/local/psa/bin/chrootsh
    -rwsr-x--- 1 root psacln 16728 Jun 29 13:42 /usr/local/psa/bin/chrootsh


    i compared them also with another plesk server. they are identical.

    but straceing the binary it says it is not suid root, but as you can see
    owner is root, setuid is set and it is executable for users of group psacln :(

    thanks for any help

    greetz
    argonius
     
  9. Hostasaurus.Com

    Hostasaurus.Com Regular Pleskian

    30
    68%
    Joined:
    Oct 8, 2009
    Messages:
    465
    Likes Received:
    8
    Did you ever get a solution for this? After upgrading a server from Plesk 8 to 10 on domains that have the shell set to chroot the site-level users can't log in and if I give the user bash, create all the chroot directories and try to manually execute the chrootsh, it just returns immediately.

    Just FYI, the thing about 'must be suid root' is an error related to trying to strace a setuid binary, it's not the actual chrootsh binary telling you that. That information is being output to syslog, that's why it shows up in strace.
     
    Last edited: Oct 18, 2012
Loading...