
4th May 2012, 19:39
|
|
Junior Member
|
|
Join Date: May 2012
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Jailkit Problems
*Please move to appropriate category*
Followed perfect server configuration on Ubuntu 12.04 every step of the way in the exact order. Everything was fine up until attempting to setup shell users in ISPConfig that are jailed.
Making a post with some solutions as Google lacks good help in this area.
Problem: namespace resolution and cannot scp/sftp- Jailed users could not perform name resolution (errors with wget for example) - Jailed users could not use scp (unknown user $uid) Solution to both (replace # with your client and site numbers):
Code:
cp /lib/x86_64-linux-gnu/libnss_* /var/www/clients/client#/web#/lib/x86_64-linux-gnu/
Permanent solution likely involves a fix in /etc/jailkit/jk_init.ini. The paths it contains are wrong for some of the libs and it does not list all the necessary libs. Problem: nano, pico "Error opening terminal: xterm"- likely caused because xterm libraries are missing
- you maybe don't want xterm as your choice
Solution:
Still trying to fix this one
|
|
The Following User Says Thank You to halsafar For This Useful Post:
|
|

29th June 2012, 21:30
|
|
Member
|
|
Join Date: Feb 2010
Posts: 32
Thanks: 6
Thanked 4 Times in 3 Posts
|
|
I'm wondering if I'm having the same problem. While jailkit ssh sessions work find on the command line, using any type of highlevel client simply doesn't work (MacFusion, Coda, Cyberduck, Dreamweaver, etc.).
I suspect it is because scp is broken and this solution requires a manual for every client that gets created? Trying to find a fix...
|

30th June 2012, 09:41
|
|
Member
|
|
Join Date: Feb 2010
Posts: 32
Thanks: 6
Thanked 4 Times in 3 Posts
|
|
Jailkit appears to be half baked. Core libraries are missing since Ubuntu now implements the /lib/x86_64-linux-gnu subfolder. I was able to resolve this by creating aliases for select components to the sub folder. I did this prior to installing ISPConfig and it appears to have resolved my issues of scp/sftp (allowing Dreamweaver, Coda, Macfusion, clients to connect with jailkit, etc.). I'm not sure if this is the appropriate way to do this, but here is how:
cp -s /lib/x86-linux-gnu/libnss_* /lib/
|

2nd July 2012, 10:04
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,905
Thanks: 693
Thanked 4,195 Times in 3,211 Posts
|
|
Quote:
|
Jailkit appears to be half baked.
|
Not at all. The jailis fully configurable. You can configure it in jailkit if you need additional software or if you want to copy additional directores when the jail is created. Please take a look at the jailkit documnetation, the available config files and options are explained there.
http://olivier.sessink.nl/jailkit/
|

2nd July 2012, 10:17
|
|
Member
|
|
Join Date: Feb 2010
Posts: 32
Thanks: 6
Thanked 4 Times in 3 Posts
|
|
Sorry. I should clarify; Jailkit does not work by default like it did on Ubuntu 10.04 LTS because Ubuntu's introduction of the subfolder in 12.04 LTS. While you can ssh and do something as trivial as ls, you cannot use it for SFTP, you cannot use it for commands such as scp, nor can you use it for commands like wget. No IDEs or transport programs will work with it 'out of the box'. No Netbeans, no eclipse, no Dreamweaver, Coda, PHPEd, no Cyberduck, no Macfusion, ...
However, you can fix this by using the command above to restore symbolic links to the needed libraries to use Jailkit in the most common manner for web purposes: data i/o.
|

2nd July 2012, 10:36
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,905
Thanks: 693
Thanked 4,195 Times in 3,211 Posts
|
|
What you did with the command above con be configured in the jailkit config files. Why do you run this command manually if you can just configure it in the jailkit config files?
Quote:
|
No IDEs or transport programs will work with it 'out of the box'. No Netbeans, no eclipse, no Dreamweaver, Coda, PHPEd, no Cyberduck, no Macfusion, ...
|
Most users use ftps with these apps (not scp or sftp), so no ssh user is required then.
|
|
The Following User Says Thank You to till For This Useful Post:
|
|

2nd July 2012, 10:48
|
|
Member
|
|
Join Date: Feb 2010
Posts: 32
Thanks: 6
Thanked 4 Times in 3 Posts
|
|
Hi Til,
Thank you for responding.
Quote:
|
Why do you run this command manually
|
I did this for the same reason that myself, halsafar, globiws, and several others have stated in their post titles: "namespace resolution and cannot scp/sftp", and "Ubuntu Jailkit multiple problems".
Quote:
|
What you did with the command above con be configured in the jailkit config files
|
I believe we're not familiar with Jailkit like you are. :-) Had we known that, we wouldn't be asking these questions or creating those post titles. You see, Falko (and yourself) often provides great insight and quality posts that work really well! So I had to improvise and provide a solution for others that just works in your absence.
Quote:
|
you can just configure it in the jailkit config files...
|
As I stated in my post, "I'm not sure if this is the appropriate way to do this, but here is how...". Now I know, thanks to your response and keen knowledge.
Thank you very much!
|

2nd July 2012, 11:05
|
|
Member
|
|
Join Date: Feb 2010
Posts: 32
Thanks: 6
Thanked 4 Times in 3 Posts
|
|
Quote:
|
Most users use ftps with these apps (not scp or sftp), so no ssh user is required then.
|
Thats because most users are stuck with cPanel or simply don't have access to something as simply and cool as ISPConfig!
I prefer SFTP because it has several pros like one connection (no need for DATA ports), native support for keys, its directory listing is uniform, standard and consistent mechanism for file and directory attributes, includes operations for permissions and file locking and more functionality (used in some IDEs GUIs, etc.).
|

7th August 2012, 08:31
|
|
Junior Member
|
|
Join Date: Aug 2012
Posts: 3
Thanks: 0
Thanked 4 Times in 1 Post
|
|
the same trouble, solutions do not work
I have Ubuntu 12.04 LTS (GNU/Linux 3.2.0-27-generic x86_64) with ispconfig 3.0.4.5. Symptoms are exactly as described (ssh logins fine but no more: jailed session give no name resolution, no scp, no nothing).
I have updated jk_init.ini with widest references
===================================
[uidbasics]
libraries = /lib/*, /lib64/*, /usr/lib/*, /lib/x86_64-linux-gnu/*
and
[netbasics]
libraries = /lib/*, /lib64/*, /usr/lib/*, /lib/x86_64-linux-gnu/*
===================================
But it does not help. Where to look at further?
|

7th August 2012, 08:34
|
|
Member
|
|
Join Date: Feb 2010
Posts: 32
Thanks: 6
Thanked 4 Times in 3 Posts
|
|
see above?
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 10:41.
|
|
Recent comments
10 hours 48 min ago
10 hours 54 min ago
15 hours 52 min ago
22 hours 33 min ago
23 hours 22 min ago
1 day 36 min ago
1 day 4 hours ago
1 day 11 hours ago
1 day 15 hours ago
1 day 17 hours ago