Solved

vsftpd setup

Posted on 2014-02-04
2
384 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
winscp 000webhost.com 6 100
php56-php-mcrypt for rhel7 php56 1 110
Upgraded from Debian 7 to 8.7 and got black screen 20 99
Install XRDP on Ubuntu Server 16.10 x64 3 63
This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
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…
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.

733 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