FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsSystem AdministrationFTP Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 18th, 2011, 02:52 PM
ntomsheck ntomsheck is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2010
Posts: 162 ntomsheck User rank is Second Lieutenant (5000 - 10000 Reputation Level)ntomsheck User rank is Second Lieutenant (5000 - 10000 Reputation Level)ntomsheck User rank is Second Lieutenant (5000 - 10000 Reputation Level)ntomsheck User rank is Second Lieutenant (5000 - 10000 Reputation Level)ntomsheck User rank is Second Lieutenant (5000 - 10000 Reputation Level)ntomsheck User rank is Second Lieutenant (5000 - 10000 Reputation Level)ntomsheck User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Day 12 h 6 m 17 sec
Reputation Power: 61
Chrooted SFTP no connection on new user

Hey guys, I just set up vsftpd on one of my webservers (Ubuntu server 10.10) so a user can access her pages remotely. It's set up in a chrooted mode for this particular user. When I connect (my username), using sftp, it has no problem. It shows me all directories, no permissions issues, etc. However, if I try to connect with her user name in filezilla, I get:
Network error: Software caused connection abort
Could not connect to server

If I try in other clients (such as Dreamweavers SFTP extention), I get other connection errors, however, I can connect just fine using my username. Below are my associated config files, anything that starts with // is a comment describing different things I've tried and how it reacts.

-snippets from vsftpd.conf:
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.nochroot_list
userlist_deny=NO
userlist_enable=YES
userlist_file=/etc/vsftpd.allowed_users

-snippets from vsftpd.nochroot_list:
myusername

-snippet from vsftpd.allowed_users:
myusername
herusername

-shell command:
$ groups herusername:
herusername : sftp

-snippet from sshd_config:
Subsystem sftpd internal-sftp
Match Group sftp
ChrootDirectory %h
X11Forwardin no
AllowTcpForwarding no
ForceCommand internal-sftp
//if I comment out all of that, she has no problem getting access... but then she has access to everything.

-snippet from passwd:
herusername:x:1001:1002::/www/rspages/deals:bin/false
//1002 is the sftp group, as you can imagine. I've tried giving her shell access with bin/bash and bin/sh but to no avail

-shell command:
$ ls -l /www/rspages:
drwxr-xr-- 7 herusername sftp deals
//I previously had it as root:root deals, but I wanted to eliminate the possibility of an error, so I adjusted it to herusername:sftp

Does anyone have an idea of what I'm doing wrong? I wouldn't chroot the user if I didn't have to, but I worry about her connecting on a public computer.. That, or someone might obtain her login information somehow.

Thank you for your time

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > Chrooted SFTP no connection on new user

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap