Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 13th February 2006, 18:17
savkar savkar is offline
Junior Member
 
Join Date: Jan 2006
Location: Brooklyn, New York
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default SSH and virtual users

Too bad. Would be nice, but admittedly more icing on the cake. Could always get to what I wanted with proFTPd if I really wanted it.

Still baffled about sftp not working with the patch. I will try to look at the sources - must be a comment about this someplace.

Sunil
Reply With Quote
Sponsored Links
  #12  
Old 3rd August 2006, 10:17
zaqavis zaqavis is offline
Member
 
Join Date: May 2006
Posts: 77
Thanks: 3
Thanked 0 Times in 0 Posts
Default How SCP works with WinSCP3

how configure SCP protocol in linux.

Regards
Qavi
Reply With Quote
  #13  
Old 4th August 2006, 13:04
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

You only need a running SSH daemon on your server. Then you can connect to your server with WinSCP on the SSH port (usually 22).
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #14  
Old 8th August 2006, 05:26
Soap_Dude Soap_Dude is offline
Junior Member
 
Join Date: Aug 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi, I get an error below when I try to login in.

Quote:
/bin/bash: No such file or directory
I can ssh using all but my CHROOTed users.

------------
kernel v2.86
Reply With Quote
  #15  
Old 9th August 2006, 15:33
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

Make sure that you copied /Bin/bash to the users' chroot jails.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #16  
Old 9th August 2006, 21:40
Soap_Dude Soap_Dude is offline
Junior Member
 
Join Date: Aug 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Quote:
Make sure that you copied /Bin/bash to the users' chroot jails.
Everything's there. I get an error no matter what shell I try to use.

I wonder what is the correct path the my /home/jail/bin/bash

I have
Quote:
mike:x:1004:1004:mike:/home/jail/./home/mike:/bin/bash
in /etc/passwd and /home/jail/etc/passwd.

Apparently, modifying the /home/jail/etc/passwd file does nothing.

Last edited by Soap_Dude; 9th August 2006 at 21:50.
Reply With Quote
  #17  
Old 10th August 2006, 18:24
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

What's the output of
Code:
ls -la /home/jail/bin
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #18  
Old 12th August 2006, 09:51
Soap_Dude Soap_Dude is offline
Junior Member
 
Join Date: Aug 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Below's the complete list.

Code:
total 2784
drwxr-xr-x 2 root root   4096 2006-08-07 20:02 .
drwxr-xr-x 8 root jail   4096 2006-08-06 02:10 ..
-rwxr-xr-x 1 root root 664084 2006-08-07 19:46 bash
-rwxr-xr-x 1 root root  24728 2006-08-07 19:46 bunzip2
-rwxr-xr-x 1 root root  24728 2006-08-07 19:46 bzcat
-rwxr-xr-x 1 root root   2105 2006-08-07 19:46 bzcmp
-rwxr-xr-x 1 root root   2105 2006-08-07 19:46 bzdiff
-rwxr-xr-x 1 root root   4878 2006-08-07 19:46 bzexe
-rwxr-xr-x 1 root root  24728 2006-08-07 19:46 bzip2
-rwxr-xr-x 1 root root   8140 2006-08-07 19:46 bzip2recover
-rwxr-xr-x 1 root root   1297 2006-08-07 19:46 bzless
-rwxr-xr-x 1 root root   1297 2006-08-07 19:46 bzmore
-rwxr-xr-x 1 root root  32268 2006-08-07 19:46 chgrp
-rwxr-xr-x 1 root root  29480 2006-08-07 19:46 chmod
-rwxr-xr-x 1 root root  34592 2006-08-07 19:46 chown
-rwxr-xr-x 1 root root  55340 2006-08-07 19:46 cp
-rwxr-xr-x 1 root root  76520 2006-08-07 19:46 dir
-rwxr-xr-x 1 root root  14340 2006-08-07 19:46 echo
-rwxr-xr-x 1 root root  11480 2006-08-07 20:02 false
-rwxr-xr-x 1 root root   5248 2006-08-07 19:46 fgconsole
-rwxr-xr-x 1 root root  51840 2006-08-07 19:46 gunzip
-rwxr-xr-x 1 root root   4870 2006-08-07 19:46 gzexe
-rwxr-xr-x 1 root root  51840 2006-08-07 19:46 gzip
-rwxr-xr-x 1 root root  76520 2006-08-07 19:46 ls
-rwxr-xr-x 1 root root  22156 2006-08-07 19:46 mkdir
-rwxr-xr-x 1 root root   5668 2006-08-07 19:46 mktemp
-rwxr-xr-x 1 root root  61436 2006-08-07 19:46 mv
-rwxr-xr-x 1 root root 129792 2006-08-07 19:46 nano
-rwxr-xr-x 1 root root 664084 2006-08-07 19:46 rbash
-rwxr-xr-x 1 root root  32304 2006-08-07 19:46 rm
-rwxr-xr-x 1 root root  13092 2006-08-07 19:46 rmdir
-rwxr-xr-x 1 root root 129792 2006-08-07 19:46 rnano
-rwxr-xr-x 1 root root  13884 2006-08-07 19:46 sleep
-rwxr-xr-x 1 root root 188788 2006-08-07 19:46 tar
-rwxr-xr-x 1 root root   6112 2006-08-07 19:46 tempfile
-rwxr-xr-x 1 root root  32676 2006-08-07 19:46 touch
-rwxr-xr-x 1 root root  51840 2006-08-07 19:46 uncompress
-rwxr-xr-x 1 root root  76520 2006-08-07 19:46 vdir
-rwxr-xr-x 1 root root    884 2006-08-07 19:46 which
-rwxr-xr-x 1 root root  51840 2006-08-07 19:46 zcat
-rwxr-xr-x 1 root root   1974 2006-08-07 19:46 zcmp
-rwxr-xr-x 1 root root   1974 2006-08-07 19:46 zdiff
-rwxr-xr-x 1 root root   1525 2006-08-07 19:46 zforce
-rwxr-xr-x 1 root root    103 2006-08-07 19:46 zless
-rwxr-xr-x 1 root root   3518 2006-08-07 19:46 znew
Below's the error I get. It doesn't matter which host I try to reach.
Code:
Last login: Wed Aug  9 12:54:44 2006 from localhost
/bin/bash: No such file or directory
Connection to 127.0.0.1 closed.
Thanks for the speedy replies.
Reply With Quote
  #19  
Old 13th August 2006, 19:36
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

Hm... And what's the output of
Code:
ls -la /home/jail
and
Code:
ls -la /home/jail/home/mike
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #20  
Old 15th August 2006, 03:55
Soap_Dude Soap_Dude is offline
Junior Member
 
Join Date: Aug 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

/home/jail
Code:
total 32
drwxr-xr-x 8 root jail 4096 2006-08-06 02:10 .
drwxr-xr-x 5 root root 4096 2006-08-09 01:44 ..
drwxr-xr-x 2 root root 4096 2006-08-07 20:02 bin
drwxr-xr-x 2 root bin  4096 2006-08-06 02:12 dev
drwxr-xr-x 2 root bin  4096 2006-08-09 12:53 etc
drwxr-xr-x 3 root bin  4096 2006-08-07 19:05 home
drwxr-xr-x 3 root bin  4096 2006-08-07 18:58 lib
drwxr-xr-x 4 root bin  4096 2006-08-06 02:13 usr

/home/jail/home/mike
Code:
total 24
drwxr-xr-x 2 root bin 4096 2006-08-07 19:36 .
drwxr-xr-x 3 root bin 4096 2006-08-07 19:05 ..
-rw------- 1 root bin   83 2006-08-07 20:05 .bash_history
-rw-r--r-- 1 root bin  220 2006-08-07 19:05 .bash_logout
-rw-r--r-- 1 root bin  414 2006-08-07 19:05 .bash_profile
-rw-r--r-- 1 root bin 2227 2006-08-07 19:05 .bashrc
lrwxrwxrwx 1 root bin   26 2006-08-07 19:05 Examples -> /usr/share/example-content
So you see bash is there, and that /home/jail/home/mike is indeed set as a user account folder. That's really weird...
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
SuSe 9.3 64-bit apt-get question... Bailx HOWTO-Related Questions 9 27th January 2006 11:26
Debian Question AngelDrago Installation/Configuration 8 18th January 2006 06:05
RHEL 4 Howto g8rbait Suggest HOWTO 12 29th December 2005 21:36
Small question misterm Installation/Configuration 1 18th October 2005 13:07
Newbie question thedude General 2 15th August 2005 14:38


All times are GMT +2. The time now is 13:53.


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