LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 10-26-2003, 11:04 PM   #1
pmaxhammond
LQ Newbie
 
Registered: Oct 2003
Posts: 2

Rep: Reputation: 0
VSFTP....1 ftp root for all


I want to hook all users into one ftp root. VSFTP is configured to allow chroot from home folders but I want to get all usaers out of the home folders to 1 ftp dir.
 
Old 10-27-2003, 01:15 AM   #2
Y0jiMb0
Member
 
Registered: Jul 2003
Location: Valencia (Spain)
Distribution: slackware 11, FEDORA CORE 4, RHEL3, Gentoo...
Posts: 361

Rep: Reputation: 30
Hi!
I'm using proftp and I have a file called '/etc/proftpd.conf' with the configuration of the server.
I have a line which says
Code:
DefaultRoot ~
which makes the home directory of every user to be their root directory when they are connected through ftp.
You can change thi line and instead of '~' write the directory you want.
I think you have a similar file to config the ftp server, just go to the documentation and look for it.
... I hope I'm answering your question

Regards
 
Old 10-30-2003, 10:31 AM   #3
andguent
Member
 
Registered: Sep 2003
Distribution: Woody, SuSE, RH, LAS
Posts: 55

Rep: Reputation: 15
I assume you already have:
chroot_local_user=YES
in
/etc/vsftpd.conf (or /etc/vsftpd/vsftpd.conf)

From there, what happens if you make user accounts just for ftp access, and set all of the ftp access user names to one home directory?

That should lock users into their home directories as listed in /etc/passwd
EX:
ftpUser-1:x:501:501:ftpUser-1:/var/ftp:/bin/bash
ftpUser-2:x:502:502:ftpUser-2:/var/ftp:/bin/bash

I am no guru, but I have this sinking feeling that /bin/bash is an unsecure way to access a shell.
 
  


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
vsftp - Can access FTP within office network BUT cant access via Internet! kokfei77 Red Hat 2 03-07-2012 07:24 PM
FTP to vsftp ramick Linux - Software 3 12-05-2003 01:46 PM
vsftp- restricting root access cjpsparks Linux - Software 0 11-12-2003 12:39 PM
Using root user with vsftp bmw5002 Linux - Software 3 08-29-2003 08:52 AM
Adding FTP users in vsFTP groovybrandon Linux - Software 3 02-27-2003 09:16 AM


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

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