Change jailed user login shell

Discussion in 'Installation/Configuration' started by dsadm, Oct 1, 2007.

  1. dsadm

    dsadm New Member

    I would love to change the login shell on the host (unchrooted) from /bin/bash to something else before the user is jailed into their own directory. (/etc/passwd) I would also love to change the chrooted user's default shell to something else. (/var/www/[domain]/etc/passwd)

    I can do both of these things manually but I find out when I do, ispconfig reverts back to its defaults thus leaving any user with the special chrooted system inoperable. Is there a way to change the default settings in the first place in the config files? I am very perplexed after many days of trying this on my own. Thanks for any help.

    -Adam
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Have a look at the file /root/ispconfig/scripts/lib/config.lib.php around line 601 (user_insert function) and line 794 (user_update function).

    You might also have to modify the script /root/ispconfig/scripts/shell/create_chroot_env.sh
     
  3. dsadm

    dsadm New Member

    Ummmm...

    After looking at the files esp: /root/ispconfig/scripts/shell/create_chroot_env.sh I noticed my changes I made to the file have been overwritten when I made an upgraded to the latest version. Will upgrades always overwrite scripts and changes I have made? I am not happy for I added applications to the 'APPS' arg. Will these changes I make again be lost in the next upgrade?

    -Adam
     
  4. sjau

    sjau Local Meanie Moderator

  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, a update of ISPConfig changes the ISPConfig script files.
     
  6. dsadm

    dsadm New Member

  7. dsadm

    dsadm New Member


    That is a shame. Makes more work for someone in the end. At lease one can make a list of the changes and write a script to change them after an upgrade.

    -Adam
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Can you tell me how a software shall update itself when no file can be changed? Thats is just impossible.
     

Share This Page