1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice

What happened to 'chrooted' bash?

Discussion in 'Plesk for Linux - 8.x and Older' started by techwide, Jun 13, 2005.

  1. techwide

    techwide New Pleskian

    22
    73%
    Joined:
    Sep 12, 2003
    Messages:
    24
    Likes Received:
    0
    Since I upgraded the latest Plesk, I cannot seem to have 'chrooted' bash any more.

    Is this removed for a reason?
     
  2. BoXie

    BoXie Guest

    0
     
    Uhm .. guess you have a problem. It's still there on MY system.
     
  3. techwide

    techwide New Pleskian

    22
    73%
    Joined:
    Sep 12, 2003
    Messages:
    24
    Likes Received:
    0
    I see the shell (/usr/local/psa/bin/chrootsh) still exists but I don't know why Plesk does not show this shell in the "Shell access to server with FTP user's credentials" option.

    Any idea where to look for?
     
  4. BoXie

    BoXie Guest

    0
     
    Well i DO see the shell in "Shell access to server with FTP user's credentials".

    So i guess something is wrong with your setup. Maybe a PSA DB error ?

    Some wrong entries in a PSA database table.

    Not sure .. hope someone else can help you.
     
  5. jamesyeeoc

    jamesyeeoc Guest

    0
     
    In the psa database once a chroot is assigned, then the shell value is kept in the table 'sys_users', but not before selecting it from the pulldown menu and saving it. Other than that, there are no other places in the psa database which would indicate if you can select it or not.

    Check your /etc/shells file to see if it lists /usr/local/psa/bin/chrootsh or not

    You can try using

    /usr/local/psa/admin/bin/chrootmng

    Usage:

    --create --source=<source> --target=<target> [--safe]

    --remove --source=<source> --target=<target>

    --create create chrooted environment
    --remove remove chrooted environment
    --target=VAL the virtual host directory ("all" for all)
    --source=VAL directory ot progs&libs patterns
    --safe allow linking suid&sgid files
     
  6. techwide

    techwide New Pleskian

    22
    73%
    Joined:
    Sep 12, 2003
    Messages:
    24
    Likes Received:
    0
    Yes the chrootsh is listed in /etc/shells.

    Do I still need to use chrootmng to add the shell to the Plesk option?
     
Loading...