Solved

vsftpd setup

Posted on 2014-02-04
2
385 Views
Last Modified: 2014-02-10
Hi all and thanks to anyone who can help.

I am running Cent OS 2.6.32-431.3.1.e16.x86_64

Hosting an FTP using vsftpd

I want to create the following:

=USERS=
training-admin
training

=FOLDERS=
Training
Internal
Private

=TRAINING FOLDER=
training-admin has full RW rights
training has R only

=INTERNAL FOLDER=
training-admin has full RW rights
training should not see the folder

=PRIVATE FOLDER=
training admin has full RW rights
training should not see the folder

Can someone point me in the right direction?

Thanks!
0
Comment
Question by:Patrick-NJ
[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
2 Comments
 
LVL 13

Assisted Solution

by:Sandy
Sandy earned 250 total points
ID: 39834824
Use pure-ftp instead of vsftpd because it does has option for jailing the directory and permissions.

TY/SA
0
 
LVL 5

Accepted Solution

by:
NARANTHIRAN earned 250 total points
ID: 39834941
Creating Users:
#useradd training-admin
#passwd training-admin
#useradd training
#passwd training

Creating Folders:
#mkdir Training
#mkdir Internal
#mkdir Private

Permission to the Folders
#setfacl -m u:training-admin:rwx Training
#setfacl -m u:training:r-- Training
#setfacl -m u:training-admin:rwx Internal
#setfacl -m u:training:r-- Internal
#setfacl -m u:training-admin:rwx Private

Chmode 750 Private (So that the training use will not be able to read the private directory.)
You cant hide a folder for specific user i guess..
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

726 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