LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-01-2005, 02:10 PM   #1
julz_51
Member
 
Registered: Mar 2005
Location: France
Distribution: Gentoo, Debian, FC4
Posts: 40

Rep: Reputation: 15
rssh/sftp chroot problem


Hello,

I'm trying to setup a chroot jail for rssh and sftp. I had already done it and I copied the directory from an old system to a new one (with the same version of Debian). I also changed the configuration files.
At the first try, I got "connection closed" when trying to log with sftp, because I had forgotten the suid bit on /usr/lib/rss_chroot_helper. In /var/log/user.log it resulted in
Code:
...
chroot cmd line: /usr/lib/rssh/rssh_chroot_helper "/var/ldev" 2 "/" /usr/lib/sftp-server
new session for myuser, UID=1501
chroot() failed, /var/ldev: Operation not permitted
Now I've fixed the suid-bit problem, I still get the same error on login attempt and the log file now stops at the line "chroot cmd line ...".
It's just like solving a problem created another one at an earlier stage.
Do you have any to solve this ?

Thanks in advance.
 
Old 11-01-2005, 03:50 PM   #2
julz_51
Member
 
Registered: Mar 2005
Location: France
Distribution: Gentoo, Debian, FC4
Posts: 40

Original Poster
Rep: Reputation: 15
Actually I checked the old system, and the missing line in the log is not related with the problem.
 
  


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
Restrict ssh/sftp with chroot? Chowroc Linux - Networking 4 01-25-2005 10:48 AM
sftp via rssh security questions plan9 Linux - Security 2 08-04-2004 10:38 AM
sftp + chroot ... almost schwing Linux - Software 1 10-26-2003 08:31 PM
Sftp and chroot axman Linux - Security 4 10-02-2003 04:51 PM
chroot sftp user? cliffyman Linux - Security 8 05-08-2003 09:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:11 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration