LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 07-09-2006, 08:14 AM   #1
toraghun
Member
 
Registered: Mar 2004
Location: Hyderabad
Distribution: Redhat Linux 9.0,Redhat Linux EL 3.0, 4.0 5.0 SLES 10 SLES10(OES)
Posts: 43

Rep: Reputation: 15
SFTP with Chrooting and without SSH and SCP


We would like to to create a sftp user which
1)Should not able to ssh, scp or telnet to the server .
2)Should able to do only sftp to the server .
3) Should not able to run "df" command
4) Should be restricted within the home directory . it should not able to go beyond the home directory .

Our Approach
----------------------

We ve installed openssh & rssh . Now we are able to meet the above 3 requirements .
For the fourth one we tried with chroot concept . We ve gone throught the steps given in following links & even few more also .

http://www.c2group.net/howtos/chroot.html
http://freshmeat.net/articles/view/1576/
http://gentoo-wiki.com/HOWTO_SFTP_Se..._without_shell)

Now if we do sftp are getting connection closed error . But if we remove the chroot sftp is working fine .

Need your help in this regards . Thanx in advance .
 
Old 07-10-2006, 05:11 AM   #2
~=gr3p=~
Member
 
Registered: Feb 2005
Location: ~h3av3n~
Distribution: RHEL 4, Fedora Core 3,6,7 Centos 5, Ubuntu 7.04
Posts: 227

Rep: Reputation: 30
I followed this doc to get it working in my system:

http://chrootssh.sourceforge.net/docs/chrootedsftp.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chrooting ssh/sftp users. OneEye Linux - General 1 03-22-2006 07:09 PM
Concepts/Security types/ Setup: OpenSSH/sshd/ssh/scp/sftp Caud Pong Linux - Security 5 09-23-2004 06:51 AM
SSH - where are scp and sftp satimis Linux - Networking 2 11-15-2003 10:27 AM
scp vs. sftp . . . zthomasz Linux - Security 2 07-08-2003 08:26 AM
ssh working, but not sftp scp hardigunawan Linux - Networking 2 05-02-2003 02:04 AM


All times are GMT -5. The time now is 03:32 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration