Solved

vsftpd setup

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

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…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now