Solved

vsftpd..user can descend..

Posted on 2003-11-05
5
324 Views
Last Modified: 2013-12-16
I have a RedHat Linux 8 box running vsftpd. I'm experiencing an issue where users login and can descend out of their home directories. I've tried various different ways of creating the user.. different groups, uids, etc.. Any ideas?

Regards,
Bill
0
Comment
Question by:nturnet
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 125 total points
ID: 9689094
By "descend out of their home directories." are you talking about a "joe-user accessing /home/joe-user/sub-dir or a joe-user accessing /home/other-user? you can't keep a user from accessing subdirectories of their FTP "home dir" but you can chroot them into their home dir and prevent them from seeing anything else on the system.
0
 

Author Comment

by:nturnet
ID: 9689237
That is exactly what I want to accomplish.

Mmm.. perhaps I'm doing something wrong here.. The only thing I'm getting is:
chroot: cannot execute /bin/bash: No such file or directory

when I try to excute the chroot command?!?!
0
 
LVL 40

Expert Comment

by:jlevie
ID: 9689463
Are you using "chroot_local_user=YES" in your vsftp config?
0
 

Author Comment

by:nturnet
ID: 9689517
Well, I am now and everything is working perfect.

Now I need to discover a way when adding a user explictly for FTP that it automatically writes that username to the vsftpd.chroot_list..

Thanks again!
0
 
LVL 40

Expert Comment

by:jlevie
ID: 9690011
The only way I know of to do that is to either use a wrapper around useradd/userdel or to set up a cron job that picks users out of /etc/passwd and adds them to the file.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question