Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 22nd October 2004, 04:21 PM
Quella's Avatar
Quella Offline
Registered User
 
Join Date: May 2004
Location: Boston, MA (USA)
Posts: 474
vsftpd Configuration Assistance

This is the first time I have used vsftpd and I have a need to get it up and running for a temporary transfer of some data to a user in another country. I'm looking at sandboxing the user to a secure directory and wish to disallow any changing or creation of directories. I want the user to login (with a User/Pass, non-ananymous) to the box and be dropped in to the directory to see the data to be taken. I have played with some of the options and looksed at a few suggested configs without getting it to work. The best I could do was have the system login and place the user in a directory. 'ls' would not work, or it would fail for some reason. I could not '..' or 'cd' which I wanted. I also tried to just do a 'mget *' and it said nothing to get.

Can someone who may have done such, or may have some suggestions provide some insight? I would be happy to receive otehrs config files to look at if you wish to post them. My biggest request is to have one special secured directory that the user is dropped in and can list and download the files in that directory only. All other things will be prevented.

Thoughts or comments?

Quella
Reply With Quote
  #2  
Old 22nd October 2004, 05:41 PM
tconway Offline
Registered User
 
Join Date: Sep 2004
Posts: 6
Your almost there, the jailroot seems good (no cd..) but the directory is empty.
ls does not work under ftp, use dir

Ftp again and do pwd (present working directory) to find out where you are.
If you're using normal user logins it should be their home directory.
I would setup users specifically for ftp that have a shell of /bin/false or /dev/null
This will stop anyone from telnet or ssh if they get the password.
Reply With Quote
  #3  
Old 22nd October 2004, 05:54 PM
Quella's Avatar
Quella Offline
Registered User
 
Join Date: May 2004
Location: Boston, MA (USA)
Posts: 474
Thanks for the reply. I think with the guest_allow enabled and the root_directory set to "/home/ftpusers/" this should be the place they are dropped. Yet from within the FTP client, I see '/' when I do a pwd. I'm not sure if this is from the root command, or it is being dropped in the root fo the drive. I have also tried to 'cd' to the right location, yet the configuration prevents the use of the 'cd' command. So this fails each time.

I will try the 'dir' and not 'ls' command and see what I get.

Quella
Reply With Quote
  #4  
Old 22nd October 2004, 06:32 PM
tconway Offline
Registered User
 
Join Date: Sep 2004
Posts: 6
I forgot pwd will return / because you have a proper chroot_root
If you've set chroot to yes then users will be changed to their home directory

Put a file in the home directory you log in as to see if that's where your getting to, also if your are going to the proper directory, make sure the rights are setup properly too.
Reply With Quote
Reply

Tags
assistance, configuration, vsftpd

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
Need assistance! Iggzaplaya Installation and Live Media 7 27th August 2007 08:13 PM
vsftpd configuration problems willieray Servers & Networking 4 14th April 2007 02:08 PM
vsftpd configuration so that anonymous can modify files? spacelobsters Servers & Networking 1 6th February 2007 08:14 AM
BIND Configuration assistance kevinlbeck Servers & Networking 2 3rd February 2007 11:32 PM
Migrating configuration of VSFTPd to Fedora Core 5 Thetargos Servers & Networking 2 22nd August 2006 04:27 PM


Current GMT-time: 22:33 (Wednesday, 22-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