ispconfig and chrooting users

Discussion in 'Installation/Configuration' started by hrvbid, Mar 5, 2008.

  1. hrvbid

    hrvbid New Member

    With script create_chroot_env.sh the users and groups of the chroot created are not quit finished. My suggestion is:
    together with root and the web user to embed also the apache user in passwd,
    and to set the groups to root, to the web users group and the group of apache.

    My modified code part looks like:

    # Add some users to ./etc/paswd and some groups to ./etc/group
    websu="`grep /etc/apache2/apache2.conf -e "^User" | cut -c6-`"
    grep /etc/passwd -e "^root" -e "^$CHROOT_USERNAME" -e "^$websu" > etc/passwd
    websg="`grep /etc/apache2/apache2.conf -e "^Group" | cut -c7-`"
    grep /etc/group -e "^root" -e "^`id -Gn $CHROOT_USERNAME`" -e "^$websg" > etc/group


    About ispconfig else:
    great work and thanks a lot for the sure hard work to the delelopers.
    Hilmar
     

Share This Page