Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Security and Privacy
FedoraForum Search

Forgot Password? Join Us!

Security and Privacy Sadly, malware, spyware, hackers and privacy threats abound in today's world. Let's be paranoid and secure our penguins, and slam the doors on privacy exploits.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 14th March 2008, 05:07 AM
ims.analyst Offline
Registered User
 
Join Date: Feb 2008
Posts: 5
SFTP works fine for regular users but fails for jailed users. SSH works for both.

Hi Folks,

I am stumped at this issue for hours. I have done all the research I could have, but unfortunately no resolution and I have to start a new post.


SFTP works fine for regular users but fails for jailed users. SSH works for both.




The config file: /etc/ssh/sshd_config has this enabled.

Subsystem sftp /usr/libexec/openssh/sftp-server



this file exists in both locations:
1. /usr/libexec/openssh/sftp-server
2. /chroothome/usr/libexec/openssh/sftp-server

Symptom 1:
When I try to SFTP login with jailed user, an error message comes up:
"File transfer server could not be started or it exited unexpectedly.
Exit value 255 was returned. Most likely the sftp-server is not in the path of the user on the server-side."


I added /usr/libexec/openssh/ to the PATH env var of the jailed user. Didn't make any difference.



Symptom 2:
When I run /chroothome/usr/libexec/openssh/sftp-server with root, it goes into endless state and I have to Ctrl-C it to cancel: According to my research, this is normal behaviour.


If I do the same thing with jailed user: it runs the command without any output and the command prompt is available.


the file permission is:
-rwxr-xr-x root root sftp-server


Any help would be grealty appreciated.

Thanks,
Ims.
Reply With Quote
  #2  
Old 18th March 2008, 01:11 AM
ims.analyst Offline
Registered User
 
Join Date: Feb 2008
Posts: 5
I am still not able to figure this one out. Can someone please help me.
Reply With Quote
Reply

Tags
fails, fine, jailed, regular, sftp, ssh, users, works

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
ssh works, sftp doesn't Virg Servers & Networking 0 18th December 2008 02:58 PM
SSH fails for the regular users and works for the root nkaviani Using Fedora 3 25th August 2007 02:21 PM
Kernel 2.6.12-1.1372_FC3smp - can't mount root (LVM fails), 2.6.11-1.27 works fine ericv13 Using Fedora 3 24th July 2005 06:04 AM
Regular Users Can't Log In FC3 rinehimer Using Fedora 3 4th December 2004 06:23 PM


Current GMT-time: 11:06 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat