LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 07-28-2010, 10:02 PM   #1
ahmadnawaz
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
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
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
ahmadnawaz
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...
 
  


Reply

Tags
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


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

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