[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

vsftpd..user can descend..

Posted on 2003-11-05
5
Medium Priority
?
328 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 500 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

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

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

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

656 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