Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 07-28-2010, 10:02 PM   #1
LQ Newbie
Registered: Jul 2010
Posts: 2

Rep: Reputation: 0
vsftpd with one account upload only and other account download only

Hi there,

I have googled around but couldnt find the relevant info.

My question is like this:

I want to setup VSFTPD such that it has 2 users

1. User A which has access to a folder /var/www/html/abcd [in webroot]. So that this user can upload some files. The user must be able to upload files to this folder and shouldn't have rights to do anything else. Do I need to set the appropriate permissions also?

2. User B which has access to a folder outside webroot. Let's say it is /abcd. The user must have only download rights and can't do anything else.

When I say anything else, I mean: Directory listing is ok but can't delete files or change permissions, etc, etc

Referring to User A: actually our website has a daily magazine which includes just HTML pages. Uploading them through SSH is really not a good option coz only I know the SSH password and I cant give access to others.

Referring to User B: its purpose is to download the contents (pictures, music,etc) uploaded by our websites users. The main purpose is to take backup of all such stuff.

I did some googling but just couldn't get this info that how can I make 2 users who behave differently and have different set of permissions.

Any help, howto, quick-start will be greatly appreciated.

Thanks in advance

PS: I also have postfix, apache and mysql running on this machine. Setting up postfix was a very difficult task. So, Im kind of reluctant in changing the PAM settings and stuff. Thanks again
Old 07-29-2010, 08:13 AM   #2
Senior Member
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
If User A is given upload rights they will also be able to delete and download. You should be able to set this up just with file permissions - chroot User B into a directory that s/he doesn't have write access to
Old 08-10-2010, 11:52 PM   #3
LQ Newbie
Registered: Jul 2010
Posts: 2

Original Poster
Rep: Reputation: 0
can u plz explain little more

any quick-starts you may refer to.. because im really not sure where to start from...


download, ftp, upload

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Erased old account for new one; forgot to give admin priv to new account. RHLinuxGUY Ubuntu 3 08-10-2008 07:56 PM
Why is my common account can't open Terminal in XFCE4 but root account? notsay Slackware 4 08-18-2007 11:29 PM
is it legitimate and allowed and can be done to make another user account set uid and gid to null 0 to make another root account with different name and possibly not damage the debian system creating and using that new account BenJoBoy Linux - Newbie 12 01-29-2006 10:02 AM
VSFTPD - can download but cant upload. Dirt Linux - Software 1 09-06-2003 08:42 PM
chrooting account in VSFTPD dkc_ace Linux - Software 1 08-07-2003 04:07 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:52 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration