#1  
Old 1st October 2007, 23:10
dsadm dsadm is offline
Junior Member
 
Join Date: Jan 2007
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
Default Change jailed user login shell

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
Reply With Quote
Sponsored Links
  #2  
Old 1st October 2007, 23:44
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,475
Thanks: 813
Thanked 5,255 Times in 4,121 Posts
Default

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
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 2nd October 2007, 04:45
dsadm dsadm is offline
Junior Member
 
Join Date: Jan 2007
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #4  
Old 2nd October 2007, 08:03
sjau sjau is offline
Local Meanie
 
Join Date: Apr 2006
Location: Switzerland
Posts: 1,138
Thanks: 4
Thanked 54 Times in 50 Posts
Default

maybe this howto helps:

http://www.howtoforge.com/mysecuresh...tp_debian_etch
Reply With Quote
  #5  
Old 2nd October 2007, 09:35
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,475
Thanks: 813
Thanked 5,255 Times in 4,121 Posts
Default

Quote:
Originally Posted by dsadm
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?
Yes, a update of ISPConfig changes the ISPConfig script files.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 2nd October 2007, 19:41
dsadm dsadm is offline
Junior Member
 
Join Date: Jan 2007
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by sjau
Thank you for the link. I am using something close to that called jail kit which works pretty much on the same idea but I am glad there are others like jail kit instead of altering ssh code. (http://olivier.sessink.nl/jailkit/howtos_ssh_only.html) I wonder though if speed and security are the same with mysecureshell and jail kit as to ssh.

-Adam
Reply With Quote
  #7  
Old 2nd October 2007, 19:44
dsadm dsadm is offline
Junior Member
 
Join Date: Jan 2007
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till
Yes, a update of ISPConfig changes the ISPConfig script files.

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
Reply With Quote
  #8  
Old 3rd October 2007, 13:58
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,475
Thanks: 813
Thanked 5,255 Times in 4,121 Posts
 
Default

Can you tell me how a software shall update itself when no file can be changed? Thats is just impossible.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Statistic not working mzo Installation/Configuration 49 20th April 2011 12:19
Anything I can do against illegal login-requests? schmidtedv Installation/Configuration 17 7th November 2008 09:25
User Add/Delete and FTP login problem. clabrown Installation/Configuration 3 23rd August 2007 19:12
log files cruz Technical 3 15th May 2007 14:35
Mail Login, simple user names??? Kernal Panic Installation/Configuration 1 16th June 2006 02:45


All times are GMT +2. The time now is 20:50.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.